Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] writeTraceNetwork Protocol format error?

Hello,


I can start , stop , pause the trace remotely. I am also able to save the trace on local machine (target-mips board). I am unable to save the trace on remote machine. I get the following error.

> lttctl_client ltt_control writeTraceNetwork "kernel" "0" "traceTest" "/home/techie/Desktop/tracetest" 2 false false false
Reply error 131077: Channel closed

The target environment is MIPS board.

Steps i did for lttng-agent.
./bootstrap
CC=mips64-octeon-linux-gnu-gcc ./configure --prefix=$(pwd)/agent_
installed --host=mips64 --enable-shared --disable-ust
make
make install


Similar steps was followed to cross compile for tcf-agent

On target board

mount debugfs
export LD_LIBARY_PATH
export lttd
ltt-armall


start tcf-agent

On client PC

start tcf-client
connect ip address ( Connection established with TCP:)
tcf ltt_control setupTrace "kernel" "0" "traceTest"
tcf ltt_control setTraceTransport "kernel" "0" "traceTest" "relay"
tcf ltt_control setChannelSubbufSize "kernel" "0" "traceTest" "vm_state" 1048576
.
.
.
similarly for all channels
tcf ltt_control allocTrace "kernel" "0" "traceTest"

lttctl_client ltt_control writeTraceNetwork "kernel" "0" "traceTest" "/home/techie/Desktop/
tracetest" 2 false false false


I am able to start,pause and destroy the trace, also i can save trace on the local target (MIPS Board). But due to size limitation i need to save the trace on remote pc.


I enabled tcf-agent log parameter

tcf-agent -L/log.txt

TCF 01:58.598: Starting channel 0x12d435440 TCP:192.168.233.102:52651
TCF 01:58.598: channel server connecting
TCF 01:58.598: Peer TCP:192.168.233.102:52651: Event: E Locator Hello ...
TCF 01:58.598: channel server connected, remote services:
TCF 02:06.286: Peer TCP:192.168.233.102:52651: Command: C 1 ltt_control getProviders ...
TCF 02:12.606: Peer TCP:192.168.233.102:52651: Command: C 2 ltt_control setupTrace ...
TCF 02:17.039: Peer TCP:192.168.233.102:52651: Command: C 3 ltt_control setTraceTransport ...
TCF 03:11.953: Peer TCP:192.168.233.102:52651: Command: C 4 ltt_control getChannels ...
TCF 03:23.837: Peer TCP:192.168.233.102:52651: Command: C 5 ltt_control setChannelSubbufSize ...
TCF 03:50.832: Peer TCP:192.168.233.102:52651: Command: C 6 ltt_control allocTrace ...
TCF 04:01.016: Peer TCP:192.168.233.102:52651: Command: C 7 ltt_control writeTraceNetwork ...
TCF 04:01.016: Exception handling command ltt_control.writeTraceNetwork: 131075 Protocol format error
TCF 04:01.016: Exception in message handler: Protocol format error
TCF 04:01.016: channel 0x12d435440 disconnected
TCF 04:01.017: Deleting channel 0x12d435440
TCF 05:57.255: Starting channel 0x12d435440 TCP:192.168.233.102:52652
TCF 05:57.255: channel server connecting
TCF 05:57.255: Peer TCP:192.168.233.102:52652: Event: E Locator Hello ...
TCF 05:57.255: channel server connected, remote services:
TCF 05:59.180: Peer TCP:192.168.233.102:52652: Command: C 8 ltt_control writeTraceLocal ...
TCF 07:14.863: Peer TCP:192.168.233.102:52652: Command: C 9 ltt_control writeTraceNetwork ...
TCF 07:14.863: Exception handling command ltt_control.writeTraceNetwork: 131075 Protocol format error
TCF 07:14.863: Exception in message handler: Protocol format error
TCF 07:14.863: channel 0x12d435440 disconnected
TCF 07:14.864: Deleting channel 0x12d435440

Any Idea what this protcol format error is ?

Thank you
skumar


Back to the top