-h Print usage message.
-p PID Trace this process ID only.
-i INTERVAL Print output every interval seconds.
-d DURATION Total duration of trace in seconds.
-T Include timestamps on output.
-r Use regular expressions for the search pattern.
-D Print the BPF program before starting (for debugging purposes).
-c CPU Trace on this CPU only.
Count kernel functions beginning with "vfs_", until Ctrl-C is hit: # funccount 'vfs_*'
Count kernel functions beginning with "tcp_send", until Ctrl-C is hit: # funccount 'tcp_send*'
Print kernel functions beginning with "vfs_", every second: # funccount -i 1 'vfs_*'
Print kernel functions beginning with "vfs_", for ten seconds only: # funccount -d 10 'vfs_*'
Match kernel functions beginning with "vfs_", using regular expressions: # funccount -r '^vfs_.*'
Count vfs calls for process ID 181 only: # funccount -p 181 'vfs_*'
Count calls to the sched_fork tracepoint, indicating a fork() performed: # funccount t:sched:sched_fork
Count all GC USDT probes in the Node process: # funccount -p 185 u:node:gc*
Count all malloc() calls in libc: # funccount c:malloc
Count kernel functions beginning with "vfs_" on CPU 1 only: # funccount -c 1 'vfs_*'
FUNC Function name
COUNT Number of calls while tracing
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.