Skip to content

Commit 170b209

Browse files
AlanSterngregkh
authored andcommitted
USB: update documentation for usbmon
commit d8cae98 upstream. The documentation for usbmon is out of date; the usbfs "devices" file now exists in /sys/kernel/debug/usb rather than /proc/bus/usb. This patch (as1505) updates the documentation accordingly, and also mentions that the necessary information can be found by running lsusb. Signed-off-by: Alan Stern <[email protected]> CC: Pete Zaitcev <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d1883e7 commit 170b209

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Documentation/usb/usbmon.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,22 @@ This allows to filter away annoying devices that talk continuously.
4747

4848
2. Find which bus connects to the desired device
4949

50-
Run "cat /proc/bus/usb/devices", and find the T-line which corresponds to
51-
the device. Usually you do it by looking for the vendor string. If you have
52-
many similar devices, unplug one and compare two /proc/bus/usb/devices outputs.
53-
The T-line will have a bus number. Example:
50+
Run "cat /sys/kernel/debug/usb/devices", and find the T-line which corresponds
51+
to the device. Usually you do it by looking for the vendor string. If you have
52+
many similar devices, unplug one and compare the two
53+
/sys/kernel/debug/usb/devices outputs. The T-line will have a bus number.
54+
Example:
5455

5556
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
5657
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
5758
P: Vendor=0557 ProdID=2004 Rev= 1.00
5859
S: Manufacturer=ATEN
5960
S: Product=UC100KM V2.00
6061

61-
Bus=03 means it's bus 3.
62+
"Bus=03" means it's bus 3. Alternatively, you can look at the output from
63+
"lsusb" and get the bus number from the appropriate line. Example:
64+
65+
Bus 003 Device 002: ID 0557:2004 ATEN UC100KM V2.00
6266

6367
3. Start 'cat'
6468

0 commit comments

Comments
 (0)