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