Created
January 28, 2025 09:13
-
-
Save cr0nx/9030cc9389c50e0c21b81eb7ded077cd to your computer and use it in GitHub Desktop.
bpftrace tracing init_module and finit_module syscalls
This file contains hidden or 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
| #!/usr/bin/env bpftrace | |
| BEGIN { | |
| printf("Tracing init_module and finit_module syscalls... Hit Ctrl+C to stop.\n"); | |
| } | |
| tracepoint:syscalls:sys_enter_init_module, | |
| tracepoint:syscalls:sys_enter_finit_module { | |
| printf("Syscall executed: %s (PID: %d, UID: %d, Command: %s)\n", probe, pid, uid, comm); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment