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

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