public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: use kstack_end() in dumpstack_64.c
@ 2015-02-22 15:23 Adrien Schildknecht
  2015-02-23 17:17 ` Steven Rostedt
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Adrien Schildknecht @ 2015-02-22 15:23 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86, srostedt, luto, adrien+dev, rostedt, bp,
	linux-kernel

i386 is already using kstack_end() in dumpstack_32.c.
We should also use it to make the code clearer and unify the stack
printing logic some more.

This patch depends on patch "x86: fix output of show_stack_log_lvl()"

Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
---
 arch/x86/kernel/dumpstack_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c
index 553573b..5f1c626 100644
--- a/arch/x86/kernel/dumpstack_64.c
+++ b/arch/x86/kernel/dumpstack_64.c
@@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
 				pr_cont(" <EOI> ");
 			}
 		} else {
-		if (((long) stack & (THREAD_SIZE-1)) == 0)
+		if (kstack_end(stack))
 			break;
 		}
 		if ((i % STACKSLOTS_PER_LINE) == 0) {
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-03 11:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-22 15:23 [PATCH] x86_64: use kstack_end() in dumpstack_64.c Adrien Schildknecht
2015-02-23 17:17 ` Steven Rostedt
2015-02-23 17:20   ` Borislav Petkov
2015-02-23 17:29   ` Adrien Schildknecht
2015-02-23 17:54     ` Steven Rostedt
2015-02-23 18:02 ` Borislav Petkov
2015-03-03 11:28 ` [tip:x86/debug] x86/kernel: Use " tip-bot for Adrien Schildknecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox