From 835866b042d1a57d435b7aa5caa33264e3f47262 Mon Sep 17 00:00:00 2001 From: Ramesh Errabolu Date: Fri, 3 Feb 2017 15:16:47 -0600 Subject: [PATCH] Refactor Thread Trace Service as an independent library Change-Id: Ia7579bc16626f3e21c8df50f8a35cb4b82f6bda9 [ROCm/ROCR-Runtime commit: 74e3a49b207b3c67538cd7350b81648941b3b513] --- .../rocr-runtime/runtime/hsa-runtime-tools/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime-tools/CMakeLists.txt b/projects/rocr-runtime/runtime/hsa-runtime-tools/CMakeLists.txt index 8f439378df..642e5da260 100755 --- a/projects/rocr-runtime/runtime/hsa-runtime-tools/CMakeLists.txt +++ b/projects/rocr-runtime/runtime/hsa-runtime-tools/CMakeLists.txt @@ -107,6 +107,7 @@ include_directories ( ${TOOLS_SOURCE_DIR}/common ) include_directories ( ${TOOLS_SOURCE_DIR}/debugger ) include_directories ( ${TOOLS_SOURCE_DIR}/intercept ) include_directories ( ${TOOLS_SOURCE_DIR}/profiler ) +include_directories ( ${TOOLS_SOURCE_DIR}/threadtrace ) include_directories ( ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000 ) include_directories ( ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000/ci ) include_directories ( ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000/si ) @@ -148,13 +149,16 @@ set ( PROFILER_SRC ${TOOLS_SOURCE_DIR}/profiler/gpu_countergroup.cpp ${TOOLS_SOURCE_DIR}/profiler/var_data.cpp ${TOOLS_SOURCE_DIR}/profiler/info_set.cpp ${TOOLS_SOURCE_DIR}/profiler/parameter_set.cpp - ${TOOLS_SOURCE_DIR}/profiler/thread_trace.cpp ${TOOLS_SOURCE_DIR}/profiler/ci_blockinfo.cpp ${TOOLS_SOURCE_DIR}/profiler/ci_pmu.cpp ${TOOLS_SOURCE_DIR}/profiler/vi_blockinfo.cpp ${TOOLS_SOURCE_DIR}/profiler/vi_pmu.cpp ${TOOLS_SOURCE_DIR}/profiler/hsa_ext_profiler.cpp ) +set ( THREAD_TRACE_SRC ${TOOLS_SOURCE_DIR}/threadtrace/thread_trace.cpp + ${TOOLS_SOURCE_DIR}/threadtrace/gfx9_thread_trace.cpp + ${TOOLS_SOURCE_DIR}/threadtrace/pre_gfx9_thread_trace.cpp ) + set ( SP3_R1000_SRC ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000/sp3-asic.c ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000/sp3-dispatch.c ${TOOLS_SOURCE_DIR}/sp3/Chip/R1000/sp3-eval.c @@ -209,6 +213,7 @@ add_library ( ${TOOLS_TARGET} SHARED ${CORE_SRC} ${DEBUGGER_SRC} ${INTERCEPT_SRC} ${PROFILER_SRC} + ${THREAD_TRACE_SRC} ${SP3_R1000_SRC} ${UTIL_SRC} )