All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Aas <josha@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: print CPU number when warning of hazards
Date: Wed, 14 Jul 2004 21:50:32 +0000	[thread overview]
Message-ID: <40F5AAA8.5020500@sgi.com> (raw)

Hello,

The following patch would be useful for diagnostics. Please apply.

Signed-off-by: Josh Aas <josha@sgi.com>

-----------------------------------
--- a/arch/ia64/kernel/traps.c       2004-06-16 00:20:04.000000000 -0500
+++ b/arch/ia64/kernel/traps.c  2004-07-14 15:39:58.000000000 -0500
@@ -427,9 +427,9 @@ ia64_fault (unsigned long vector, unsign
                                       ? " (RSE access)" : " (data access)") : "");
                if (code = 8) {
 # ifdef CONFIG_IA64_PRINT_HAZARDS
-                       printk("%s[%d]: possible hazard @ ip=%016lx (pr = %016lx)\n",
+                       printk("%s[%d]: possible hazard @ ip=%016lx (pr = %016lx) on CPU %d\n",
                               current->comm, current->pid, regs->cr_iip + ia64_psr(regs)->ri,
-                              regs->pr);
+                              regs->pr, smp_processor_id());
 # endif
                        return;
                }
-----------------------------------

-- 
Josh Aas
Silicon Graphics, Inc. (SGI)
Linux System Software
651-683-3068

             reply	other threads:[~2004-07-14 21:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14 21:50 Joshua Aas [this message]
2004-07-14 23:29 ` print CPU number when warning of hazards David Mosberger
2004-07-15 14:57 ` Joshua Aas
2004-07-15 17:46 ` David Mosberger

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=40F5AAA8.5020500@sgi.com \
    --to=josha@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.