Re: [PATCH] sysrq : fix Show Regs call trace on ARM

2017-09-12 Thread Jiri Slaby
On 09/13/2017, 08:04 AM, Jiri Slaby wrote: > On 09/11/2017, 01:22 PM, Jibin Xu wrote: >> Hi,Jiri: >> >> I tested get_irq_regs() behave in the softirq context, >> I called get_irq_regs() by a tasklet, It returns NULL.My understanding is >> get_irq_regs() can return the right result >> only in hard

Re: Re: [PATCH] sysrq : fix Show Regs call trace on ARM

2017-09-12 Thread Jiri Slaby
On 09/11/2017, 01:22 PM, Jibin Xu wrote: > Hi,Jiri: > > I tested get_irq_regs() behave in the softirq context, > I called get_irq_regs() by a tasklet, It returns NULL.My understanding is > get_irq_regs() can return the right result > only in hardware IRQ,otherwise it returns NULL. > So I t

Re: [PATCH] sysrq : fix Show Regs call trace on ARM

2017-09-11 Thread Jibin Xu
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) * a

Re: [PATCH] sysrq : fix Show Regs call trace on ARM

2017-09-10 Thread Jiri Slaby
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_