workqueue: add worker function to workqueue_execute_end tracepoint
authorDaniel Jordan <daniel.m.jordan@oracle.com>
Mon, 13 Jan 2020 22:52:39 +0000 (17:52 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 15 Jan 2020 16:02:47 +0000 (08:02 -0800)
commit1c5da0ec7f20dfb56030fb93f7f52f48e12deb52
tree3d11637160fd144971fd285d6053e81ab77be84e
parent95e20af9fb9ce572129b930967dcb762a318c588
workqueue: add worker function to workqueue_execute_end tracepoint

It's surprising that workqueue_execute_end includes only the work when
its counterpart workqueue_execute_start has both the work and the worker
function.

You can't set a tracing filter or trigger based on the function, and
postprocessing scripts interested in specific functions are harder to
write since they have to remember the work from _start and match it up
with the same field in _end.

Add the function name, taking care to use the copy stashed in the
worker since the work is no longer safe to touch.

Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Tejun Heo <tj@kernel.org>
include/trace/events/workqueue.h
kernel/workqueue.c