OSDN Git Service

btrfs: trace: Introduce trace events for all btrfs tree locking events
authorQu Wenruo <wqu@suse.com>
Mon, 15 Apr 2019 13:15:25 +0000 (21:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:43 +0000 (19:02 +0200)
commit31aab402076f7743b70217cdaa00356e8f8ec530
tree7d75128d2cf0a8c6cc67f5e747feba42134cf4f3
parent34e73cc930a8677426c9cbffdd3421e18f32e79f
btrfs: trace: Introduce trace events for all btrfs tree locking events

Unlike btrfs_tree_lock() and btrfs_tree_read_lock(), the remaining
functions in locking.c will not sleep, thus doesn't make much sense to
record their execution time.

Those events are introduced mainly for user space tool to audit and
detect lock leakage or dead lock.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c
include/trace/events/btrfs.h