Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67873
b: refs/heads/master
c: 092a212
h: refs/heads/master
i:
  67871: e488b85
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 712d2b0 commit 23b63d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce0d9325b19555f05b08cbb1ea4c2393eec188ec
refs/heads/master: 092a212e8e3eb49ab7360d652f457d0a360d5383
9 changes: 8 additions & 1 deletion trunk/Documentation/usb/usbmon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ if usbmon is built into the kernel.
Verify that bus sockets are present.

# ls /sys/kernel/debug/usbmon
1s 1t 1u 2s 2t 2u 3s 3t 3u 4s 4t 4u
0s 0t 0u 1s 1t 1u 2s 2t 2u 3s 3t 3u 4s 4t 4u
#

Now you can choose to either use the sockets numbered '0' (to capture packets on
all buses), and skip to step #3, or find the bus used by your device with step #2.

2. Find which bus connects to the desired device

Run "cat /proc/bus/usb/devices", and find the T-line which corresponds to
Expand All @@ -56,6 +59,10 @@ Bus=03 means it's bus 3.

# cat /sys/kernel/debug/usbmon/3u > /tmp/1.mon.out

to listen on a single bus, otherwise, to listen on all buses, type:

# cat /sys/kernel/debug/usbmon/0u > /tmp/1.mon.out

This process will be reading until killed. Naturally, the output can be
redirected to a desirable location. This is preferred, because it is going
to be quite long.
Expand Down

0 comments on commit 23b63d7

Please sign in to comment.