bpftrace/SOURCES/bpftrace-0.12.1-RHEL-8-fixes.patch

57 lines
1.7 KiB
Diff
Raw Normal View History

2021-11-09 09:52:00 +00:00
From 3a7f0bf4f506014644cf935332346e3c227123c9 Mon Sep 17 00:00:00 2001
2019-11-05 19:45:41 +00:00
From: Jerome Marchand <jmarchan@redhat.com>
Date: Tue, 11 Jun 2019 16:41:59 +0200
2020-11-03 11:59:23 +00:00
Subject: [PATCH] RHEL 8 fixes
2019-11-05 19:45:41 +00:00
Fixes the following RHEL 8 specific issues:
2020-11-03 11:59:23 +00:00
- library path in gethostlatency and threadsnoop
2019-11-05 19:45:41 +00:00
---
tools/gethostlatency.bt | 12 ++++++------
2020-11-03 11:59:23 +00:00
tools/threadsnoop.bt | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
2019-11-05 19:45:41 +00:00
diff --git a/tools/gethostlatency.bt b/tools/gethostlatency.bt
2021-11-09 09:52:00 +00:00
index 9f4ec31e..dd389c6f 100755
2019-11-05 19:45:41 +00:00
--- a/tools/gethostlatency.bt
+++ b/tools/gethostlatency.bt
@@ -26,17 +26,17 @@ BEGIN
"HOST");
}
-uprobe:/lib/x86_64-linux-gnu/libc.so.6:getaddrinfo,
-uprobe:/lib/x86_64-linux-gnu/libc.so.6:gethostbyname,
-uprobe:/lib/x86_64-linux-gnu/libc.so.6:gethostbyname2
+uprobe:/lib64/libc.so.6:getaddrinfo,
+uprobe:/lib64/libc.so.6:gethostbyname,
+uprobe:/lib64/libc.so.6:gethostbyname2
{
@start[tid] = nsecs;
@name[tid] = arg0;
}
-uretprobe:/lib/x86_64-linux-gnu/libc.so.6:getaddrinfo,
-uretprobe:/lib/x86_64-linux-gnu/libc.so.6:gethostbyname,
-uretprobe:/lib/x86_64-linux-gnu/libc.so.6:gethostbyname2
+uretprobe:/lib64/libc.so.6:getaddrinfo,
+uretprobe:/lib64/libc.so.6:gethostbyname,
+uretprobe:/lib64/libc.so.6:gethostbyname2
/@start[tid]/
{
2021-11-09 09:52:00 +00:00
$latms = (nsecs - @start[tid]) / 1e6;
2020-11-03 11:59:23 +00:00
diff --git a/tools/threadsnoop.bt b/tools/threadsnoop.bt
2021-11-09 09:52:00 +00:00
index 3824bc6d..bdc6e4df 100755
2020-11-03 11:59:23 +00:00
--- a/tools/threadsnoop.bt
+++ b/tools/threadsnoop.bt
@@ -18,7 +18,7 @@ BEGIN
printf("%-10s %-6s %-16s %s\n", "TIME(ms)", "PID", "COMM", "FUNC");
}
-uprobe:/lib/x86_64-linux-gnu/libpthread.so.0:pthread_create
2021-11-09 09:52:00 +00:00
+uprobe:/usr/lib64/libpthread.so.0:pthread_create
2020-11-03 11:59:23 +00:00
{
2021-11-09 09:52:00 +00:00
printf("%-10u %-6d %-16s %s\n", elapsed / 1e6, pid, comm,
2020-11-03 11:59:23 +00:00
usym(arg2));
2019-11-05 19:45:41 +00:00
--
2021-11-09 09:52:00 +00:00
2.30.2
2019-11-05 19:45:41 +00:00