perf trace: Move vfs_getname storage to per thread area
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Aug 2015 16:16:27 +0000 (13:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Aug 2015 16:16:27 +0000 (13:16 -0300)
commit7f4f800131a281a1e1738c0bc45659c1260dc96a
treec147a2f702b590ada518b33a19fff30482116c83
parent86a76027457633488b0a83d5e2bb944159885605
perf trace: Move vfs_getname storage to per thread area

We were storing the vfs_getname payload (i.e. ptr->string) into
the trace wide storage area (struct trace), so that we could use the
last payload when setting up the fd->pathname per thread tables, oops,
not a good idea for multi cpu tracing sessions...

Fix it by moving it to the per thread area (struct thread_trace).

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-3j05ttqyaem7kh7oubvr1keo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c