]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit315cf0ea74fcabb2bb0fd72567c5e0c35545808b
tree433ed892fc1733ddb28bf1bf2ac61bdac5b42398
parentf9a28508215a314043a175d988c598a7c4d8c0b4
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