]> Git Repo - linux.git/commit
samples/hw_breakpoint: drop use of kallsyms_lookup_name()
authorWill Deacon <[email protected]>
Tue, 7 Apr 2020 03:11:39 +0000 (20:11 -0700)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2020 17:43:44 +0000 (10:43 -0700)
commitd8a84d33a4954b85c53faf77be48b5c2b559692e
tree98282468de89bb90ddeb3a14e3059961df24b7fd
parent4800314e19d976d88c87e99bcd37d7635eb57f78
samples/hw_breakpoint: drop use of kallsyms_lookup_name()

The 'data_breakpoint' test code is the only modular user of
kallsyms_lookup_name(), which was exported as part of fixing the test in
f60d24d2ad04 ("hw-breakpoints: Fix broken hw-breakpoint sample module").

In preparation for un-exporting this symbol, switch the test over to using
__symbol_get(), which can be used to place breakpoints on exported
symbols.

Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Masami Hiramatsu <[email protected]>
Reviewed-by: Quentin Perret <[email protected]>
Cc: K.Prasad <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Miroslav Benes <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Joe Lawrence <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
samples/hw_breakpoint/data_breakpoint.c
This page took 0.044437 seconds and 4 git commands to generate.