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