Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 856115 | Differences between
and this patch

Collapse All | Expand All

(-)a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp (+4 lines)
Lines 51-57 Link Here
51
#include <signal.h>
51
#include <signal.h>
52
#include <unistd.h>  // fork
52
#include <unistd.h>  // fork
53
#include <algorithm>
53
#include <algorithm>
54
#ifdef HAVE_EXECINFO_H
54
#include <execinfo.h> // backtrace
55
#include <execinfo.h> // backtrace
56
#endif
55
57
56
const char           *MosUtilitiesSpecificNext::m_szUserFeatureFile     = USER_FEATURE_FILE;
58
const char           *MosUtilitiesSpecificNext::m_szUserFeatureFile     = USER_FEATURE_FILE;
57
MOS_PUF_KEYLIST      MosUtilitiesSpecificNext::m_ufKeyList              = nullptr;
59
MOS_PUF_KEYLIST      MosUtilitiesSpecificNext::m_ufKeyList              = nullptr;
Lines 2489-2494 void MosUtilities::MosTraceEvent( Link Here
2489
                MOS_FreeMemory(pTraceBuf);
2491
                MOS_FreeMemory(pTraceBuf);
2490
            }
2492
            }
2491
        }
2493
        }
2494
#ifdef HAVE_EXECINFO_H
2492
        if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
2495
        if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
2493
        {
2496
        {
2494
            // reserve space for header and stack size field.
2497
            // reserve space for header and stack size field.
Lines 2508-2513 void MosUtilities::MosTraceEvent( Link Here
2508
                size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
2511
                size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
2509
            }
2512
            }
2510
        }
2513
        }
2514
#endif /* HAVE_EXECINFO_H */
2511
    }
2515
    }
2512
    return;
2516
    return;
2513
}
2517
}
(-)a/media_softlet/media_top_cmake.cmake (+9 lines)
Lines 29-34 option (MEDIA_RUN_TEST_SUITE "run google test module after install" ON) Link Here
29
include(${MEDIA_SOFTLET_CMAKE}/media_gen_flags.cmake)
29
include(${MEDIA_SOFTLET_CMAKE}/media_gen_flags.cmake)
30
include(${MEDIA_SOFTLET_CMAKE}/media_feature_flags.cmake)
30
include(${MEDIA_SOFTLET_CMAKE}/media_feature_flags.cmake)
31
31
32
check_include_file_cxx("execinfo.h" HAVE_EXECINFO_H)
33
if(HAVE_EXECINFO_H)
34
    target_compile_definitions(${LIB_NAME} PRIVATE HAVE_EXECINFO_H)
35
endif()
36
37
check_library_exists(execinfo backtrace "" HAVE_LIBEXECINFO)
38
if(HAVE_LIBEXECINFO)
39
    target_link_libraries (${LIB_NAME} PRIVATE execinfo)
40
endif()
32
41
33
if(NOT DEFINED SKIP_GMM_CHECK)
42
if(NOT DEFINED SKIP_GMM_CHECK)
34
    # checking dependencies
43
    # checking dependencies

Return to bug 856115