summaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2018-04-28 08:35:32 -0400
committerIngo Molnar <mingo@kernel.org>2018-06-21 11:33:41 -0400
commitffb9bd68ebdb3b8d00ef5a79bbe8167a3281cace (patch)
tree1700ae800a3c3c4574b6ce63a20530a8b9c82f6f /kernel/kprobes.c
parentf2a3ab36077222437b4826fc76111caa14562b7c (diff)
kprobes: Show blacklist addresses as same as kallsyms does
Show kprobes blacklist addresses under same condition of showing kallsyms addresses. Since there are several name conflict for local symbols, kprobe blacklist needs to show each addresses so that user can identify where is on blacklist by comparing with kallsyms. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: David Howells <dhowells@redhat.com> Cc: David S . Miller <davem@davemloft.net> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Jon Medhurst <tixy@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Tobin C . Harding <me@tobin.cc> Cc: Will Deacon <will.deacon@arm.com> Cc: acme@kernel.org Cc: akpm@linux-foundation.org Cc: brueckner@linux.vnet.ibm.com Cc: linux-arch@vger.kernel.org Cc: rostedt@goodmis.org Cc: schwidefsky@de.ibm.com Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/lkml/152491893217.9916.14760965896164273464.stgit@devbox Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r--kernel/kprobes.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 898ee56d4f48..ab1bfa3d1d9c 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -2326,8 +2326,16 @@ static int kprobe_blacklist_seq_show(struct seq_file *m, void *v)
2326 struct kprobe_blacklist_entry *ent = 2326 struct kprobe_blacklist_entry *ent =
2327 list_entry(v, struct kprobe_blacklist_entry, list); 2327 list_entry(v, struct kprobe_blacklist_entry, list);
2328 2328
2329 seq_printf(m, "0x%px-0x%px\t%ps\n", (void *)ent->start_addr, 2329 /*
2330 (void *)ent->end_addr, (void *)ent->start_addr); 2330 * If /proc/kallsyms is not showing kernel address, we won't
2331 * show them here either.
2332 */
2333 if (!kallsyms_show_value())
2334 seq_printf(m, "0x%px-0x%px\t%ps\n", NULL, NULL,
2335 (void *)ent->start_addr);
2336 else
2337 seq_printf(m, "0x%px-0x%px\t%ps\n", (void *)ent->start_addr,
2338 (void *)ent->end_addr, (void *)ent->start_addr);
2331 return 0; 2339 return 0;
2332} 2340}
2333 2341