projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4056132
)
perf machine: Introduce machine__find_kernel_symbol_by_name()
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 25 Jan 2016 21:01:57 +0000
(18:01 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 26 Jan 2016 14:52:51 +0000
(11:52 -0300)
To be used in the 'vmlinux matches kallsyms' 'perf test' entry.
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:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/machine.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/machine.h
b/tools/perf/util/machine.h
index 2c2b443df5ba796c43ee12c6c0f2061b5d7c7b80..1a3e45baf97fb575c02afe49707727aff0f628ec 100644
(file)
--- a/
tools/perf/util/machine.h
+++ b/
tools/perf/util/machine.h
@@
-179,6
+179,16
@@
struct symbol *machine__find_kernel_symbol(struct machine *machine,
mapp, filter);
}
+static inline
+struct symbol *machine__find_kernel_symbol_by_name(struct machine *machine,
+ enum map_type type, const char *name,
+ struct map **mapp,
+ symbol_filter_t filter)
+{
+ return map_groups__find_symbol_by_name(&machine->kmaps, type, name,
+ mapp, filter);
+}
+
static inline
struct symbol *machine__find_kernel_function(struct machine *machine, u64 addr,
struct map **mapp,