perf db-export: Also export thread's current comm
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 10 Jul 2019 08:58:01 +0000 (11:58 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 10 Jul 2019 15:14:07 +0000 (12:14 -0300)
commit4650c7bed79582c74452d284e45d5b76987c0ef3
tree190b693529fe00eac4581a53828f245eeea00eab
parent80859c947a1eb170927d03e713abf7550a3d8766
perf db-export: Also export thread's current comm

Currently, the initial comm of the main thread is exported. Export also
a thread's current comm. That better supports the tracing of
multi-threaded applications that set different comms for different
threads to make it easier to distinguish them.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190710085810.1650-13-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/db-export.c