From: Greg KH <gregkh@linuxfoundation.org>
To: Sumanth Gavini <sumanth.gavini@yahoo.com>
Cc: rostedt@goodmis.org, mhiramat@kernel.org, tglx@linutronix.de,
jstultz@google.com, clingutla@codeaurora.org, mingo@kernel.org,
sashal@kernel.org, boqun.feng@gmail.com, ryotkkr98@gmail.com,
kprateek.nayak@amd.com, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, "J . Avila" <elavila@google.com>
Subject: Re: [PATCH 6.1] softirq: Add trace points for tasklet entry/exit
Date: Fri, 22 Aug 2025 15:07:32 +0200 [thread overview]
Message-ID: <2025082257-smirk-backside-6d93@gregkh> (raw)
In-Reply-To: <20250812161755.609600-1-sumanth.gavini@yahoo.com>
On Tue, Aug 12, 2025 at 11:17:54AM -0500, Sumanth Gavini wrote:
> commit f4bf3ca2e5cba655824b6e0893a98dfb33ed24e5 upstream.
>
> Tasklets are supposed to finish their work quickly and should not block the
> current running process, but it is not guaranteed that they do so.
>
> Currently softirq_entry/exit can be used to analyse the total tasklets
> execution time, but that's not helpful to track individual tasklets
> execution time. That makes it hard to identify tasklet functions, which
> take more time than expected.
>
> Add tasklet_entry/exit trace point support to track individual tasklet
> execution.
>
> Trivial usage example:
> # echo 1 > /sys/kernel/debug/tracing/events/irq/tasklet_entry/enable
> # echo 1 > /sys/kernel/debug/tracing/events/irq/tasklet_exit/enable
> # cat /sys/kernel/debug/tracing/trace
> # tracer: nop
> #
> # entries-in-buffer/entries-written: 4/4 #P:4
> #
> # _-----=> irqs-off/BH-disabled
> # / _----=> need-resched
> # | / _---=> hardirq/softirq
> # || / _--=> preempt-depth
> # ||| / _-=> migrate-disable
> # |||| / delay
> # TASK-PID CPU# ||||| TIMESTAMP FUNCTION
> # | | | ||||| | |
> <idle>-0 [003] ..s1. 314.011428: tasklet_entry: tasklet=0xffffa01ef8db2740 function=tcp_tasklet_func
> <idle>-0 [003] ..s1. 314.011432: tasklet_exit: tasklet=0xffffa01ef8db2740 function=tcp_tasklet_func
> <idle>-0 [003] ..s1. 314.017369: tasklet_entry: tasklet=0xffffa01ef8db2740 function=tcp_tasklet_func
> <idle>-0 [003] ..s1. 314.017371: tasklet_exit: tasklet=0xffffa01ef8db2740 function=tcp_tasklet_func
>
> Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
> Signed-off-by: J. Avila <elavila@google.com>
> Signed-off-by: John Stultz <jstultz@google.com>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
> Link: https://lore.kernel.org/r/20230407230526.1685443-1-jstultz@google.com
>
> [elavila: Port to android-mainline]
This is not android-mainline, this is the normal stable tree.
And I'm with John, this makes no sense as to why you need/want these. I
think that the syzbot report is bogus, sorry. Please prove me wrong :)
thanks,
greg k-h
next prev parent reply other threads:[~2025-08-22 13:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250812161755.609600-1-sumanth.gavini.ref@yahoo.com>
2025-08-12 16:17 ` [PATCH 6.1] softirq: Add trace points for tasklet entry/exit Sumanth Gavini
2025-08-21 18:40 ` Sumanth Gavini
2025-08-21 18:54 ` John Stultz
2025-08-21 21:02 ` Sumanth Gavini
2025-08-21 22:05 ` John Stultz
2025-08-22 13:07 ` Greg KH [this message]
2025-08-23 17:42 ` Thomas Gleixner
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=2025082257-smirk-backside-6d93@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=boqun.feng@gmail.com \
--cc=clingutla@codeaurora.org \
--cc=elavila@google.com \
--cc=jstultz@google.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@kernel.org \
--cc=rostedt@goodmis.org \
--cc=ryotkkr98@gmail.com \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=sumanth.gavini@yahoo.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;
as well as URLs for NNTP newsgroup(s).