summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/mark.stp
blob: 6b354dff2bfb81be1ee526c2a152756d84518865 (plain)
1
2
3
4
5
6
7
8
9
10
// Markers probes in executable and shared library plus argument.
// Arguments: @1 uprobes_exe, @2 libuprobes_lib.so

probe process(@1).mark("main_count") {
  printf("main_count: %d\n", $arg1);
}

probe process(@2).mark("func_count") {
  printf("func_count: %d\n", $arg1);
}