perf trace: Setup the augmented syscalls bpf-output event fields
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 7 Aug 2018 19:21:44 +0000 (16:21 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2018 18:55:58 +0000 (15:55 -0300)
commitd3d1c4bdf5a793ab10c448f9cf5aa5b19ce026d3
tree25f441c735a466d97804aeebba1c8dfc5a61cbba
parent78e890ea8683f7d570f911637b23b23d27be4aed
perf trace: Setup the augmented syscalls bpf-output event fields

The payload that is put in place by the eBPF script attached to
syscalls:sys_enter_openat (and other syscalls with pointers, in the
future) can be consumed by the existing sys_enter beautifiers if
evsel->priv is setup with a struct syscall_tp with struct tp_fields for
the 'syscall_id' and 'args' fields expected by the beautifiers, this
patch does just that.

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-xfjyog8oveg2fjys9r1yy1es@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c