cancel
Showing results for 
Search instead for 
Did you mean: 

how to tail /sys/kernel/debug/remoteproc/remoteproc0/trace0 to external file

SMich.1
Senior

I tried :

tail -F /sys/kernel/debug/remoteproc/remoteproc0/trace0 >> myLog.log

but this command not printing new log messages that appear in the trace0 file.  

how can I print every line of log to some external file that not disappear when the remoteproc dies.

tnx.

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @SMich.1​ ,

/sys/kernel/debug/remoteproc/remoteproc0/trace0 is a circular buffer not compatible with tail.

Alternative can be to root the trace to a physical UART on M4 side (if you have a spare one), else to implement a process Linux side which backup trace0 content periodically.

Hope it help,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.