2017-11-06 05:26:03

by Liu, Changcheng

[permalink] [raw]
Subject: [PATCH 0001/0001] format idle IP output func+offset/length

kaslr feature is enabled in kernel.
Remove kernel text address when dumping idle IP info

Signed-off-by: Liu Changcheng <[email protected]>
Signed-off-by: Jerry Liu <[email protected]>

diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c
index 0bc0a35..9cc4178 100644
--- a/lib/nmi_backtrace.c
+++ b/lib/nmi_backtrace.c
@@ -92,7 +92,7 @@ bool nmi_cpu_backtrace(struct pt_regs *regs)
if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
arch_spin_lock(&lock);
if (regs && cpu_in_idle(instruction_pointer(regs))) {
- pr_warn("NMI backtrace for cpu %d skipped: idling at pc %#lx\n",
+ pr_warn("NMI backtrace for cpu %d skipped: idling at pc %pS\n",
cpu, instruction_pointer(regs));
} else {
pr_warn("NMI backtrace for cpu %d\n", cpu);
--
2.7.4


From 1583285189293629278@xxx Mon Nov 06 03:20:20 +0000 2017
X-GM-THRID: 1583285189293629278
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread