Commit Graph

30 Commits

Author SHA1 Message Date
Bartosz Kokoszko b8dfacba88 logger: refinement handling invalid trace address
In case of getting invalid trace address file descriptor
now moves forward only one dword, not whole struct dma_log
as it was earlier.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-10-26 10:06:14 +02:00
Bartosz Kokoszko c8f671b746 rmbox: change bins name to sof-logger sof-rmbox
Change binary names:
from logger to sof-logger and
from rmbox to sof-rmbox

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-10-15 15:18:34 +02:00
Liam Girdwood 9033d35058
Merge pull request #100 from bkokoszx/logger_kw
rmbox: fix rmbox KW issues
2018-10-15 12:51:45 +01:00
Bartosz Kokoszko 7ad6c23121 rmbox: fix rmbox KW issues
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-10-15 13:41:17 +02:00
Bartosz Kokoszko c9731f1678 rmbox: usage function refinement
Refines the output content when displaying the logger usage.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-10-15 11:08:06 +02:00
Liam Girdwood 878d08831c
Merge pull request #98 from akloniex/trace-improvements
logger: Add support for 4 parameters passed to log message.
2018-10-10 16:40:34 +01:00
Liam Girdwood 3e848fe2e5
Merge pull request #97 from akloniex/fix-formatting
logger: Fix formatting of line number value.
2018-10-10 16:38:54 +01:00
ArturX Kloniecki 3bf2641ef5 logger: Add support for 4 parameters passed to log message.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-10 11:44:12 +02:00
ArturX Kloniecki 932f09f0c2 logger: Fix formatting of line number value.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-10 09:17:54 +02:00
ArturX Kloniecki 5e4995f995 logger: Implement possibility to read log data from stdin
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-09 14:37:24 +02:00
ArturX Kloniecki 86b8dafe41 logger/rmbox: unify implementation of new logger tool with old rmbox
Integrate both tools to provide common CLI.
Also provide better logging format for logger tool.

Signed-off-by: ArturX Kloniecki arturx.kloniecki@linux.intel.com
2018-10-08 19:38:35 +02:00
Pan Xiuli 0beda35193 rmbox: add missing trace class to sync with firmware
Add missing trace class to the rmbox to avoid unknow value message.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-25 12:59:07 +08:00
Tomasz Lauda 78ad1ccce5 rmbox: Close opened files
Input and output files in trace_read function should be closed after using.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-03-29 13:46:36 +01:00
Liam Girdwood 46a5e80fc5 rmbox: remove legacy code and use sof debugFS by default.
Dump error log by default with no args.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-03-06 14:11:13 +00:00
Ranjani Sridharan b4293de4cc rmbox: show error/xrun logs in red for easy identification
This patch adds changes to rmbox to make it easier to spot
errors/xruns in a long trace

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-03-01 19:38:22 +00:00
Liam Girdwood 44bced3781 rmbox: use 64bit trace data
Update trace to align with FW and use 64bit data size.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-10-19 22:24:58 +01:00
Liam Girdwood cd0eb84aca rmbox: move trace into separate parser function to ease future work.
Move trace handler into separate function to make it easier to add new
trace features. Make sure we only support 64 bit timestamps.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-10-13 16:41:29 +01:00
Yan Wang 082b84ac61 Use new output format for 64-bit timestamp.
1. Use [second.microsecond] for 64-bit timestamp.
2. Keep previous format for 32-bit timestamp.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
2017-10-13 11:13:39 +01:00
Yan Wang 7f98c95c2a Add option "-t" to process DMA trace event with 64-bit tempstamp.
1. Timestamp is changed to 64-bit width.
2. Trace event is still 32-bit. High 32-bit of 64-bit is ignored.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
2017-10-12 22:40:57 +01:00
Liam Girdwood f00e8884dd rmbox: check for non printable chars in trace.
Non printable means trace is a value.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-09-04 16:35:01 +01:00
Liam Girdwood 6bb4da421c rmbox: Add support for floating point clock freq in MHz
Allow timestamp clock frequency to be set in MHz

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-08-30 22:55:57 +01:00
Liam Girdwood 7a1105772d rmbox: fix help output to show all options
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-08-30 22:55:57 +01:00
Liam Girdwood 7fb7598bc3 rmbox: Add EQs, SRC and Tone components to trace output
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-08-24 17:10:49 +01:00
Liam Girdwood 9b241ae555 rmbox: make sure we close all files
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-15 14:36:24 +01:00
Liam Girdwood 1b0a663b0d rmbox: add support for different CPU clock speeds
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:55:36 +01:00
Liam Girdwood 778d7209cb rmbox: return -EIO and bail on any file open() errors
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:37:14 +01:00
Liam Girdwood e03147d755 rmbox: add support for new trace classes.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:36:33 +01:00
Liam Girdwood b1d2434696 rmbox: use SSP 19.2M clock for trace
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-02-28 12:14:48 +00:00
Liam Girdwood 74512df085 rmbox: add support for snapshots of HW state
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-02-28 12:14:39 +00:00
Liam Girdwood 04a535d508 rimage: Initial import of rimage firmware tool.
rimage converts ELF binaries to the firmware image file format understood
by the kernel audio drivers.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2016-10-07 10:48:49 +01:00