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

3c9294
From 7b66256d1025883e3fd911424f8497779eca52ca Mon Sep 17 00:00:00 2001
295890
From: Jerome Marchand <jmarchan@redhat.com>
295890
Date: Tue, 11 Jun 2019 16:41:59 +0200
3c9294
Subject: [PATCH 1/6] 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
4e8471
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
 {
4e8471
 	$latms = (nsecs - @start[tid]) / 1e6;
b7cc67
diff --git a/tools/threadsnoop.bt b/tools/threadsnoop.bt
3c9294
index 3824bc6d..ab52bc48 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
4e8471
+uprobe:/usr/lib64/libpthread.so.0:pthread_create
b7cc67
 {
4e8471
 	printf("%-10u %-6d %-16s %s\n", elapsed / 1e6, pid, comm,
b7cc67
 	    usym(arg2));
295890
-- 
3c9294
2.35.3
295890