diff options
Diffstat (limited to 'tools/perf/builtin-inject.c')
-rw-r--r-- | tools/perf/builtin-inject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index de99ca1bb942..84df2deed988 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c | |||
@@ -217,8 +217,7 @@ static int perf_event__inject_buildid(struct perf_tool *tool, | |||
217 | goto repipe; | 217 | goto repipe; |
218 | } | 218 | } |
219 | 219 | ||
220 | thread__find_addr_map(thread, machine, cpumode, MAP__FUNCTION, | 220 | thread__find_addr_map(thread, cpumode, MAP__FUNCTION, sample->ip, &al); |
221 | sample->ip, &al); | ||
222 | 221 | ||
223 | if (al.map != NULL) { | 222 | if (al.map != NULL) { |
224 | if (!al.map->dso->hit) { | 223 | if (!al.map->dso->hit) { |
@@ -410,6 +409,7 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused) | |||
410 | .tracing_data = perf_event__repipe_op2_synth, | 409 | .tracing_data = perf_event__repipe_op2_synth, |
411 | .finished_round = perf_event__repipe_op2_synth, | 410 | .finished_round = perf_event__repipe_op2_synth, |
412 | .build_id = perf_event__repipe_op2_synth, | 411 | .build_id = perf_event__repipe_op2_synth, |
412 | .id_index = perf_event__repipe_op2_synth, | ||
413 | }, | 413 | }, |
414 | .input_name = "-", | 414 | .input_name = "-", |
415 | .samples = LIST_HEAD_INIT(inject.samples), | 415 | .samples = LIST_HEAD_INIT(inject.samples), |