|
|
b7cc67 |
From e9ebda9b3d14831df5e1c5174d21f322e084d074 Mon Sep 17 00:00:00 2001
|
|
|
b7cc67 |
From: Jerome Marchand <jmarchan@redhat.com>
|
|
|
b7cc67 |
Date: Thu, 11 Jun 2020 14:56:36 +0200
|
|
|
b7cc67 |
Subject: [PATCH] RHEL-8: aarch64: fixes statsnoop and opensnoop
|
|
|
b7cc67 |
|
|
|
b7cc67 |
On aarch64 the open syscall has been dropped. Only openat remains,
|
|
|
b7cc67 |
wich is called by libc open() function.
|
|
|
b7cc67 |
|
|
|
b7cc67 |
The state of *stat* syscalls, is a mess. They are several generations
|
|
|
b7cc67 |
of the system calls, and not all arches provides all of them. For
|
|
|
b7cc67 |
instance, new(l)stat are missing from aarch64.
|
|
|
b7cc67 |
|
|
|
b7cc67 |
The only way I can think of fixing thess is RHEL-8 only arch specific
|
|
|
b7cc67 |
patches.
|
|
|
b7cc67 |
---
|
|
|
b7cc67 |
tools/opensnoop.bt | 2 --
|
|
|
b7cc67 |
tools/statsnoop.bt | 8 ++------
|
|
|
b7cc67 |
2 files changed, 2 insertions(+), 8 deletions(-)
|
|
|
b7cc67 |
|
|
|
b7cc67 |
diff --git a/tools/opensnoop.bt b/tools/opensnoop.bt
|
|
|
b7cc67 |
index a7de802..d99db93 100755
|
|
|
b7cc67 |
--- a/tools/opensnoop.bt
|
|
|
b7cc67 |
+++ b/tools/opensnoop.bt
|
|
|
b7cc67 |
@@ -21,13 +21,11 @@ BEGIN
|
|
|
b7cc67 |
printf("%-6s %-16s %4s %3s %s\n", "PID", "COMM", "FD", "ERR", "PATH");
|
|
|
b7cc67 |
}
|
|
|
b7cc67 |
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_enter_open,
|
|
|
b7cc67 |
tracepoint:syscalls:sys_enter_openat
|
|
|
b7cc67 |
{
|
|
|
b7cc67 |
@filename[tid] = args->filename;
|
|
|
b7cc67 |
}
|
|
|
b7cc67 |
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_exit_open,
|
|
|
b7cc67 |
tracepoint:syscalls:sys_exit_openat
|
|
|
b7cc67 |
/@filename[tid]/
|
|
|
b7cc67 |
{
|
|
|
b7cc67 |
diff --git a/tools/statsnoop.bt b/tools/statsnoop.bt
|
|
|
b7cc67 |
index b2d529e..f612ea9 100755
|
|
|
b7cc67 |
--- a/tools/statsnoop.bt
|
|
|
b7cc67 |
+++ b/tools/statsnoop.bt
|
|
|
b7cc67 |
@@ -30,17 +30,13 @@ tracepoint:syscalls:sys_enter_statfs
|
|
|
b7cc67 |
@filename[tid] = args->pathname;
|
|
|
b7cc67 |
}
|
|
|
b7cc67 |
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_enter_statx,
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_enter_newstat,
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_enter_newlstat
|
|
|
b7cc67 |
+tracepoint:syscalls:sys_enter_statx
|
|
|
b7cc67 |
{
|
|
|
b7cc67 |
@filename[tid] = args->filename;
|
|
|
b7cc67 |
}
|
|
|
b7cc67 |
|
|
|
b7cc67 |
tracepoint:syscalls:sys_exit_statfs,
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_exit_statx,
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_exit_newstat,
|
|
|
b7cc67 |
-tracepoint:syscalls:sys_exit_newlstat
|
|
|
b7cc67 |
+tracepoint:syscalls:sys_exit_statx
|
|
|
b7cc67 |
/@filename[tid]/
|
|
|
b7cc67 |
{
|
|
|
b7cc67 |
$ret = args->ret;
|
|
|
b7cc67 |
--
|
|
|
b7cc67 |
2.25.4
|
|
|
b7cc67 |
|