]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add work_struct information for workqueue tracepoint
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 12 Aug 2014 08:33:17 +0000 (16:33 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:51 +0000 (13:37 -0700)
commitfe8e05eb688586de05fdbc9e10bb08f27bd8680a
treea836ac1d5d51051cad3ce345891125af1593d858
parentfe5c31dbdf817f4d9edfd1c2d0a9a3026a607e03
Btrfs: add work_struct information for workqueue tracepoint

Kernel workqueue's tracepoints print the address of work_struct, while btrfs
workqueue's tracepoints print the address of btrfs_work.

We need a connection between this two, for example when debuging, we usually
grep an address in the trace output.  So it'd be better to also print
work_struct in btrfs workqueue's tracepoint.

Please note that we can only add this into those tracepoints whose work is still
available in memory because we need to reference the work.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
include/trace/events/btrfs.h