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

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