Skip to content

Commit d8145b3

Browse files
ahunter6acmel
authored andcommitted
perf inject: Also re-pipe lost_samples event
perf inject must re-pipe all events otherwise they get dropped from the output file. Signed-off-by: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 1216b65 commit d8145b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/perf/builtin-inject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused)
675675
.fork = perf_event__repipe,
676676
.exit = perf_event__repipe,
677677
.lost = perf_event__repipe,
678+
.lost_samples = perf_event__repipe,
678679
.aux = perf_event__repipe,
679680
.itrace_start = perf_event__repipe,
680681
.context_switch = perf_event__repipe,

0 commit comments

Comments
 (0)