Skip to content
Snippets Groups Projects
Commit 7bcb4030 authored by Niccolò Rosadi's avatar Niccolò Rosadi
Browse files

[DEFCONFIG][USB_MON] Enable USB Monitor

- the usb monitor is useful to collect traces of I/O on the USB bus.
- Step to use it:
  1) find the usb bus that you want to analyze (eg: 1)
  2) check that under /sys/kernel/debug/usb/usbmon/ there are some files that start with the number of this bus (1s, 1t, 1u)
  3.a) analyze the traffic with the cat of  /sys/kernel/debug/usb/usbmon/1u (not easy to understand the content)
  3.b) collect the traffic with tcpdump (eg: tcpdump -i usbmon1 -s0 -w usb1.pcap) and then use wireshark to analyze the content of the file
parent 51d09853
No related branches found
No related tags found
No related merge requests found
...@@ -995,6 +995,7 @@ CONFIG_DEBUG_INFO=y ...@@ -995,6 +995,7 @@ CONFIG_DEBUG_INFO=y
CONFIG_MAGIC_SYSRQ=y CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y CONFIG_DEBUG_KERNEL=y
CONFIG_USB_MON=y
# CONFIG_SCHED_DEBUG is not set # CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set # CONFIG_DEBUG_PREEMPT is not set
# CONFIG_FTRACE is not set # CONFIG_FTRACE is not set
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment