Skip to content

End-user documentation and bug reporting #347

@fxthomas

Description

@fxthomas

I'm not sure if this is the correct place for documentation requests, feel free to point me to the right place.

I had a rather difficult time finding SOF firmware logs with the official kernel from my distribution when trying to debug thesofproject/sof#3868. One of the reasons is that it is still not clear to me, as an end-user relatively unfamiliar with SOF/kernel development, exactly how to get logs in a reliable way in either my own or my distribution's kernel builds.

The questions below are things I'm wondering or found out while doing research.


What's the difference between trace and etrace?

The documentation on the Logger mentions the existence of two files, /sys/kernel/debug/sof/trace and /sys/kernel/debug/sof/etrace.

  • What are they?
  • Why two of them?

Since there are two options, and my distro's official kernel only has etrace enabled by default, my hypothesis is that trace has more overhead/is more detailed, and as such is not enabled in default builds. Am I correct?

How to enable log tracing?

By default on my distro's official build etrace is empty and trace doesn't exist, but in custom builds I do following the build instructions both show messages.

  • What kernel compilation options control them? Should I need only CONFIG_SND_SOC_SOF_DEBUG and CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE?
  • Can I enable them dynamically without having to recompile my distro's official kernel?

What is dynamic debug, is that different from the logger?

This page suggests to use dynamic debug options. Should I expect to get different kinds of information than from the logger (other than the fact that the logs go into the dmesg output instead of a separate tool)?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions