Title: End-user documentation and bug reporting · Issue #347 · thesofproject/sof-docs · GitHub
Open Graph Title: End-user documentation and bug reporting · Issue #347 · thesofproject/sof-docs
X Title: End-user documentation and bug reporting · Issue #347 · thesofproject/sof-docs
Description: 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 th...
Open Graph Description: 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...
X Description: 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 ...
Opengraph URL: https://github.com/thesofproject/sof-docs/issues/347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"End-user documentation and bug reporting","articleBody":"I'm not sure if this is the correct place for documentation requests, feel free to point me to the right place.\r\n\r\nI had a rather difficult time finding SOF firmware logs with the official kernel from my distribution when trying to debug https://github.com/thesofproject/sof/issues/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.\r\n\r\nThe questions below are things I'm wondering or found out while doing research.\r\n\r\n----\r\n\r\n**What's the difference between `trace` and `etrace`?**\r\n\r\nThe documentation on the [Logger](https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html) mentions the existence of two files, `/sys/kernel/debug/sof/trace` and `/sys/kernel/debug/sof/etrace`.\r\n\r\n* What are they?\r\n* Why two of them?\r\n\r\nSince 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?\r\n\r\n**How to enable log tracing?**\r\n\r\nBy 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](https://thesofproject.github.io/latest/getting_started/build-guide/build-from-scratch.html) both show messages.\r\n\r\n* What kernel compilation options control them? Should I need only CONFIG_SND_SOC_SOF_DEBUG and CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE?\r\n* Can I enable them dynamically without having to recompile my distro's official kernel?\r\n\r\n**What is dynamic debug, is that different from the logger?**\r\n\r\n[This page](https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#enable-dynamic-debug) 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)?","author":{"url":"https://github.com/fxthomas","@type":"Person","name":"fxthomas"},"datePublished":"2021-05-23T19:32:46Z","url":"https://github.com/thesofproject/sof-docs/issues/347"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c4acf05-bc41-561b-71f9-f5fde60d2dd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C638:3FD695:6F9314:9BBEF1:6AFC5E67 |
| html-safe-nonce | 351a3c273be2fe9c80f334994006bc256ddee0227ee947ac3018c9373a312c16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjM4OjNGRDY5NTo2RjkzMTQ6OUJCRUYxOjZBRkM1RTY3IiwidmlzaXRvcl9pZCI6IjE1MTQ2Mzc3ODk0NDA1MzIwNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 77efbd343cd1938c6401e051aff9f0d9d2bcd51818d8664a24d24cff220b346d |
| hovercard-subject-tag | issue:899091302 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/thesofproject/sof-docs/347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b72d19e3c55e896d6787329baeb74cf976aa187af1b748d88f9d68673d26bf89/thesofproject/sof-docs/issues/347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b72d19e3c55e896d6787329baeb74cf976aa187af1b748d88f9d68673d26bf89/thesofproject/sof-docs/issues/347 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fxthomas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4f3b2b289515382e47edd25c65b136bf38bf579bf087f67ba6bcdcef5db540ad |
| turbo-cache-control | no-preview |
| go-import | github.com/thesofproject/sof-docs git https://github.com/thesofproject/sof-docs.git |
| octolytics-dimension-user_id | 39773507 |
| octolytics-dimension-user_login | thesofproject |
| octolytics-dimension-repository_id | 135632972 |
| octolytics-dimension-repository_nwo | thesofproject/sof-docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135632972 |
| octolytics-dimension-repository_network_root_nwo | thesofproject/sof-docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c0012cfe4370eb5aa24887f80677be13de4df94d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width