-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{libbpf-tools,tools}/vfsstat: Add unlink,mkdir,rmdir stat (#4995)
The program counts OPEN and CREATE, so UNLINK statistics are very valuable. At the same time, statistics on folder creation and deletion are added. Test MKDIR/RMDIR: $ while :; do mkdir a.dir && rmdir a.dir; done Test UNLINK: $ while :; do touch a.out && rm a.out; done Signed-off-by: Rong Tao <[email protected]>
- Loading branch information
Showing
5 changed files
with
88 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ enum stat_types { | |
S_FSYNC, | ||
S_OPEN, | ||
S_CREATE, | ||
S_UNLINK, | ||
S_MKDIR, | ||
S_RMDIR, | ||
S_MAXSTAT, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters