-
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/mountsnoop: Support fsopen,fsconfig,fsmount,move_mount s…
…yscalls Do the same thing of bcc commit 60ebaf4 ("tools/mountsnoop: Support fsopen(2), fsmount(2), fsconfig(2), move_mount(2)") $ sudo ./mountsnoop COMM PID TID MNT_NS CALL fsmount 431216 431216 4026531841 fsopen("ext4", 0x0) = 5 fsmount 431216 431216 4026531841 fsconfig(5, "FSCONFIG_SET_FLAG", "rw", "", 0) = 0 fsmount 431216 431216 4026531841 fsconfig(5, "FSCONFIG_SET_STRING", "source", "/dev/loop0", 0) = 0 fsmount 431216 431216 4026531841 fsconfig(5, "FSCONFIG_CMD_CREATE", "", "", 0) = 0 fsmount 431216 431216 4026531841 fsmount(5, "0x0", "MOUNT_ATTR_RDONLY") = 6 fsmount 431216 431216 4026531841 move_mount(6, "", AT_FDCWD, "./tmp-dir/", "") = 0 fsmount 431216 431216 4026531841 umount("./tmp-dir/", 0x0) = 0 In the above test, the C program is more complicated, so I will not show it here, but a test example is given in the link [1]. [1] https://github.com/torvalds/linux/blob/master/samples/vfs/test-fsmount.c Signed-off-by: Rong Tao <[email protected]>
- Loading branch information
1 parent
464f89b
commit eabed37
Showing
3 changed files
with
463 additions
and
54 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
Oops, something went wrong.