1*387f9dfdSAndroid Build Coastguard WorkerDemonstrations of syncsnoop, the Linux eBPF/bcc version. 2*387f9dfdSAndroid Build Coastguard Worker 3*387f9dfdSAndroid Build Coastguard Worker 4*387f9dfdSAndroid Build Coastguard WorkerThis program traces calls to the kernel sync() routine, with basic timestamps: 5*387f9dfdSAndroid Build Coastguard Worker 6*387f9dfdSAndroid Build Coastguard Worker# ./syncsnoop 7*387f9dfdSAndroid Build Coastguard WorkerTIME(s) CALL 8*387f9dfdSAndroid Build Coastguard Worker16458148.611952 sync() 9*387f9dfdSAndroid Build Coastguard Worker16458151.533709 sync() 10*387f9dfdSAndroid Build Coastguard Worker^C 11*387f9dfdSAndroid Build Coastguard Worker 12*387f9dfdSAndroid Build Coastguard WorkerWhile tracing, the "sync" command was executed in another server session. 13*387f9dfdSAndroid Build Coastguard Worker 14*387f9dfdSAndroid Build Coastguard WorkerThis can be useful to identify that sync() is being called, and its frequency. 15