The only library in /lib/x86_64-linux-gnu that have sdt notes is libgcc_s on by machine, with unwind marker. So this patch add a simple ktap script that use it. Signed-off-by: Azat Khuzhin <a3at.mail@xxxxxxxxx> --- scripts/userspace/gcc_unwind.kp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/userspace/gcc_unwind.kp diff --git a/scripts/userspace/gcc_unwind.kp b/scripts/userspace/gcc_unwind.kp new file mode 100644 index 0000000..3586d62 --- /dev/null +++ b/scripts/userspace/gcc_unwind.kp @@ -0,0 +1,9 @@ +#!/usr/bin/env ktap + +#only tested in x86-64 system, +#if you run this script in x86_32, change the libc path. + +trace stapsdt:/lib/x86_64-linux-gnu/libgcc_s.so.1:unwind { + print(execname(), argevent) +} + -- 1.8.4.rc3