From 2cd49e73b30659f6faa9ff439083506f0ccec712 Mon Sep 17 00:00:00 2001 From: rfwang07 Date: Tue, 3 Dec 2024 15:40:47 +0800 Subject: [PATCH] update libkperf dependence --- CMakeLists.txt | 9 --------- include/opt.h | 2 +- src/startup_opt.cc | 5 ++--- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00675c2..df8006e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,10 +19,6 @@ endif() add_compile_options(-fPIC -Wall -Wextra) -# libkperf -message("-- libkperf library path: ${LIB_KPERF_LIBPATH}") -message("-- libkperf include path: ${LIB_KPERF_INCPATH}") - set(dfot_tuner_sysboost_src src/oeaware_plugins/instance.cc src/oeaware_plugins/tuner_sysboost.cc @@ -37,11 +33,6 @@ add_library(dfot SHARED ${dfot_tuner_sysboost_src}) include_directories(dfot PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include - ${LIB_KPERF_INCPATH} -) - -target_link_directories(dfot PUBLIC - ${LIB_KPERF_LIBPATH} ) target_link_libraries(dfot kperf sym dl log4cplus boost_system boost_filesystem) diff --git a/include/opt.h b/include/opt.h index f998501..2c40cbe 100644 --- a/include/opt.h +++ b/include/opt.h @@ -14,7 +14,7 @@ #include -#include "pmu.h" +#include "libkperf/pmu.h" #include "configs.h" extern bool check_dependence_ready(); diff --git a/src/startup_opt.cc b/src/startup_opt.cc index b408205..5b2ad9c 100644 --- a/src/startup_opt.cc +++ b/src/startup_opt.cc @@ -9,9 +9,8 @@ #include "boost/filesystem.hpp" -// libkperf -#include "pmu.h" -#include "symbol.h" +#include "libkperf/pmu.h" +#include "libkperf/symbol.h" // D-FOT #include "interface.h" -- 2.39.5 (Apple Git-154)