Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-hda-generic.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-lnl-rt722-l0.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-mtl-rt712-l0.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-mtl-rt722-l0.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-ptl-rt721.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-ptl-rt722.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-tplg-v2.12/sof-tgl-rt712.tplg
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/adl-n/community/sof-adl-n.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/adl-s/community/sof-adl-s.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/adl/community/sof-adl.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/arl-s/community/sof-arl-s.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/arl/community/sof-arl.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/ehl/community/sof-ehl.ri
Binary file added v2.12.x/sof-ipc4-v2.12/lnl/community/sof-lnl.ri
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-v2.12/mtl/community/sof-mtl.ri
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-v2.12/ptl/community/sof-ptl.ri
Binary file not shown.
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/rpl-s/community/sof-rpl-s.ri
1 change: 1 addition & 0 deletions v2.12.x/sof-ipc4-v2.12/rpl/community/sof-rpl.ri
Binary file not shown.
Binary file added v2.12.x/sof-ipc4-v2.12/tgl/community/sof-tgl.ri
Binary file not shown.
53 changes: 53 additions & 0 deletions v2.12.x/tools-v2.12/mtrace-reader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env python3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kv2019i is it simple to change to sof-mtrace-reader.py ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgirdwood Not anymore for this release as this is tagged and would need to be changed in SOF repo. I'd really prefer to drop these tools altogether from sof-bin, but I've been including them as they've been included in the past.

Maybe I'll just stop now? I can just stop including the tools into the release tarball, and stop including these in future pull requests and that's it basicly.

# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.

#pylint:disable=mixed-indentation

# Tool to stream data from Linux SOF driver "mtrace" debugfs
# interface to standard output. Plain "cat" is not sufficient
# as each read() syscall returns log data with a 32bit binary
# header, containing the payload length.

import struct
import os
import sys
import argparse

READ_BUFFER = 16384
MTRACE_FILE = "/sys/kernel/debug/sof/mtrace/core0"

parser = argparse.ArgumentParser()
parser.add_argument('-m', '--mark-chunks',
action='store_true')

args = parser.parse_args()

chunk_idx = 0

fd = os.open(MTRACE_FILE, os.O_RDONLY)
while fd >= 0:
# direct unbuffered os.read() must be used to comply with
# debugfs protocol used. each non-zero read will return
# a buffer containing a 32bit header and a payload
read_bytes = os.read(fd, READ_BUFFER)

# handle end-of-file
if len(read_bytes) == 0:
continue

if len(read_bytes) <= 4:
continue

header = struct.unpack('I', read_bytes[0:4])
data_len = header[0]
data = read_bytes[4:4+data_len]

if (args.mark_chunks):
chunk_msg = "\n--- Chunk #{} start (size: {}) ---\n" .format(chunk_idx, data_len)
sys.stdout.write(chunk_msg)

sys.stdout.buffer.write(data)
sys.stdout.flush()
chunk_idx += 1
Binary file added v2.12.x/tools-v2.12/sof-ctl
Binary file not shown.
Binary file added v2.12.x/tools-v2.12/sof-probes
Binary file not shown.
Loading