summaryrefslogtreecommitdiffstats
path: root/tools/perf/examples
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/examples')
-rw-r--r--tools/perf/examples/bpf/augmented_raw_syscalls.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/perf/examples/bpf/augmented_raw_syscalls.c b/tools/perf/examples/bpf/augmented_raw_syscalls.c
index 2422894a8194..68a3d61752ce 100644
--- a/tools/perf/examples/bpf/augmented_raw_syscalls.c
+++ b/tools/perf/examples/bpf/augmented_raw_syscalls.c
@@ -87,7 +87,7 @@ struct augmented_filename {
#define SYS_SYMLINKAT 266
#define SYS_MEMFD_CREATE 319
-/* syscalls where the first arg is a string */
+/* syscalls where the second arg is a string */
#define SYS_PWRITE64 18
#define SYS_EXECVE 59
@@ -117,6 +117,8 @@ struct augmented_filename {
#define SYS_RENAMEAT2 316
#define SYS_EXECVEAT 322
#define SYS_STATX 332
+#define SYS_MOVE_MOUNT 429
+#define SYS_FSPICK 433
pid_filter(pids_filtered);
@@ -252,11 +254,22 @@ int sys_enter(struct syscall_enter_args *args)
case SYS_FINIT_MODULE:
case SYS_FREMOVEXATTR:
case SYS_FSETXATTR:
+ case SYS_FSPICK:
case SYS_FUTIMESAT:
case SYS_INOTIFY_ADD_WATCH:
case SYS_LINKAT:
case SYS_MKDIRAT:
case SYS_MKNODAT:
+ // case SYS_MOVE_MOUNT:
+ // For now don't copy move_mount first string arg, as it has two and
+ // 'perf trace's syscall_arg__scnprintf_filename() will use the one
+ // copied here, the first, for both args, duplicating the first and
+ // ignoring the second.
+ //
+ // We need to copy both here and make syscall_arg__scnprintf_filename
+ // skip the first when reading the second, using the size of the first, etc.
+ // Shouldn't be difficult, but now its perf/urgent time, lets wait for
+ // the next devel window.
case SYS_MQ_TIMEDSEND:
case SYS_NAME_TO_HANDLE_AT:
case SYS_NEWFSTATAT:
OpenPOWER on IntegriCloud