Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c883da31
Commit
c883da31
authored
Jul 30, 2018
by
Jeff Layton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locks: add tracepoint in flock codepath
Signed-off-by:
Jeff Layton
<
jlayton@kernel.org
>
parent
1cf8e5de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
fs/locks.c
fs/locks.c
+1
-0
include/trace/events/filelock.h
include/trace/events/filelock.h
+4
-1
No files found.
fs/locks.c
View file @
c883da31
...
@@ -990,6 +990,7 @@ static int flock_lock_inode(struct inode *inode, struct file_lock *request)
...
@@ -990,6 +990,7 @@ static int flock_lock_inode(struct inode *inode, struct file_lock *request)
if
(
new_fl
)
if
(
new_fl
)
locks_free_lock
(
new_fl
);
locks_free_lock
(
new_fl
);
locks_dispose_list
(
&
dispose
);
locks_dispose_list
(
&
dispose
);
trace_flock_lock_inode
(
inode
,
request
,
error
);
return
error
;
return
error
;
}
}
...
...
include/trace/events/filelock.h
View file @
c883da31
...
@@ -112,8 +112,11 @@ DEFINE_EVENT(filelock_lock, locks_remove_posix,
...
@@ -112,8 +112,11 @@ DEFINE_EVENT(filelock_lock, locks_remove_posix,
TP_PROTO
(
struct
inode
*
inode
,
struct
file_lock
*
fl
,
int
ret
),
TP_PROTO
(
struct
inode
*
inode
,
struct
file_lock
*
fl
,
int
ret
),
TP_ARGS
(
inode
,
fl
,
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_PROTO
(
struct
inode
*
inode
,
struct
file_lock
*
fl
),
TP_ARGS
(
inode
,
fl
),
TP_ARGS
(
inode
,
fl
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment