From d755cb8e54f6f9dc5dbd700cc7d86885b487df32 Mon Sep 17 00:00:00 2001 From: fly_1997 Date: Mon, 3 Jun 2024 10:00:58 +0800 Subject: [PATCH] fix config path (cherry picked from commit d226a10bdf0f1b0e51d0e4fc864fe74981539b8b) --- 0001-fix-config-path.patch | 25 +++++++++++++++++++++++++ oeAware-scenario.spec | 7 +++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 0001-fix-config-path.patch diff --git a/0001-fix-config-path.patch b/0001-fix-config-path.patch new file mode 100644 index 0000000..18d4e25 --- /dev/null +++ b/0001-fix-config-path.patch @@ -0,0 +1,25 @@ +From 7486b68d7b8506acbf07e23c1ddc24a18cccf1f2 Mon Sep 17 00:00:00 2001 +From: fly_1997 +Date: Mon, 3 Jun 2024 09:44:13 +0800 +Subject: [PATCH] fix config path + +--- + thread_aware/thread_aware.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/thread_aware/thread_aware.cpp b/thread_aware/thread_aware.cpp +index b9db088..b88b437 100644 +--- a/thread_aware/thread_aware.cpp ++++ b/thread_aware/thread_aware.cpp +@@ -17,7 +17,7 @@ + + char name[] = "thread_scenario"; + char dep[] = "thread_collector"; +-const std::string CONFIG_PATH = "/usr/lib64/oeAware-plugin/thread_scenario.ini"; ++const std::string CONFIG_PATH = "/usr/lib64/oeAware-plugin/thread_scenario.conf"; + const int CYCLE_SIZE = 100; + static std::vector thread_info(THREAD_NUM); + static DataRingBuf data_ring_buf; +-- +2.33.0 + diff --git a/oeAware-scenario.spec b/oeAware-scenario.spec index 33801f4..6ceb737 100644 --- a/oeAware-scenario.spec +++ b/oeAware-scenario.spec @@ -1,11 +1,11 @@ Name: oeAware-scenario Version: v1.0.2 -Release: 1 +Release: 2 Summary: %{name} provides low-overhead scenario awareness License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz - +Patch1: 0001-fix-config-path.patch BuildRequires: cmake make gcc-c++ %description @@ -31,6 +31,9 @@ install -D -m 0640 ./thread_aware/thread_scenario.conf %{buildroot}%{_libdir}/oe %attr(0440, root, root) %{_libdir}/oeAware-plugin/libthread_scenario.so %changelog +* Mon June 3 2024 fly_1997 - v1.0.2-2 +- fix config path + * Fri May 31 2024 zhoukaiqi - v1.0.2-1 - refactor interface