Re: [PATCH] trace/sched: add tgid for sched_wakeup_template

2024-03-28 Thread 张元瀚 Tio Zhang
Make sense to me, thank you for your explanation. On 3/27/24, 10:24 PM, "Steven Rostedt" mailto:rost...@goodmis.org>> wrote: On Wed, 27 Mar 2024 16:50:57 +0800 Tio Zhang mailto:tiozh...@didiglobal.com>> wrote: > By doing this, we are able to filter tasks by tgid while we are > tracing wakeup

Re: [PATCH] trace/sched: add tgid for sched_wakeup_template

2024-03-27 Thread Steven Rostedt
On Wed, 27 Mar 2024 16:50:57 +0800 Tio Zhang wrote: > By doing this, we are able to filter tasks by tgid while we are > tracing wakeup events by ebpf or other methods. > > For example, when we care about tracing a user space process (which has > uncertain number of LWPs, i.e, pids) to monitor

[PATCH] trace/sched: add tgid for sched_wakeup_template

2024-03-27 Thread Tio Zhang
By doing this, we are able to filter tasks by tgid while we are tracing wakeup events by ebpf or other methods. For example, when we care about tracing a user space process (which has uncertain number of LWPs, i.e, pids) to monitor its wakeup latency, without tgid available in sched_wakeup