[ltt-dev] writeTraceNetwork?
Daniel U. Thibault
daniel.thibault at drdc-rddc.gc.ca
Fri May 13 10:45:25 EDT 2011
Following the instructions of git.dorsal.polymtl.ca's
tcf-lttng-agent/lttng-agent.html, specifying where to write the trace is
problematic in both modes.
I quote:
---quote begins---
To save it locally, you would issue the following command:
lttctl_client ltt_control writeTraceLocal "kernel" "0" "traceTest"
"/home/johndoe/traces/traceTest" 2 false false false
It would be saved on the agent machine, in /home/johndoe/traces/traceTest.
To stream it, you would instead use:
lttctl_client ltt_control writeTraceNetwork "kernel" "0" "traceTest"
"/home/johndoe/traces/traceTest" 2 false false false
It would then be saved on the client machine, in /home/johndoe/traces/traceTest.
---quote ends---
Neither method works. The problem with writeTraceLocal is a simple
cut-and-paste error. One must replace:
lttctl_client ltt_control writeTraceLocal "kernel" "0" "traceTest"
"/home/johndoe/traces/traceTest" 2 false false false
with:
tcf ltt_control writeTraceLocal "kernel" "0" "traceTest"
"/home/johndoe/traces/traceTest" 2 false false false
writeTraceLocal then works. However, I have been unable to get
writeTraceNetwork to work. It raises an exception and kills the tcf-client:
./tcf-client.tm.tcf-rev1660.explicit: symbol lookup error:
/usr/local/lib/tcf/plugins/liblttng-client.so: undefined symbol: flush_stream
This error has been happening with every version of tcf-agent/-client and
lttng-agent/-client I've tried so far.
I am running under Ubuntu 10.10 Maverick 64-bits, kernel: 2.6.35-24-lttng
(/lttng/ppa/ubuntu); the tcf-agent and -client are
dev.eclipse.org/svnroot/dsdp/org.eclipse.tm.tcf's revision 1660 compiled with
nearly all services turned on:
make PATH_Plugins=/usr/local/lib/tcf/plugins SERVICES="Plugins Splice ZeroCopy
Cmdline FileSystem Locator RunControl Breakpoints Memory Registers Processes
MemoryMap StackTrace Symbols LineNumbers SysMonitor Expressions Streams PathMap
Terminals Trace Discovery DebugContext ELF SSL Unix_Domain"
The tcf-lttng-agent and -client are git.dorsal.polymtl.ca's version 72ea7d0
(2011-03-23) with ust turned off (./configure --disable-ust).
I will also take this opportunity to point out that lttng-agent.html ought to
mention, after listing 'tcf ltt_control setChannelSubbufSize "kernel" "0"
"traceTest" "some_bloody_channel" 1048576' no less than nineteen times, that the
user can save himself this painful process by writing simply 'tcf ltt_control
setChannelSubbufSize "kernel" "0" "traceTest" "all" 1048576'. This is
particularly important since the tcf-client does not support command line recall
like the shell does, forcing the user to type (or copy and paste) each command.
More information about the lttng-dev
mailing list