• Gustavo F. Padovan's avatar
    Bluetooth: Add debug output to ERTM code · 0e98958d
    Gustavo F. Padovan authored
    Use the dynamic debug to output info about ERTM protocol stuff.
    The following script can be used to enable debug for ERTM:
    
    DEBUGFS="/sys/kernel/debug/dynamic_debug/control"
    
    echo -n 'func l2cap_send_disconn_req +p' > $DEBUGFS
    echo -n 'func l2cap_monitor_timeout +p' > $DEBUGFS
    echo -n 'func l2cap_retrans_timeout +p' > $DEBUGFS
    echo -n 'func l2cap_busy_work  +p' > $DEBUGFS
    echo -n 'func l2cap_push_rx_skb +p' > $DEBUGFS
    echo -n 'func l2cap_data_channel_iframe +p' > $DEBUGFS
    echo -n 'func l2cap_data_channel_rrframe +p' > $DEBUGFS
    echo -n 'func l2cap_data_channel_rejframe +p' > $DEBUGFS
    echo -n 'func l2cap_data_channel_srejframe +p' > $DEBUGFS
    echo -n 'func l2cap_data_channel_rnrframe +p' > $DEBUGFS
    Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
    Reviewed-by: default avatarJoão Paulo Rechi Vita <jprvita@profusion.mobi>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    0e98958d
l2cap.c 106 KB