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/CMakeLists.txt (+6 lines)
Lines 53-58 option (BUILD_CMRTLIB "Build and Install cmrtlib together with media driver" ON) Link Here
53
53
54
option (ENABLE_PRODUCTION_KMD "Enable Production KMD header files" OFF)
54
option (ENABLE_PRODUCTION_KMD "Enable Production KMD header files" OFF)
55
55
56
include(CheckIncludeFileCXX)
57
check_include_file_cxx("execinfo.h" HAVE_EXECINFO)
58
if (HAVE_EXECINFO)
59
    add_definitions(-DHAVE_EXECINFO)
60
endif()
61
56
include(GNUInstallDirs)
62
include(GNUInstallDirs)
57
63
58
if (BUILD_CMRTLIB AND NOT CMAKE_WDDM_LINUX)
64
if (BUILD_CMRTLIB AND NOT CMAKE_WDDM_LINUX)
(-)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
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 2492-2497 void MosUtilities::MosTraceEvent( Link Here
2492
                MOS_FreeMemory(pTraceBuf);
2494
                MOS_FreeMemory(pTraceBuf);
2493
            }
2495
            }
2494
        }
2496
        }
2497
#ifdef HAVE_EXECINFO
2495
        if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
2498
        if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
2496
        {
2499
        {
2497
            // reserve space for header and stack size field.
2500
            // reserve space for header and stack size field.
Lines 2511-2516 void MosUtilities::MosTraceEvent( Link Here
2511
                size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
2514
                size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
2512
            }
2515
            }
2513
        }
2516
        }
2517
#endif
2514
    }
2518
    }
2515
    return;
2519
    return;
2516
}
2520
}

Return to bug 856115