Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b9ad9b4481
!24 [sync] PR-15: fix config path
From: @openeuler-sync-bot 
Reviewed-by: @ksana123 
Signed-off-by: @ksana123
2024-06-21 09:18:21 +00:00
fly_1997
984f8f17ac fix config path
(cherry picked from commit d226a10bdf0f1b0e51d0e4fc864fe74981539b8b)
2024-06-21 11:34:42 +08:00
openeuler-ci-bot
3725657a86
!22 [sync] PR-14: refactor interface
From: @openeuler-sync-bot 
Reviewed-by: @ksana123 
Signed-off-by: @ksana123
2024-06-21 03:22:31 +00:00
zhoukaiqi
73bc0460be refactor interface
(cherry picked from commit 28cc93782481c3627ae41445dc02589c79201bbd)
2024-06-21 10:35:23 +08:00
openeuler-ci-bot
28abce0b1a
!12 [sync] PR-9: fix warning message
From: @openeuler-sync-bot 
Reviewed-by: @ksana123 
Signed-off-by: @ksana123
2024-05-15 11:32:49 +00:00
fly_1997
fcaa78cf5d fix warning message
(cherry picked from commit 29f80967105380f32119b40e7b8547ad104c3ff5)
2024-05-15 16:31:39 +08:00
openeuler-ci-bot
684efc841b
!7 [sync] PR-4: update version to v1.0.1
From: @openeuler-sync-bot 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
2024-05-11 03:09:37 +00:00
fly_1997
c3556f9fb2 update version to v1.0.1
(cherry picked from commit 98ee9c02cef3e7689ca7cf302bb18a133cb117e2)
2024-05-11 10:46:26 +08:00
openeuler-ci-bot
ac400c1ba6
!2 [sync] PR-1: add spec and package
From: @openeuler-sync-bot 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
2024-04-23 07:21:03 +00:00
fly_1997
5b95bf047b add spec and package
(cherry picked from commit dce5a02481d47e47fde1623cb95532480192e1f3)
2024-04-23 15:07:35 +08:00
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 7486b68d7b8506acbf07e23c1ddc24a18cccf1f2 Mon Sep 17 00:00:00 2001
From: fly_1997 <flylove7@outlook.com>
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<ThreadInfo> thread_info(THREAD_NUM);
static DataRingBuf data_ring_buf;
--
2.33.0

Binary file not shown.

47
oeAware-scenario.spec Normal file
View File

@ -0,0 +1,47 @@
Name: oeAware-scenario
Version: v1.0.2
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
%{name} provides low-overhead scenario awareness
%prep
%autosetup -n %{name}-%{version} -p1
%build
cd thread_aware
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_libdir}/oeAware-plugin/
install -D -m 0740 ./thread_aware/build/*.so %{buildroot}%{_libdir}/oeAware-plugin/
install -D -m 0640 ./thread_aware/thread_scenario.conf %{buildroot}%{_libdir}/oeAware-plugin/
%files
%attr(0640, root, root) %{_libdir}/oeAware-plugin/thread_scenario.conf
%attr(0440, root, root) %{_libdir}/oeAware-plugin/libthread_scenario.so
%changelog
* Mon June 3 2024 fly_1997 <flylove7@outlook.com> - v1.0.2-2
- fix config path
* Fri May 31 2024 zhoukaiqi <zhoukaiqi@huawei.com> - v1.0.2-1
- refactor interface
* Wed May 15 2024 fly_1997 <flylove7@outlook.com> -v1.0.1-2
- fix warning message
* Sat May 11 2024 fly_1997 <flylove7@outlook.com> -v1.0.1-1
- update version to v1.0.1
* Thu Apr 18 2024 fly_1997 <flylove7@outlook.com> -v1.0.0-1
- Package init