From: Jibin Xu <jibin.xu@windriver.com>
To: Jiri Slaby <jslaby@suse.cz>, <gregkh@linuxfoundation.org>
Cc: <rmk+kernel@armlinux.org.uk>, <mingo@elte.hu>,
<linux-arm-kernel@lists.infradead.org>, <riel@redhat.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sysrq : fix Show Regs call trace on ARM
Date: Mon, 11 Sep 2017 17:55:05 +0800 [thread overview]
Message-ID: <5dd5bb30-15af-ab44-8b56-57c3c1d53bc4@windriver.com> (raw)
In-Reply-To: <8c09c309-e088-1dd6-8d6f-f8929acf0f5f@suse.cz>
Hi,Jiri:
get_irq_regs() in the softirq context return NULL.
thanks,
Jibin Xu
On 2017年09月11日 13:24, Jiri Slaby wrote:
> On 09/11/2017, 05:11 AM, Jibin Xu wrote:
> ...
>> --- a/drivers/tty/sysrq.c
>> +++ b/drivers/tty/sysrq.c
>> @@ -245,8 +245,10 @@ static void sysrq_handle_showallcpus(int key)
>> * architecture has no support for it:
>> */
>> if (!trigger_all_cpu_backtrace()) {
>> - struct pt_regs *regs = get_irq_regs();
>> + struct pt_regs *regs = NULL;
>>
>> + if (in_irq())
>> + regs = get_irq_regs();
> Maybe a stupid question: how does get_irq_regs() behave in the softirq
> context? I.e. what about s/in_irq/in_interrupt/?
>
> thanks,
next prev parent reply other threads:[~2017-09-11 9:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 3:11 Jibin Xu
2017-09-11 5:24 ` Jiri Slaby
2017-09-11 9:55 ` Jibin Xu [this message]
[not found] ` <17da8267-c4aa-dc0f-1150-4fd5efe0073c@windriver.com>
2017-09-13 6:04 ` Jiri Slaby
2017-09-13 6:14 ` Jiri Slaby
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=5dd5bb30-15af-ab44-8b56-57c3c1d53bc4@windriver.com \
--to=jibin.xu@windriver.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=riel@redhat.com \
--cc=rmk+kernel@armlinux.org.uk \
/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®