This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Is there any better method to pass "-d OBJECT" options in command line?
- From: Nan Xiao <xiaonan830818 at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 10 Nov 2015 13:48:16 +0800
- Subject: Is there any better method to pass "-d OBJECT" options in command line?
- Authentication-results: sourceware.org; auth=none
Hi all,
I want to track which functions calling fork, so I modify forktracker.stp
(https://sourceware.org/systemtap/examples/process/forktracker.stp):
probe kprocess.create {
printf("%-25s: %s (%d:%d) created %d:%d\n",
ctime(gettimeofday_s()), execname(), pid(), tid(), new_pid, new_tid)
print_ubacktrace();
}
probe kprocess.exec {
printf("%-25s: %s (%d) is exec'ing %s\n",
ctime(gettimeofday_s()), execname(), pid(), filename)
print_ubacktrace()
}
But after executing the script, I find it sometimes prompts warnings:
WARNING: Missing unwind data for module, rerun with 'stap -d
/usr/lib64/libpython2.7.so.1.0'
......
WARNING: Missing unwind data for module, rerun with 'stap -d
.../lib64/libvirt/connection-driver/libvirt_driver_interface.so'
WARNING: Missing unwind data for module, rerun with 'stap -d /bin/bash'
I can use "stap -d /usr/lib64/libpython2.7.so.1.0 -d .. -d ...
forktracker.stp" to resolve
this issue. But if there are many lacking libraries, the "-d ..."
options will cause command line
too long.
So my question is whether there is a better method to specify these
lacked "*.so" files?
Thanks in advance!
Best Regards
Nan Xiao