You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the PRs for automatic enabling of logging through probes
interface was not accepted, and since there is not better alternative
to enable the logs at the moment, document the old mething for enabling
them.
Restructure the documrent a bit while at it.
Signed-off-by: Jyri Sarha <[email protected]>
This option enables the probes logging automatically when probes extraction DMA is started:
90
+
Refer to :ref:`Simple logging case<simple-logging-case>` for quick guide to use probes logging interface.
85
91
86
-
.. code-block:: bash
87
-
88
-
CONFIG_LOG_BACKEND_SOF_PROBE_OUTPUT_AUTO_ENABLE=y
89
-
90
-
- Refer to **Step 3 Build firmware binaries** in :ref:`Build SOF from Scratch <build-from-scratch>` for reference.
92
+
- Refer to **Step 3 Build firmware binaries** in :ref:`Build SOF from Scratch <build-from-scratch>` for reference on how to build SOF FW.
91
93
92
94
Note that you do not need to modify the audio topology file.
93
95
@@ -195,22 +197,12 @@ the last stage of extraction.
195
197
*/
196
198
} __attribute__((packed, aligned(4)));
197
199
198
-
Enabling the log in IPC3 system (in case auto enable is not on):
199
-
200
-
.. code-block:: bash
201
-
202
-
echo 0,1,0 > probe_points
203
-
204
-
And on IPC4 system:
205
-
206
-
.. code-block:: bash
207
-
208
-
echo 0,0,0 > probe_points
209
-
210
200
2. Unpause the playback stream. (optional)
211
201
#. Close the playback stream when done.
212
202
#. Close the crecord tool.
213
203
204
+
.. _data-parsing:
205
+
214
206
Data parsing
215
207
************
216
208
@@ -230,12 +222,29 @@ Usage and ouput:
230
222
As a result, ``buffer_7.wav`` is generated in the *tools/build_tools/probes* folder. The wave file can then be examined with your tool of choice
231
223
such as ``Audacity``.
232
224
225
+
.. _simple-logging-case:
233
226
234
227
Simple logging case
235
228
*******************
236
229
237
-
With the crecord and sof-probes in path, probes logging backend with auto enable option it is possible to get the firmware logs to stdout with this command combination:
230
+
With the :ref:`crecord<install-tinycompress>` and :ref:`sof-probes<data-parsing>` in path, FW built with :ref:`probes logging enabled<firmware-side>`, and probes enabled from :ref:`Linux side<kernel-side>`, it should be possible to extract the logs with following steps:
0 commit comments