Revert "perf augmented_syscalls: Drop 'write', 'poll' for testing without self pid filter"

Now that we have the "filtered_pids" logic in place, no need to do this
rough filter to avoid the feedback loop from 'perf trace's own syscalls,
revert it.

This reverts commit 7ed71f124284359676b6496ae7db724fee9da753.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-88vh02cnkam0vv5f9vp02o3h@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e312747b
...@@ -44,9 +44,7 @@ struct augmented_filename { ...@@ -44,9 +44,7 @@ struct augmented_filename {
char value[256]; char value[256];
}; };
#define SYS_WRITE 1
#define SYS_OPEN 2 #define SYS_OPEN 2
#define SYS_POLL 7
#define SYS_OPENAT 257 #define SYS_OPENAT 257
pid_filter(pids_filtered); pid_filter(pids_filtered);
...@@ -106,8 +104,6 @@ int sys_enter(struct syscall_enter_args *args) ...@@ -106,8 +104,6 @@ int sys_enter(struct syscall_enter_args *args)
* after the ctx memory access to prevent their down stream merging. * after the ctx memory access to prevent their down stream merging.
*/ */
switch (augmented_args.args.syscall_nr) { switch (augmented_args.args.syscall_nr) {
case SYS_WRITE:
case SYS_POLL: return 0;
case SYS_OPEN: filename_arg = (const void *)args->args[0]; case SYS_OPEN: filename_arg = (const void *)args->args[0];
__asm__ __volatile__("": : :"memory"); __asm__ __volatile__("": : :"memory");
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment