summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/lib.stp
blob: 0151282e35fb2b46f45c550dc918b302dc91ce93 (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\n");
}

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

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