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>
Showing
- tools/perf/util/comm.c 15 additions, 0 deletionstools/perf/util/comm.c
- tools/perf/util/comm.h 1 addition, 0 deletionstools/perf/util/comm.h
- tools/perf/util/hist.c 3 additions, 0 deletionstools/perf/util/hist.c
- tools/perf/util/sort.c 5 additions, 9 deletionstools/perf/util/sort.c
- tools/perf/util/sort.h 1 addition, 0 deletionstools/perf/util/sort.h
- tools/perf/util/thread.c 3 additions, 3 deletionstools/perf/util/thread.c
- tools/perf/util/thread.h 2 additions, 0 deletionstools/perf/util/thread.h
Loading
Please register or sign in to comment