From: Richard Weinberger <richard@nod.at>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org, Richard Weinberger <richard@nod.at>
Subject: [PATCH 4/4] um: Make kstack_depth_to_print conform to arch/x86
Date: Mon, 23 Sep 2013 17:38:04 +0200 [thread overview]
Message-ID: <1379950684-18710-4-git-send-email-richard@nod.at> (raw)
In-Reply-To: <1379950684-18710-1-git-send-email-richard@nod.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
arch/um/kernel/sysrq.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index 7122bf9..4d6fdf6 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -46,9 +46,6 @@ static void print_stack_trace(unsigned long *sp, unsigned long bp)
printk(KERN_INFO "\n");
}
-/*Stolen from arch/i386/kernel/traps.c */
-static const int kstack_depth_to_print = 24;
-
static unsigned long get_frame_pointer(struct task_struct *task,
struct pt_regs *segv_regs)
{
@@ -88,7 +85,7 @@ void show_stack(struct task_struct *task, unsigned long *stack)
printk(KERN_INFO "Stack:\n");
stack = sp;
- for (i = 0; i < kstack_depth_to_print; i++) {
+ for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
if (kstack_end(stack))
break;
if (i && ((i % STACKSLOTS_PER_LINE) == 0))
--
1.8.3.1
prev parent reply other threads:[~2013-09-23 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 15:38 [PATCH 1/4] um: Rewrite show_stack() Richard Weinberger
2013-09-23 15:38 ` [PATCH 2/4] um: Make stack trace reliable against kernel mode faults Richard Weinberger
2013-09-23 15:38 ` [PATCH 3/4] um: Get rid of thread_struct->saved_task Richard Weinberger
2013-09-23 15:38 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1379950684-18710-4-git-send-email-richard@nod.at \
--to=richard@nod.at \
--cc=linux-kernel@vger.kernel.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®