adapt for 4.19 kernel
(cherry picked from commit bc513f2b237cbfcc6021f6772af7fa93b4918a95)
This commit is contained in:
parent
62ee67b511
commit
b9547ccab2
24
0005-adapt-for-4.19-kernel.patch
Normal file
24
0005-adapt-for-4.19-kernel.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 6c15574bb42decac738b54813b79a0f0fd138998 Mon Sep 17 00:00:00 2001
|
||||||
|
From: LHesperus <2639350497@qq.com>
|
||||||
|
Date: Tue, 6 Aug 2024 11:05:25 +0800
|
||||||
|
Subject: [PATCH] adapt for 4.19 kernel
|
||||||
|
|
||||||
|
---
|
||||||
|
thread_collector/thread_collector.cpp | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/thread_collector/thread_collector.cpp b/thread_collector/thread_collector.cpp
|
||||||
|
index cb99bba..7c6f36f 100644
|
||||||
|
--- a/thread_collector/thread_collector.cpp
|
||||||
|
+++ b/thread_collector/thread_collector.cpp
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
#include <csignal>
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
char thread_name[] = "thread_collector";
|
||||||
|
const int CYCLE_SIZE = 500;
|
||||||
|
--
|
||||||
|
2.45.2.windows.1
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: oeAware-collector
|
Name: oeAware-collector
|
||||||
Version: v1.0.2
|
Version: v1.0.2
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: %{name} provides low-overhead metrics collection capabilities, including microarchitecture, system, and kernel information.
|
Summary: %{name} provides low-overhead metrics collection capabilities, including microarchitecture, system, and kernel information.
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
@ -9,6 +9,7 @@ Patch1: 0001-add-netif_rx-counting-pmu-instance.patch
|
|||||||
Patch2: 0002-reduce-thread-collector-load.patch
|
Patch2: 0002-reduce-thread-collector-load.patch
|
||||||
Patch3: 0003-fix-uninitialized-PmuAttr-attr.patch
|
Patch3: 0003-fix-uninitialized-PmuAttr-attr.patch
|
||||||
Patch4: 0004-fix-out-of-bounds-array.patch
|
Patch4: 0004-fix-out-of-bounds-array.patch
|
||||||
|
Patch5: 0005-adapt-for-4.19-kernel.patch
|
||||||
|
|
||||||
%global libkperf_name libkperf
|
%global libkperf_name libkperf
|
||||||
%global libkperf_tagver v1.0.4
|
%global libkperf_tagver v1.0.4
|
||||||
@ -85,6 +86,9 @@ install -b -m740 ./thread_collector/build/libthread_collector.so ${RPM_BUIL
|
|||||||
%attr(0440, root, root) %{_libdir}/oeAware-plugin/libthread_collector.so
|
%attr(0440, root, root) %{_libdir}/oeAware-plugin/libthread_collector.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 6 2024 liuchanggeng <liuchanggeng@huawei.com> - v1.0.2-10
|
||||||
|
- adapt for 4.19 kernel
|
||||||
|
|
||||||
* Tue Jul 16 2024 fly_1997 <flylove7@outlook.com> - v1.0.2-9
|
* Tue Jul 16 2024 fly_1997 <flylove7@outlook.com> - v1.0.2-9
|
||||||
- fix pmu cmake build option error
|
- fix pmu cmake build option error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user