]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf thrad_map: Add comm string into array
authorJiri Olsa <jolsa@kernel.org>
Fri, 26 Jun 2015 09:29:07 +0000 (11:29 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 26 Jun 2015 14:07:01 +0000 (11:07 -0300)
commit792402fd5c0a5a5300868e9dfc8ee569f3a39169
treeebb6df248a2b15b81b7fe8a0ac5e9f02a4ad6412
parent62eea464380633b88902da35bf9cbd8515289703
perf thrad_map: Add comm string into array

Adding support to hold comm name together with pids in 'struct
thread_map'. It will be useful for --per-thread option to display task
pid together with task name.

Adding thread_map__read_comms function that reads/set
comm string for the 'struct thread_map'.

Getting the task name from /proc/$pid/comm.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1435310967-14570-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python-ext-sources
tools/perf/util/thread_map.c
tools/perf/util/thread_map.h