lttng-dev Digest, Vol 60, Issue 31
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line
Absolutely: no patching required.
I decided to find out if the lttng-modules were required at all if one needs to do only user-space tracing.
I installed (on an otherwise lttng-virgin system) just the userspace-rcu, lttng-ust, and lttng-tools packages. The lttng commands fail for the usual "can't find /usr/local/lib" reason, so I need to do not:
$ lttng list -u
but rather
$ LD_PRELOAD=/usr/local/lib/liblttng-ctl.so:/usr/local/lib/liblttng-ust-ctl.so lttng list -u
or
$ LD_LIBRARY_PATH=/usr/local/lib lttng list -u
However, once I made the lttng-ust/doc/examples/easy-ust sample, I get a segmentation fault/core dump after starting the trace.
$ LD_LIBRARY_PATH=/usr/local/lib lttng create usttrace Session usttrace created. Traces will be written in /home/daniel/lttng-traces/usttrace-20130418-150106 $ LD_LIBRARY_PATH=/usr/local/lib lttng enable-event -u --all All UST events are enabled in channel channel0 $ LD_LIBRARY_PATH=/usr/local/lib lttng start Tracing started for session usttrace $ LD_LIBRARY_PATH=/usr/local/lib ./sample Segmentation fault (core dumped)
Is this supposed to work or are the kernel modules required even when doing just pure user-space tracing? I did get a partial trace on disk (just the channel0_0 and metadata files, no events in them).
Daniel U. Thibault
R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier) Cyber sécurité pour les missions essentielles (CME) / Mission Critical Cyber Security (MCCS) Protection des systèmes et contremesures (PSC) / Systems Protection & Countermeasures (SPC) 2459 route de la Bravoure
Québec, QC G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada / Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>
A message that is not in the archive (sent off-list or not yet received): 48CF5AC71E61DB46B70D0F388054EFFD12D0EEDE@VAL-E-02.valcartier.drdc-rddc.gc.ca
Hi Daniel,
The kernel modules are indeed not needed for userspace tracing.
I'm guessing you installed from source since the lttng libs don't seem present in your path. Could tell us on which revision this is happening?
Also, perhaps you could try Mathieu's recently commited fix? It may be related.[1]
Regards,
Jérémie
[1] http://lists.lttng.org/pipermail/lttng-dev/2013-April/020064.html
Quoted 47 lines · Daniel
Quoted 1 line
Absolutely: no patching required.
I decided to find out if the lttng-modules were required at all if one needs to do only user-space tracing.
I installed (on an otherwise lttng-virgin system) just the userspace-rcu, lttng-ust, and lttng-tools packages. The lttng commands fail for the usual "can't find
/usr/local/lib" reason, so I need to do not:$ lttng list -ubut rather
$ LD_PRELOAD=/usr/local/lib/liblttng-ctl.so:/usr/local/lib/liblttng-ust-ctl.so lttng list -uor
$ LD_LIBRARY_PATH=/usr/local/lib lttng list -uHowever, once I made the lttng-ust/doc/examples/easy-ust sample, I get a segmentation fault/core dump after starting the trace.
$ LD_LIBRARY_PATH=/usr/local/lib lttng create usttrace Session usttrace created. Traces will be written in /home/daniel/lttng-traces/usttrace-20130418-150106 $ LD_LIBRARY_PATH=/usr/local/lib lttng enable-event -u --all All UST events are enabled in channel channel0 $ LD_LIBRARY_PATH=/usr/local/lib lttng start Tracing started for session usttrace $ LD_LIBRARY_PATH=/usr/local/lib ./sample Segmentation fault (core dumped)Is this supposed to work or are the kernel modules required even when doing just pure user-space tracing? I did get a partial trace on disk (just the
channel0_0and metadata files, no events in them).Daniel U. Thibault
R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier) Cyber sécurité pour les missions essentielles (CME) / Mission Critical Cyber Security (MCCS) Protection des systèmes et contremesures (PSC) / Systems Protection & Countermeasures (SPC) 2459 route de la Bravoure
Québec, QC G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada / Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Jérémie Galarneau EfficiOS Inc. http://www.efficios.com