diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2018-04-25 18:04:45 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-04-26 13:47:16 -0300 |
| commit | 128cde3379358d43c3cf2cb5ea00bac8bf9cf1cf (patch) | |
| tree | 062b8e14468f89590d63b1468df3993dac3882d3 | |
| parent | 26bd93316451256f92d18a331a3fd2f7e3b563ab (diff) | |
perf machine: Use machine__find_kernel_function() instead of open coded version
We have that equivalent, shorter helper, use it.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
| -rw-r--r-- | tools/perf/util/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 10364e829aba..a00e82b83e0a 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -2367,7 +2367,7 @@ char *machine__resolve_kernel_addr(void *vmachine, unsigned long long *addrp, ch { struct machine *machine = vmachine; struct map *map; - struct symbol *sym = map_groups__find_symbol(&machine->kmaps, MAP__FUNCTION, *addrp, &map); + struct symbol *sym = machine__find_kernel_function(machine, *addrp, &map); if (sym == NULL) return NULL; |