summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/comm.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-09-13 16:28:57 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-11-04 12:16:39 -0300
commit4dfced359fbc719a35527416f1b4b3999647f68b (patch)
treebfa501673ebf02c77818e87a374ff9a80bec974e /tools/perf/util/comm.h
parentfedd63d3cdc9004df43b02df5c874b8957992fe8 (diff)
downloadop-kernel-dev-4dfced359fbc719a35527416f1b4b3999647f68b.zip
op-kernel-dev-4dfced359fbc719a35527416f1b4b3999647f68b.tar.gz
perf tools: Get current comm instead of last one
At insert time, a hist entry should reference comm at the time otherwise it'll get the last comm anyway. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Tested-by: Jiri Olsa <jolsa@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/n/tip-n6pykiiymtgmcjs834go2t8x@git.kernel.org [ Fixed up const pointer issues ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/comm.h')
-rw-r--r--tools/perf/util/comm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/comm.h b/tools/perf/util/comm.h
index f62d215..7a86e56 100644
--- a/tools/perf/util/comm.h
+++ b/tools/perf/util/comm.h
@@ -16,5 +16,6 @@ struct comm {
void comm__free(struct comm *comm);
struct comm *comm__new(const char *str, u64 timestamp);
const char *comm__str(const struct comm *comm);
+void comm__override(struct comm *comm, const char *str, u64 timestamp);
#endif /* __PERF_COMM_H */
OpenPOWER on IntegriCloud