Skip to content

Commit 1991cbd

Browse files
acmelgregkh
authored andcommitted
perf trace: Do not process PERF_RECORD_LOST twice
commit 3ed5ca2efff70e9f589087c2013789572901112d upstream. We catch this record to provide a visual indication that events are getting lost, then call the default method to allow extra logging shared with the other tools to take place. This extra logging was done twice because we were continuing to the "default" clause where machine__process_event() will end up calling machine__process_lost_event() again, fix it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-wus2zlhw3qo24ye84ewu4aqw@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5a25a08 commit 1991cbd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/perf/builtin-trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,7 @@ static int trace__process_event(struct trace *trace, struct machine *machine,
16171617
color_fprintf(trace->output, PERF_COLOR_RED,
16181618
"LOST %" PRIu64 " events!\n", event->lost.lost);
16191619
ret = machine__process_lost_event(machine, event, sample);
1620+
break;
16201621
default:
16211622
ret = machine__process_event(machine, event, sample);
16221623
break;

0 commit comments

Comments
 (0)