Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/syncsnoop: Add more syscalls support #5064

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

Rtoax
Copy link
Contributor

@Rtoax Rtoax commented Jul 17, 2024

Add fsync(),fdatasync(),syncfs(),sync_file_range(),msync() syscalls to trace. For example:

$ sudo ./syncsnoop.py
TIME(s)            COMM             CALL
1173253.856512000  worker           fdatasync
1173260.193706000  sync             sync
1173261.478894000  syncfs           syncfs
1173264.231075000  fsync            fsync
1173264.297788000  fsync            fdatasync
1173284.063700000  worker           fdatasync
1173288.229822000  mkfs.ext4        fsync
1173304.818227000  worker           fdatasync
1173315.065319000  journal-offline  fsync

Add fsync(),fdatasync(),syncfs(),sync_file_range(),msync() syscalls to
trace. For example:

    $ sudo ./syncsnoop.py
    TIME(s)            COMM             CALL
    1173253.856512000  worker           fdatasync
    1173260.193706000  sync             sync
    1173261.478894000  syncfs           syncfs
    1173264.231075000  fsync            fsync
    1173264.297788000  fsync            fdatasync
    1173284.063700000  worker           fdatasync
    1173288.229822000  mkfs.ext4        fsync
    1173304.818227000  worker           fdatasync
    1173315.065319000  journal-offline  fsync

Signed-off-by: Rong Tao <[email protected]>
@yonghong-song yonghong-song merged commit a9661e9 into iovisor:master Jul 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants