diff options
author | Sven Gothel <[email protected]> | 2020-09-25 09:46:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-09-25 09:46:20 +0200 |
commit | bdf0a8abaaa6e83e9571d92ec5c4cad322dcd97f (patch) | |
tree | 9e1e6be5078a3ba7d080fb158eafa7f2c6d03f66 /scripts/kernel-bt-debug.sh | |
parent | 4cbd5badeeca71ed0814b61feb80026838eb4240 (diff) |
Adding kernel-bt-[debug|reload].sh scripts
Diffstat (limited to 'scripts/kernel-bt-debug.sh')
-rw-r--r-- | scripts/kernel-bt-debug.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/kernel-bt-debug.sh b/scripts/kernel-bt-debug.sh new file mode 100644 index 00000000..d5f21c21 --- /dev/null +++ b/scripts/kernel-bt-debug.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# +# https://www.kernel.org/doc/html/v4.11/admin-guide/dynamic-debug-howto.html +# + +echo /proc/sys/kernel/printk +cat /proc/sys/kernel/printk +echo 8 > /proc/sys/kernel/printk +cat /proc/sys/kernel/printk + +echo 'file net/bluetooth/l2cap_core.c +p' > /sys/kernel/debug/dynamic_debug/control +echo 'file net/bluetooth/hci_core.c +p' > /sys/kernel/debug/dynamic_debug/control +echo 'file net/bluetooth/hci_conn.c +p' > /sys/kernel/debug/dynamic_debug/control +# grep l2cap_core /sys/kernel/debug/dynamic_debug/control +echo 'module bluetooth +p' > /sys/kernel/debug/dynamic_debug/control + +# cat /sys/kernel/debug/bluetooth/hci0/features |