perf trace: Setup struct syscall_tp for syscalls:sys_{enter,exit}_NAME events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Aug 2018 18:09:24 +0000 (15:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Aug 2018 18:38:57 +0000 (15:38 -0300)
commitd32855fa35b94a066c5860c94adc3ebcac7d2c66
treeb02c9ec1ee11395cdc8a991d130a16af45f7a2d3
parentaa823f58f7abf42f181fbaef4fdbe76eccea1c29
perf trace: Setup struct syscall_tp for syscalls:sys_{enter,exit}_NAME events

Mapping "__syscall_nr" to "id" and setting up "args" from the offset of
"__syscall_nr" + sizeof(u64), as the payload for syscalls:* is the same
as for raw_syscalls:*, just the fields have different names.

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: Steven Rostedt <rostedt@goodmis.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-ogeenrpviwcpwl3oy1l55f3m@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c