Skip to main content
Visitor II
November 4, 2020
Question

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

  • November 4, 2020
  • 1 reply
  • 2254 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

    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