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

50b5d1
From 4d7c2c148f7fb788d74e6cd3b6d65c07a815b0c1 Mon Sep 17 00:00:00 2001
3dd3a7
From: Jerome Marchand <jmarchan@redhat.com>
3dd3a7
Date: Tue, 11 Jun 2019 16:41:59 +0200
50b5d1
Subject: [PATCH 1/6] RHEL 9 fixes
3dd3a7
3dd3a7
Fixes the following RHEL 8 specific issues:
3dd3a7
 - library path in gethostlatency and threadsnoop
50b5d1
50b5d1
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
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
50b5d1
index 3824bc6d..ab52bc48 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
-- 
50b5d1
2.35.3
3dd3a7