This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: user-space tracing on Debian... or..?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]