mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "enlin.mu" <enlin.mu@linux.dev>
To: tglx@linutronix.de, bigeasy@linutronix.de, boqun.feng@gmail.com,
	mingo@kernel.org, ryotkkr98@gmail.com,
	linux-kernel@vger.kernel.org, enlin.mu@unisoc.com
Subject: Re: [PATCH] softirq: Print the function name
Date: Tue, 6 Jan 2026 14:16:57 +0800	[thread overview]
Message-ID: <252851c4-c7a0-49b1-9fca-f1bac04b588f@linux.dev> (raw)
In-Reply-To: <20260105094133.3542-1-enlin.mu@linux.dev>



On 2026/1/5 17:41, Enlin Mu wrote:
> Adjust the printing format from the function address to
> the function name.
> 
> Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
> Signed-off-by: Enlin Mu <enlin.mu@linux.dev>
> ---
>   kernel/softirq.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/softirq.c b/kernel/softirq.c
> index 77198911b8dd..68ef18616fb9 100644
> --- a/kernel/softirq.c
> +++ b/kernel/softirq.c
> @@ -622,7 +622,7 @@ static void handle_softirqs(bool ksirqd)
>   		h->action();
>   		trace_softirq_exit(vec_nr);
>   		if (unlikely(prev_count != preempt_count())) {
> -			pr_err("huh, entered softirq %u %s %p with preempt_count %08x, exited with %08x?\n",
> +			pr_err("huh, entered softirq %u %s %pS with preempt_count %08x, exited with %08x?\n",
>   			       vec_nr, softirq_to_name[vec_nr], h->action,
>   			       prev_count, preempt_count());

Hi All

My test results are as follows:

before this patch:

[   49.919574] softirq: huh, entered softirq 1 TIMER 00000000bb45ef3a 
with preempt_count 00000101, exited with 00000101?


after this patch:

[   49.919570] softirq: huh, entered softirq 1 TIMER 
run_timer_softirq+0x0/0x108 with preempt_count 00000101, exited with 
00000102?

>   			preempt_count_set(prev_count);


  reply	other threads:[~2026-01-06  6:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05  9:41 Enlin Mu
2026-01-06  6:16 ` enlin.mu [this message]
2026-01-08 21:39   ` Thomas Gleixner
2026-01-12 11:06     ` Sebastian Andrzej Siewior
2026-01-20  0:26       ` enlin.mu

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=252851c4-c7a0-49b1-9fca-f1bac04b588f@linux.dev \
    --to=enlin.mu@linux.dev \
    --cc=bigeasy@linutronix.de \
    --cc=boqun.feng@gmail.com \
    --cc=enlin.mu@unisoc.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=ryotkkr98@gmail.com \
    --cc=tglx@linutronix.de \
    /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®