workqueue: add function in event of workqueue_activate_work
authorKassey Li <quic_yingangl@quicinc.com>
Fri, 8 Mar 2024 02:18:18 +0000 (10:18 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 25 Mar 2024 19:28:52 +0000 (09:28 -1000)
commitd6a7bbdde67227127e5e33fb9500bcc4abc40fb3
tree22d332e31a242f1903f4df03c9e9c71b2bd84159
parent79202591a55a365251496162ced3004a0a1fa1cf
workqueue: add function in event of workqueue_activate_work

The trace event "workqueue_activate_work" only print work struct.
However, function is the region of interest in a full sequence of work.
Current workqueue_activate_work trace event output:

    workqueue_activate_work: work struct ffffff88b4a0f450

With this change, workqueue_activate_work will print the function name,
align with workqueue_queue_work/execute_start/execute_end event.

    workqueue_activate_work: work struct ffffff80413a78b8 function=vmstat_update

Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/trace/events/workqueue.h