blob: 6de03b4291cff39929072428f67aa66afb969c6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Prints backtrace from lib through exe twice using diffent ustack functions.
global hits = 0;
probe process("uprobes_exe").function("main_func")
{
if (hits == 0)
{
log("print_ubacktrace exe 0");
print_ubacktrace();
hits++;
}
else if (hits == 1)
{
log("print_ustack exe 1");
print_ustack(ubacktrace());
hits++;
}
}
probe process("libuprobes_lib.so").function("lib_func")
{
if (hits == 2)
{
log("print_ubacktrace lib 2");
print_ubacktrace();
hits++;
}
else if (hits == 3)
{
log("print_ustack lib 3");
print_ustack(ubacktrace());
hits++;
}
}
|