summaryrefslogtreecommitdiffstats
path: root/examples/small_demos/sys.stp
blob: 2df20bc3f02bb7e181095312fb016f8f237d1456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env stap

# print all system calls on the system

probe syscall.* {
  if (execname() != "staprun")
	printf("%s: %s (%s) = ", execname(), name, argstr)
}

probe syscall.*.return {
  if (execname() != "staprun")
	printf("%s\n", retstr)
}

probe end {
	printf("\n")
}