summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/lib.stp
blob: 3fdc6db9a7115168cde1dadb668dfe524851f9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Plain function call probes in executable and shared library
// Arguments: @1 uprobes_exe, @2 libuprobes_lib.so

probe process(@1).function("main") {
  printf("main\n");
}

probe process(@1).function("main_func") {
  printf("main_func %d\n", $foo);
}

probe process(@2).function("lib_main") {
  printf("lib_main\n");
}

probe process(@2).function("lib_func") {
  printf("lib_func %d\n", $bar);
}