bpftrace/bpftrace-0.16.0-RHEL9-remove-not-existing-attachpoints-from-tools.patch
Viktor Malik 96b95cdfd3
Rebase to bpfrace 0.16.0 and LLVM 15
Resolves: rhbz#2121920
Resolves: rhbz#2118995
Resolves: rhbz#1975148
Resolves: rhbz#2088577
Resolves: rhbz#2128208
Resolves: rhbz#2073675
Resolves: rhbz#2073770
Resolves: rhbz#2075076

The new release and few added patches fix bugs in the shipped tools.
Also some RHEL-specific patches can be removed.

bpftrace 0.16.0 requires the cereal serialization library which is not
packaged into RHEL9. To overcome this problem, we download it manually,
which is ok to do as the library is only necessary during build.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2022-12-21 12:19:57 +01:00

75 lines
1.9 KiB
Diff

From 7ebf8a0a6f257770ad21bcea70d56a2671528238 Mon Sep 17 00:00:00 2001
From: Viktor Malik <viktor.malik@gmail.com>
Date: Fri, 16 Dec 2022 13:31:46 +0100
Subject: [PATCH 2/2] RHEL9: remove not existing attachpoints from tools
tools/bio* attempt to attach each probe to multiple kprobes to cover all
possible systems. Remove probes which do not exist in RHEL9 to remove
unnecessary warnings.
---
tools/biolatency.bt | 2 --
tools/biosnoop.bt | 2 --
tools/biostacks.bt | 2 --
3 files changed, 6 deletions(-)
diff --git a/tools/biolatency.bt b/tools/biolatency.bt
index d5af1f29..8fb0490d 100755
--- a/tools/biolatency.bt
+++ b/tools/biolatency.bt
@@ -16,13 +16,11 @@ BEGIN
printf("Tracing block device I/O... Hit Ctrl-C to end.\n");
}
-kprobe:blk_account_io_start,
kprobe:__blk_account_io_start
{
@start[arg0] = nsecs;
}
-kprobe:blk_account_io_done,
kprobe:__blk_account_io_done
/@start[arg0]/
{
diff --git a/tools/biosnoop.bt b/tools/biosnoop.bt
index 65e302fc..c26aa3be 100755
--- a/tools/biosnoop.bt
+++ b/tools/biosnoop.bt
@@ -20,7 +20,6 @@ BEGIN
printf("%-12s %-7s %-16s %-6s %7s\n", "TIME(ms)", "DISK", "COMM", "PID", "LAT(ms)");
}
-kprobe:blk_account_io_start,
kprobe:__blk_account_io_start
{
@start[arg0] = nsecs;
@@ -29,7 +28,6 @@ kprobe:__blk_account_io_start
@disk[arg0] = ((struct request *)arg0)->q->disk->disk_name;
}
-kprobe:blk_account_io_done,
kprobe:__blk_account_io_done
/@start[arg0] != 0 && @iopid[arg0] != 0 && @iocomm[arg0] != ""/
diff --git a/tools/biostacks.bt b/tools/biostacks.bt
index 1bc9f819..0d848ada 100755
--- a/tools/biostacks.bt
+++ b/tools/biostacks.bt
@@ -18,14 +18,12 @@ BEGIN
printf("Tracing block I/O with init stacks. Hit Ctrl-C to end.\n");
}
-kprobe:blk_account_io_start,
kprobe:__blk_account_io_start
{
@reqstack[arg0] = kstack;
@reqts[arg0] = nsecs;
}
-kprobe:blk_start_request,
kprobe:blk_mq_start_request
/@reqts[arg0]/
{
--
2.38.1