diff options
Diffstat (limited to 'tools/perf/builtin-inject.c')
-rw-r--r-- | tools/perf/builtin-inject.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index 16c7c11ad06e..9a02807387d6 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c | |||
@@ -389,6 +389,9 @@ static int __cmd_inject(struct perf_inject *inject) | |||
389 | ret = perf_session__process_events(session, &inject->tool); | 389 | ret = perf_session__process_events(session, &inject->tool); |
390 | 390 | ||
391 | if (!file_out->is_pipe) { | 391 | if (!file_out->is_pipe) { |
392 | if (inject->build_ids) | ||
393 | perf_header__set_feat(&session->header, | ||
394 | HEADER_BUILD_ID); | ||
392 | session->header.data_size = inject->bytes_written; | 395 | session->header.data_size = inject->bytes_written; |
393 | perf_session__write_header(session, session->evlist, file_out->fd, true); | 396 | perf_session__write_header(session, session->evlist, file_out->fd, true); |
394 | } | 397 | } |
@@ -436,6 +439,8 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused) | |||
436 | "where and how long tasks slept"), | 439 | "where and how long tasks slept"), |
437 | OPT_INCR('v', "verbose", &verbose, | 440 | OPT_INCR('v', "verbose", &verbose, |
438 | "be more verbose (show build ids, etc)"), | 441 | "be more verbose (show build ids, etc)"), |
442 | OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, "file", | ||
443 | "kallsyms pathname"), | ||
439 | OPT_END() | 444 | OPT_END() |
440 | }; | 445 | }; |
441 | const char * const inject_usage[] = { | 446 | const char * const inject_usage[] = { |