|
|
57f5b7 |
From 3a7f0bf4f506014644cf935332346e3c227123c9 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
|
|
|
57f5b7 |
index 9f4ec31e..dd389c6f 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 |
{
|
|
|
57f5b7 |
$latms = (nsecs - @start[tid]) / 1e6;
|
|
|
18bb42 |
diff --git a/tools/threadsnoop.bt b/tools/threadsnoop.bt
|
|
|
57f5b7 |
index 3824bc6d..bdc6e4df 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
|
|
|
57f5b7 |
+uprobe:/usr/lib64/libpthread.so.0:pthread_create
|
|
|
18bb42 |
{
|
|
|
57f5b7 |
printf("%-10u %-6d %-16s %s\n", elapsed / 1e6, pid, comm,
|
|
|
18bb42 |
usym(arg2));
|
|
|
05649e |
--
|
|
|
57f5b7 |
2.30.2
|
|
|
05649e |
|