已开启
fix runqlat.bt run error #43
changtao615创建于 2024年8月10日
fix runqlat.bt run error #43
已开启
changtao615创建于 2024年8月10日
refs/pull/43/head合入到openEuler-24.03-LTS
2 个文件变更+39-3
@@ -0,0 +1,29 @@
1+diff -Nuar bpftrace-0.19.1/tools/runqlat.bt bpftrace-0.19.1.new/tools/runqlat.bt
2+--- bpftrace-0.19.1/tools/runqlat.bt 2023-10-04 16:18:18.000000000 +0800
3++++ bpftrace-0.19.1.new/tools/runqlat.bt 2024-08-10 13:56:53.016113910 +0800
4+@@ -1,4 +1,4 @@
5+-#!/usr/bin/env bpftrace
6++#!/usr/bin/bpftrace
7+ /*
8+ * runqlat.bt CPU scheduler run queue latency as a histogram.
9+ * For Linux, uses bpftrace, eBPF.
10+@@ -11,7 +11,19 @@
11+ * 17-Sep-2018 Brendan Gregg Created this.
12+ */
13+
14++//#include <linux/sched.h>
15++
16++#ifndef BPFTRACE_HAVE_BTF
17+ #include <linux/sched.h>
18++#else
19++/*
20++ * With BTF providing types, full headers are not needed.
21++ * We only need to supply the preprocessor defines used in this script.
22++ * TASK_RUNNING is not arch-dependant and has not changed in the linux
23++ * git history (it is not part of the stable API though)
24++ */
25++#define TASK_RUNNING 0
26++#endif
27+
28+ BEGIN
29+ {
@@ -1,15 +1,15 @@
1Name: bpftrace1Name: bpftrace
2Version: 0.19.12Version: 0.19.1
3-Release: 13+Release: 3
4Summary: High-level tracing language for Linux eBPF4Summary: High-level tracing language for Linux eBPF
5License: ASL 2.05License: ASL 2.0
6 6 
7URL: https://github.com/iovisor/bpftrace7URL: https://github.com/iovisor/bpftrace
8Source0: %{url}/archive/refs/tags/v%{version}.tar.gz8Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
9- 9+Patch0001: backport-fix-runqlat-error.patch
10# Arches will be included as upstream support is added and dependencies are10# Arches will be included as upstream support is added and dependencies are
11# satisfied in the respective arches11# satisfied in the respective arches
12-ExclusiveArch: x86_64 %{power64} aarch64 riscv6412+ExclusiveArch: x86_64 %{power64} aarch64 riscv64 loongarch64
13 13 
14BuildRequires: gcc-c++ bison flex cmake elfutils-libelf-devel14BuildRequires: gcc-c++ bison flex cmake elfutils-libelf-devel
15BuildRequires: zlib-devel llvm-devel clang clang-tools-extra clang-devel llvm-test15BuildRequires: zlib-devel llvm-devel clang clang-tools-extra clang-devel llvm-test
@@ -68,6 +68,13 @@ find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
68 68 
69 69 
70%changelog70%changelog
71+* Sat Aug 10 2024 changtao <changtao@kylinos.cn> - 0.19.1-3
72+- fix runqlat.bt run error for BPF
73+- for kernel 6.6.0
74+ 
75+* Tue Feb 27 2024 Huang Yang <huangyang@loongson.cn> - 0.19.1-2
76+- add loongarch64 support
77+ 
71* Mon Jan 08 2024 Paul Thomas <paulthomas100199@gmail.com> - 0.19.1-178* Mon Jan 08 2024 Paul Thomas <paulthomas100199@gmail.com> - 0.19.1-1
72- update to version 0.19.179- update to version 0.19.1
73 80