perf thread: Introduce method to set comm from /proc/pid/self
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 15:32:50 +0000 (12:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 16:15:00 +0000 (13:15 -0300)
commit2f3027ac28bf6bc3ac7eb851eab06f2a38af5caa
treebc2b421ada54138ea0da15e5c035fb1f82d76487
parent4bd112df3eea4db63fe90fb4e83c48d3f3bd6512
perf thread: Introduce method to set comm from /proc/pid/self

Will be used for lazy comm loading in 'perf trace'.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-7ogbkuoka1y2qsmcckqxvl5m@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread.c
tools/perf/util/thread.h