Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

logger - invalid filename length #111

@lgirdwood

Description

@lgirdwood

Logger should be more robust when parsing data to cope with corruption and unexpected values.

root@up2:~# sof-logger -t -l sof-apl.ldc 
 CORE  LEVEL  COMP_ID        TIMESTAMP            DELTA                FILE_NAME	CONTENT
Error: Invalid filename length. 

hexdump -C /sys/kernel/debug/sof/trace

00000000  00 00 00 00 eb bc 18 00  00 00 00 00 74 67 00 20  |............tg. |
00000010  00 00 00 00 bb c3 18 00  00 00 00 00 80 66 00 20  |.............f. |
00000020  00 00 00 00 97 c5 18 00  00 00 00 00 4c 67 00 20  |............Lg. |
00000030  00 00 00 00 64 d8 19 00  00 00 00 00 08 15 00 20  |....d.......... |
00000040  00 00 00 00 aa d8 19 00  00 00 00 00 d8 12 00 20  |............... |
00000050  00 00 00 00 fd d8 19 00  00 00 00 00 bc 45 00 20  |.............E. |
00000060  00 00 00 00 4b da 19 00  00 00 00 00 dc 15 00 20  |....K.......... |
00000070  08 dc 02 be 02 00 00 00  00 00 00 00 dc e3 19 00  |................|
00000080  00 00 00 00 08 15 00 20  00 00 00 00 22 e4 19 00  |....... ...."...|
00000090  00 00 00 00 d8 12 00 20  00 00 00 00 6b e4 19 00  |....... ....k...|
000000a0  00 00 00 00 8c 37 00 20  00 00 00 00 b0 eb 19 00  |.....7. ........|

Metadata

Metadata

Labels

P2Critical bugs or normal featuresenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions