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

a8449c
From 30cd8a899ec375ca0e46db51fa48ee80c5463470 Mon Sep 17 00:00:00 2001
295890
From: Jerome Marchand <jmarchan@redhat.com>
295890
Date: Tue, 11 Jun 2019 16:41:59 +0200
b7cc67
Subject: [PATCH] RHEL 8 fixes
295890
295890
Fixes the following RHEL 8 specific issues:
b7cc67
 - library path in gethostlatency and threadsnoop
295890
---
295890
 tools/gethostlatency.bt | 12 ++++++------
b7cc67
 tools/threadsnoop.bt    |  2 +-
b7cc67
 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;
b7cc67
diff --git a/tools/threadsnoop.bt b/tools/threadsnoop.bt
b7cc67
index e4d3875..c56b1ac 100755
b7cc67
--- a/tools/threadsnoop.bt
b7cc67
+++ b/tools/threadsnoop.bt
b7cc67
@@ -18,7 +18,7 @@ BEGIN
b7cc67
 	printf("%-10s %-6s %-16s %s\n", "TIME(ms)", "PID", "COMM", "FUNC");
b7cc67
 }
b7cc67
 
b7cc67
-uprobe:/lib/x86_64-linux-gnu/libpthread.so.0:pthread_create
b7cc67
+uprobe:/usr/lib64/libpthread.so:pthread_create
b7cc67
 {
b7cc67
 	printf("%-10u %-6d %-16s %s\n", elapsed / 1000000, pid, comm,
b7cc67
 	    usym(arg2));
295890
-- 
b7cc67
2.25.4
295890