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

44a132
From a09a2f06d6316801e89e7f676d0839910aea765d 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
295890
index a1ac1b2..ade1005 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
 {
295890
 	$latms = (nsecs - @start[tid]) / 1000000;
44a132
diff --git a/tools/threadsnoop.bt b/tools/threadsnoop.bt
44a132
index e4d3875..c56b1ac 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
44a132
+uprobe:/usr/lib64/libpthread.so:pthread_create
44a132
 {
44a132
 	printf("%-10u %-6d %-16s %s\n", elapsed / 1000000, pid, comm,
44a132
 	    usym(arg2));
295890
-- 
44a132
2.25.4
295890