]> asedeno.scripts.mit.edu Git - linux.git/commit
perf trace: Introduce 'struct evsel__trace' for evsel->priv needs
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Oct 2019 19:37:18 +0000 (16:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Oct 2019 20:27:43 +0000 (17:27 -0300)
commit2b00bb627f62ed1c6180f49f7883789bc5e1b33f
treef56e4417628d220ba4e72f30eb0c5b4409bee200
parent8b913df50f56a26b9e336becdd0af9d5ce3831cd
perf trace: Introduce 'struct evsel__trace' for evsel->priv needs

For syscalls we need to cache the 'syscall_id' and 'ret' field offsets
but as well have a pointer to the syscall_fmt_arg array for the fields,
so that we can expand strings in filter expressions, so introduce
a 'struct evsel_trace' to have in evsel->priv that allows for that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-hx8ukasuws5sz6rsar73cocv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c