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