From 5b864503171f30c865b4e7f139180457ae38cb49 Mon Sep 17 00:00:00 2001 From: fly_1997 Date: Sat, 15 Mar 2025 21:34:02 +0800 Subject: [PATCH] add smc_acc.yaml and fix type error (cherry picked from commit 492f4603d5571c226519ac58cdb2f3f2add22a31) --- ...ix-return-value-type-of-the-function.patch | 30 +++++++++++++++++++ oeAware-manager.spec | 9 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0007-fix-return-value-type-of-the-function.patch diff --git a/0007-fix-return-value-type-of-the-function.patch b/0007-fix-return-value-type-of-the-function.patch new file mode 100644 index 0000000..92d8626 --- /dev/null +++ b/0007-fix-return-value-type-of-the-function.patch @@ -0,0 +1,30 @@ +From ce33a2407474a0a061b29ff8dd14ceb9f4515807 Mon Sep 17 00:00:00 2001 +From: fly_1997 +Date: Sat, 15 Mar 2025 16:04:23 +0800 +Subject: [PATCH] fix return value type of the function + +--- + src/client/analysis/config.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/client/analysis/config.h b/src/client/analysis/config.h +index 052d9e0..179c510 100644 +--- a/src/client/analysis/config.h ++++ b/src/client/analysis/config.h +@@ -36,11 +36,11 @@ public: + { + return showVerbose; + } +- int GetL1MissThreshold() const ++ double GetL1MissThreshold() const + { + return l1MissThreshold; + } +- int GetL2MissThreshold() const ++ double GetL2MissThreshold() const + { + return l2MissThreshold; + } +-- +2.33.0 + diff --git a/oeAware-manager.spec b/oeAware-manager.spec index e3407dc..4794b29 100644 --- a/oeAware-manager.spec +++ b/oeAware-manager.spec @@ -1,6 +1,6 @@ Name: oeAware-manager Version: v2.0.2 -Release: 4 +Release: 5 Summary: OeAware is a framework for implementing low-load collection, sensing, and tuning on openEuler. License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} @@ -11,6 +11,7 @@ Patch3: 0003-update-numafast-version.patch Patch4: 0004-InfocmdHandler-add-the-display-of-running-status.patch Patch5: 0005-add-parameter-detection.patch Patch6: 0006-fix-issues.patch +Patch7: 0007-fix-return-value-type-of-the-function.patch BuildRequires: cmake make gcc-c++ BuildRequires: boost-devel @@ -70,6 +71,7 @@ install -b -m740 ./build/output/sdk/liboeaware-sdk.so %{buildroot}%{ install -D -m 0640 ./build/output/plugin/lib/thread_scenario.conf %{buildroot}%{_libdir}/oeAware-plugin/ install -D -m 0640 ./build/output/plugin/lib/ub_tune.conf %{buildroot}%{_libdir}/oeAware-plugin/ install -D -m 0640 ./build/output/plugin/lib/xcall.yaml %{buildroot}%{_libdir}/oeAware-plugin/ +install -D -m 0640 ./build/output/plugin/lib/smc_acc.yaml %{buildroot}%{_libdir}/oeAware-plugin/ install -D -m 0400 ./build/output/plugin/ko/smc_acc.ko %{buildroot}%{_prefix}/lib/smc %preun @@ -100,6 +102,7 @@ fi %attr(0640, root, root) %{_libdir}/oeAware-plugin/ub_tune.conf %attr(0640, root, root) %{_libdir}/oeAware-plugin/thread_scenario.conf %attr(0640, root, root) %{_libdir}/oeAware-plugin/xcall.yaml +%attr(0640, root, root) %{_libdir}/oeAware-plugin/smc_acc.yaml %attr(0400, root, root) %{_prefix}/lib/smc/smc_acc.ko %attr(0440, root, root) %{_libdir}/oeAware-plugin/*.so %attr(0440, root, root) %{_libdir}/liboeaware-sdk.so @@ -109,6 +112,10 @@ fi %attr(0644, root, root) %{_includedir}/oeaware/data/*.h %changelog +* Wed Mar 19 2025 fly_1997 -v2.0.2-5 +- add smc_acc.yaml +- fix type error + * Sat Mar 15 2025 fly_1997 -v2.0.2-4 - use double for analysis tlb parameters - if an error occurs during smc config loading, smc_tune fails to be enabled