Skip to main content
SMich.1
Senior
November 4, 2020
Question

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

  • November 4, 2020
  • 1 reply
  • 2273 views

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.

This topic has been closed for replies.

1 reply

Olivier GALLIEN
ST Technical Moderator
November 6, 2020

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

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.