perf tools: Add time argument on COMM setting
This way we can later delimit a lifecycle for the COMM and map a hist to a precise COMM:timeslice couple. PERF_RECORD_COMM and PERF_RECORD_FORK events that don't have PERF_SAMPLE_TIME samples can only send 0 value as a timestamp and thus should overwrite any previous COMM on a given thread because there is no sensible way to keep track of all the comms lifecycles in a thread without time informations. Signed-off-by:Frederic Weisbecker <fweisbec@gmail.com> Tested-by:
Jiri Olsa <jolsa@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> 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/n/tip-6tyow99vgmmtt9qwr2u2lqd7@git.kernel.org [ Made it cope with PERF_RECORD_MMAP2 ] Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-top.c 1 addition, 1 deletiontools/perf/builtin-top.c
- tools/perf/builtin-trace.c 6 additions, 6 deletionstools/perf/builtin-trace.c
- tools/perf/tests/code-reading.c 1 addition, 1 deletiontools/perf/tests/code-reading.c
- tools/perf/tests/hists_link.c 2 additions, 2 deletionstools/perf/tests/hists_link.c
- tools/perf/util/event.c 14 additions, 14 deletionstools/perf/util/event.c
- tools/perf/util/machine.c 22 additions, 17 deletionstools/perf/util/machine.c
- tools/perf/util/machine.h 14 additions, 7 deletionstools/perf/util/machine.h
- tools/perf/util/session.c 1 addition, 1 deletiontools/perf/util/session.c
- tools/perf/util/thread.c 4 additions, 2 deletionstools/perf/util/thread.c
- tools/perf/util/thread.h 2 additions, 2 deletionstools/perf/util/thread.h
Loading
Please register or sign in to comment