summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/small_demos/close.stp
blob: 7ba2a0369939f31a627ac6c6829e723b48a25b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env stap

probe syscall.close {
	printf("%s: %s(%s) = ", execname(), name, argstr)
}

probe syscall.close.return {
	printf("%s\n", returnstr(returnp))
}

probe end {
	printf("DONE\n")
}