HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/doc/bpftrace/examples/syncsnoop_example.txt
Demonstrations of syncsnoop, the Linux bpftrace/eBPF version.


Tracing file system sync events:

# ./syncsnoop.bt
Attaching 7 probes...
Tracing sync syscalls... Hit Ctrl-C to end.
TIME      PID    COMM             EVENT
02:02:17  27933  sync             tracepoint:syscalls:sys_enter_sync
02:03:43  27936  sync             tracepoint:syscalls:sys_enter_sync

The output shows calls to the sync() syscall (traced via its tracepoint),
along with various details.


There is another version of this tool in bcc: https://github.com/iovisor/bcc