blob: c02f97ae9616436e75a228e3cf3693fcef780566 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
# options '-c cmd' and '-x pid' are mutually exclusive
#
# -c CMD start the probes, run CMD, and exit when it finishes
# -x PID sets target() to PID
stap -p1 -c /bin/ls -x 100 -e 'probe begin { exit() }'
|