Blame SOURCES/bpftrace-0.13.1-RHEL-9-fixes.patch

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