summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2018-07-30 07:54:56 -0400
committerJeff Layton <jlayton@kernel.org>2018-08-06 13:15:16 -0400
commitc883da313ebf459efd33d262ca963e3a5f0ac024 (patch)
tree2858e05b2ca3a6e5e75b20e580d97a40d29e357b
parent1cf8e5de4055f85383405a21a0a7c3c4348bf2ed (diff)
downloadlinux-c883da313ebf459efd33d262ca963e3a5f0ac024.tar.bz2
locks: add tracepoint in flock codepath
Signed-off-by: Jeff Layton <jlayton@kernel.org>
-rw-r--r--fs/locks.c1
-rw-r--r--include/trace/events/filelock.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index e533623e2e99..6138a9bcd924 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -990,6 +990,7 @@ out:
if (new_fl)
locks_free_lock(new_fl);
locks_dispose_list(&dispose);
+ trace_flock_lock_inode(inode, request, error);
return error;
}
diff --git a/include/trace/events/filelock.h b/include/trace/events/filelock.h
index d1faf3597b9d..68b17c116907 100644
--- a/include/trace/events/filelock.h
+++ b/include/trace/events/filelock.h
@@ -112,8 +112,11 @@ DEFINE_EVENT(filelock_lock, locks_remove_posix,
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
TP_ARGS(inode, fl, ret));
-DECLARE_EVENT_CLASS(filelock_lease,
+DEFINE_EVENT(filelock_lock, flock_lock_inode,
+ TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
+ TP_ARGS(inode, fl, ret));
+DECLARE_EVENT_CLASS(filelock_lease,
TP_PROTO(struct inode *inode, struct file_lock *fl),
TP_ARGS(inode, fl),