diff options
-rw-r--r-- | tools/perf/util/probe-event.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index e2bf620f98cb..f272a711ad15 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -356,12 +356,14 @@ static int get_alternative_line_range(struct debuginfo *dinfo, | |||
356 | struct line_range *lr, | 356 | struct line_range *lr, |
357 | const char *target, bool user) | 357 | const char *target, bool user) |
358 | { | 358 | { |
359 | struct perf_probe_point pp = { 0 }, result = { 0 }; | 359 | struct perf_probe_point pp = { .function = lr->function, |
360 | .file = lr->file, | ||
361 | .line = lr->start }; | ||
362 | struct perf_probe_point result; | ||
360 | int ret, len = 0; | 363 | int ret, len = 0; |
361 | 364 | ||
362 | pp.function = lr->function; | 365 | memset(&result, 0, sizeof(result)); |
363 | pp.file = lr->file; | 366 | |
364 | pp.line = lr->start; | ||
365 | if (lr->end != INT_MAX) | 367 | if (lr->end != INT_MAX) |
366 | len = lr->end - lr->start; | 368 | len = lr->end - lr->start; |
367 | ret = find_alternative_probe_point(dinfo, &pp, &result, | 369 | ret = find_alternative_probe_point(dinfo, &pp, &result, |