调试命令合集

- 挂载调试文件系统
debugfs
1
$ mount -t debugfs debugfs /sys/kernel/debug
验证
1
2
$ mount | grep debug
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
- 查看USB设备信息节点
1
$ cat /sys/kernel/debug/usb/devices
Garden of Avalon.
debugfs
1
$ mount -t debugfs debugfs /sys/kernel/debug
验证
1
2
$ mount | grep debug
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
1
$ cat /sys/kernel/debug/usb/devices