Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40d17a22 authored by Matt Wagantall's avatar Matt Wagantall Committed by Prasad Sodagudi
Browse files

arm64: Don't call dump_mem() on stack memory during __die()



With multiple CPUs online, these memory dumps may consume a very
large amount of log buffer space, pushing out useful information.

Drop the call to dump_mem() for stack memory. The actual string-
formatted call stack will still be printed, which should be sufficient
for identifying the context of a panic. Stack memory can be collected
from full memory ramdumps if needed.

Change-Id: I2d08b49217b3838d3d3e7f8deceb937bb90ffaf7
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 00d37423
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -257,8 +257,6 @@ static int __die(const char *str, int err, struct pt_regs *regs)
		 end_of_stack(tsk));

	if (!user_mode(regs)) {
		dump_mem(KERN_EMERG, "Stack: ", regs->sp,
			 THREAD_SIZE + (unsigned long)task_stack_page(tsk));
		dump_backtrace(regs, tsk);
		dump_instr(KERN_EMERG, regs);
	}