summaryrefslogtreecommitdiffstats
path: root/include/trace/events
diff options
context:
space:
mode:
authorZqiang <qiang.zhang@windriver.com>2021-01-04 13:43:06 +0100
committerTejun Heo <tj@kernel.org>2021-01-19 17:03:54 +0100
commit7bf9c4a88e3e33cf593b2452776361c6db0f28b0 (patch)
tree0dd4587cfa872474063c7489f3bb05c5735bbf5a /include/trace/events
parentworkqueue: fix annotation for WQ_SYSFS (diff)
downloadlinux-7bf9c4a88e3e33cf593b2452776361c6db0f28b0.tar.xz
linux-7bf9c4a88e3e33cf593b2452776361c6db0f28b0.zip
workqueue: tracing the name of the workqueue instead of it's address
This patch tracing workqueue name instead of it's address, the new format is as follows. workqueue_queue_work: work struct=0000000084e3df56 function= drm_fb_helper_dirty_work workqueue=events req_cpu=256 cpu=1 This tell us to know which workqueue our work is queued. Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/workqueue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/workqueue.h b/include/trace/events/workqueue.h
index 9b8ae961acc5..970cc2ea2850 100644
--- a/include/trace/events/workqueue.h
+++ b/include/trace/events/workqueue.h
@@ -30,7 +30,7 @@ TRACE_EVENT(workqueue_queue_work,
TP_STRUCT__entry(
__field( void *, work )
__field( void *, function)
- __field( void *, workqueue)
+ __field( const char *, workqueue)
__field( unsigned int, req_cpu )
__field( unsigned int, cpu )
),
@@ -38,12 +38,12 @@ TRACE_EVENT(workqueue_queue_work,
TP_fast_assign(
__entry->work = work;
__entry->function = work->func;
- __entry->workqueue = pwq->wq;
+ __entry->workqueue = pwq->wq->name;
__entry->req_cpu = req_cpu;
__entry->cpu = pwq->pool->cpu;
),
- TP_printk("work struct=%p function=%ps workqueue=%p req_cpu=%u cpu=%u",
+ TP_printk("work struct=%p function=%ps workqueue=%s req_cpu=%u cpu=%u",
__entry->work, __entry->function, __entry->workqueue,
__entry->req_cpu, __entry->cpu)
);