Commit eb5b1b1475d5ce6ebe84fd4c641545a41839d5f9
1 parent
80f587d5f9
Exists in
master
and in
16 other branches
perf trace: Beautify rt_sigprocmask 'how' arg
Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-e2epkc38e3x0uqmi1xie4tgc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
tools/perf/builtin-trace.c
... | ... | @@ -252,6 +252,9 @@ |
252 | 252 | }; |
253 | 253 | static DEFINE_STRARRAY(fcntl_cmds); |
254 | 254 | |
255 | +static const char *sighow[] = { "BLOCK", "UNBLOCK", "SETMASK", }; | |
256 | +static DEFINE_STRARRAY(sighow); | |
257 | + | |
255 | 258 | static size_t syscall_arg__scnprintf_open_flags(char *bf, size_t size, |
256 | 259 | struct syscall_arg *arg) |
257 | 260 | { |
... | ... | @@ -366,6 +369,9 @@ |
366 | 369 | { .name = "pwrite", .errmsg = true, .alias = "pwrite64", }, |
367 | 370 | { .name = "read", .errmsg = true, }, |
368 | 371 | { .name = "recvfrom", .errmsg = true, }, |
372 | + { .name = "rt_sigprocmask", .errmsg = true, | |
373 | + .arg_scnprintf = { [0] = SCA_STRARRAY, /* how */ }, | |
374 | + .arg_parm = { [0] = &strarray__sighow, /* how */ }, }, | |
369 | 375 | { .name = "select", .errmsg = true, .timeout = true, }, |
370 | 376 | { .name = "setitimer", .errmsg = true, |
371 | 377 | .arg_scnprintf = { [0] = SCA_STRARRAY, /* which */ }, |