已开启
fix runqlat.bt run error #43
changtao615创建于 2024年8月10日
fix runqlat.bt run error #43
已开启
从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 | + | ||
| 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 | + * 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 @@ | |||
| 1 | Name: bpftrace | 1 | Name: bpftrace |
| 2 | Version: 0.19.1 | 2 | Version: 0.19.1 |
| 3 | -Release: 1 | 3 | +Release: 3 |
| 4 | Summary: High-level tracing language for Linux eBPF | 4 | Summary: High-level tracing language for Linux eBPF |
| 5 | License: ASL 2.0 | 5 | License: ASL 2.0 |
| 6 | 6 | ||
| 7 | URL: https://github.com/iovisor/bpftrace | 7 | URL: https://github.com/iovisor/bpftrace |
| 8 | Source0: %{url}/archive/refs/tags/v%{version}.tar.gz | 8 | Source0: %{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 are | 10 | # Arches will be included as upstream support is added and dependencies are |
| 11 | # satisfied in the respective arches | 11 | # satisfied in the respective arches |
| 12 | -ExclusiveArch: x86_64 %{power64} aarch64 riscv64 | 12 | +ExclusiveArch: x86_64 %{power64} aarch64 riscv64 loongarch64 |
| 13 | 13 | ||
| 14 | BuildRequires: gcc-c++ bison flex cmake elfutils-libelf-devel | 14 | BuildRequires: gcc-c++ bison flex cmake elfutils-libelf-devel |
| 15 | BuildRequires: zlib-devel llvm-devel clang clang-tools-extra clang-devel llvm-test | 15 | BuildRequires: 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 | %changelog | 70 | %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-1 | 78 | * Mon Jan 08 2024 Paul Thomas <paulthomas100199@gmail.com> - 0.19.1-1 |
| 72 | - update to version 0.19.1 | 79 | - update to version 0.19.1 |
| 73 | 80 | ||