Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Initial version of IPC4 tx message logger using eBPF #1205

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 16, 2024

  1. tools: Initial version of IPC4 tx message logger using eBPF

    The ipc4-msg-trace.bt script will tap into the entry of
    sof_ipc4_log_header() which is always called but only prints if dynamic
    debugging is enabled. It's parameter list is not expected to be changed.
    
    The bpftrace must be installed to be able to use the script
    sudo pacman -S bpftrace
    sudo emerge -a bpftrace
    sudo apt install bpftrace
    sudo dnf install bpftrace
    
    To use the script:
    sudo ./tools/sof-ipc4-msg-trace.bt
    or
    sudo bpftrace tools/sof-ipc4-msg-trace.bt
    
    It will start logging the sent messages (including payloads) and received
    notification with exception of 0x1b060000 - trace update.
    
    To stop the logging, just terminate the script with CTRL+C
    
    Signed-off-by: Peter Ujfalusi <[email protected]>
    ujfalusi committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2013acb View commit details
    Browse the repository at this point in the history