summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/scf2.stp
blob: 5ad46350dea589af63f2a0fc0426fd709a564849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
global traces

probe kernel.function("smp_call_function") { 
  traces[pid(), pexecname(), backtrace()] ++
}
probe timer.ms(1000) { exit () }
probe end {
  foreach ([pid+, name, stack] in traces) { # sort by pid
    printf ("traces[%d,%s,\n", pid, name)
    print_stack (stack)
    printf ("] = %d\n", traces[pid, name, stack]);
  }
}