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 |
} |