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

12a51a
From 453e1ea9b9d036cc9cfa0ef2e20c53e926e1b3b8 Mon Sep 17 00:00:00 2001
12a51a
From: Jerome Marchand <jmarchan@redhat.com>
12a51a
Date: Tue, 11 Jun 2019 16:41:59 +0200
12a51a
Subject: [PATCH] RHEL 9 fixes
12a51a
12a51a
Fixes the following RHEL 8 specific issues:
12a51a
 - library path in gethostlatency and threadsnoop
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
12a51a
index 3824bc6d..bdc6e4df 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
12a51a
+uprobe:/usr/lib64/libpthread.so:pthread_create
12a51a
 {
12a51a
 	printf("%-10u %-6d %-16s %s\n", elapsed / 1e6, pid, comm,
12a51a
 	    usym(arg2));
12a51a
-- 
12a51a
2.31.1
12a51a