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

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