Mike Mason
2006-08-10 19:35:10 UTC
Is there some trick to getting print_backtrace to work? The following
script:
probe syscall.open.return {
if (isinstr(retstr, "ENOENT")) {
printf("%s: %s (%s) = ", execname(), name, argstr)
printf("%s\n", retstr)
print_backtrace();
}
}
yields this output:
ls: open () = -2 (ENOENT)
trace for 7416 (ls)
0xffffffff8011c7c5 : kretprobe_trampoline+0x1/0x4 []
I get one line from the stack and that's it. I assume I should see the
full stack.
Mike
script:
probe syscall.open.return {
if (isinstr(retstr, "ENOENT")) {
printf("%s: %s (%s) = ", execname(), name, argstr)
printf("%s\n", retstr)
print_backtrace();
}
}
yields this output:
ls: open () = -2 (ENOENT)
trace for 7416 (ls)
0xffffffff8011c7c5 : kretprobe_trampoline+0x1/0x4 []
I get one line from the stack and that's it. I assume I should see the
full stack.
Mike