This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: user-space tracing on Debian... or..?
- From: corpaul <c dot bezemer at tudelft dot nl>
- To: systemtap at sourceware dot org
- Date: Fri, 5 Apr 2013 06:38:34 -0700 (PDT)
- Subject: Re: user-space tracing on Debian... or..?
- References: <1363106084419-225167 dot post at n7 dot nabble dot com> <84obeo8jbs dot fsf at sauna dot l dot org> <1363160027043-225252 dot post at n7 dot nabble dot com> <20130313142814 dot GA2263 at redhat dot com> <1363355658749-225525 dot post at n7 dot nabble dot com> <y0m1ubgg0hg dot fsf at fche dot csb> <1364466368978-226775 dot post at n7 dot nabble dot com> <51546EFE dot 9040506 at redhat dot com> <51547396 dot 4070206 at redhat dot com>
I was finally able to get user-space probes working in Debian.
What I did was (thanks to Andrew Bernat from Dyninst for providing excellent
support):
1 - Install libdwarf as shared library
Download libdwarf
cd dwarf-2013-02-07/libdwarf
./configure --enable-shared
make
mkdir -p /where/you/want/dwarf/include/files
mkdir -p /where/you/want/dwarf/lib/files
cp libdwarf.h dwarf.h /where/you/want/dwarf/include/files
cp libdwarf.so /where/you/want/dwarf/lib/files
Add /where/you/want/dwarf/lib/files to LD_LIBRARY_PATH
add dwarf.conf to /etc/ld.so.conf.d/ with /where/you/want/dwarf/lib/files as
contents
(not sure all these steps were mandatory but at least they worked for me)
2 - Build Dyninst 8.1.1
Configure Dyninst with
--with-libdwarf-incdir=/where/you/want/dwarf/include/files and
--with-libdwarf-libdir=/where/you/want/dwarf/lib/files
--prefix=/where/you/want/dyninst
3 - Build Systemtap 2.2
Configure with: ./configure --with-dyninst=/where/you/want/dyninst
--prefix=/where/you/want/systemtap --with-elfutils=elfutils/elfutils-0.153
and make the source code
and the probe ./stap -e 'probe process.function("main") { print(pn()); }'
--runtime=dyninst -c './stap -V'
should work now.
Now... next step is getting python user-space probing to work :')
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/user-space-tracing-on-Debian-or-tp225167p227467.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.