[PATCH] arm/crash_dump.c: fix Oops caused by overflow converted from pfn to phys

2013-12-01 Thread ivan lam
ess. Signed-off-by: ivan lam --- arch/arm/kernel/crash_dump.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/crash_dump.c b/arch/arm/kernel/crash_dump.c index 90c50d4..5d1286d 100644 --- a/arch/arm/kernel/crash_dump.c +++ b/arch/arm/kernel/crash_dump.c @@ -39,7

[PATCH] arm/crash_dump.c: fix Oops caused by overflow converted from pfn to phys

2013-12-01 Thread ivan lam
and physical address space is larger than 4G, thus get the result as 0 and cause Oops. Fix it to use __pfn_to_phys instead. __pfn_to_phys will first cast the pfn to type phys_addr_t which is the type u64 when LPAE enabled, and left shifted by PAGE_SHIFT to get the proper physical address. Signed-off-by: ivan

[PATCH] arm: add save_stack_trace_regs() support

2013-11-04 Thread ivan lam
From: ivan lam Date: Mon, 4 Nov 2013 23:35:55 +0800 Subject: [PATCH] arm: add save_stack_trace_regs() support When configure kprobe events of ftrace with stacktrace option enabled in arm, not stacktrace was recorded after the kprobe was triggered. Implement the save_stack_trace_regs() function

[PATCH] arm: add save_stack_trace_regs() support

2013-11-04 Thread ivan lam
From: ivan lam ivan.lam2...@gmail.com Date: Mon, 4 Nov 2013 23:35:55 +0800 Subject: [PATCH] arm: add save_stack_trace_regs() support When configure kprobe events of ftrace with stacktrace option enabled in arm, not stacktrace was recorded after the kprobe was triggered. Implement