btrfs: Add trace for btrfs_workqueue alloc/destroy
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 12 Mar 2014 08:05:33 +0000 (08:05 +0000)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 00:15:28 +0000 (17:15 -0700)
commitc3a468915a384c0015263edd9b7263775599a323
tree433ed892fc1733ddb28bf1bf2ac61bdac5b42398
parentf094c9bd3e12ee83e91f4249b600d4d2ac0a4738
btrfs: Add trace for btrfs_workqueue alloc/destroy

Since most of the btrfs_workqueue is printed as pointer address,
for easier analysis, add trace for btrfs_workqueue alloc/destroy.
So it is possible to determine the workqueue that a given work belongs
to(by comparing the wq pointer address with alloc trace event).

Signed-off-by: Qu Wenruo <quenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/async-thread.c
fs/btrfs/async-thread.h
include/trace/events/btrfs.h