Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932137AbZJSOzn (ORCPT ); Mon, 19 Oct 2009 10:55:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755618AbZJSOzn (ORCPT ); Mon, 19 Oct 2009 10:55:43 -0400 Received: from lucidpixels.com ([75.144.35.66]:51211 "EHLO lucidpixels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755267AbZJSOzm (ORCPT ); Mon, 19 Oct 2009 10:55:42 -0400 Date: Mon, 19 Oct 2009 10:55:46 -0400 (EDT) From: Justin Piszcz To: Alan Stern cc: USB list , Kernel development list Subject: Re: 2.6.31.4: USB/UPS connectivity issue on Intel DP55KG Motherboard [DEBUG logs included upsd/upsmon/usbhid-ups] In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463747160-291428007-1255964146=:7710" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4643 Lines: 124 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463747160-291428007-1255964146=:7710 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Mon, 19 Oct 2009, Alan Stern wrote: > On Sun, 18 Oct 2009, Justin Piszcz wrote: > >> I have performed all of the steps you recommended, there is also a bug in >> the docs, the directory seems to be different, or at least if you have >> everything compiled into the kernel and not using modules. > >> Steps from the USB documentation: >> >> # mount -t debugfs none_debugs /sys/kernel/debug >> # >> >> The kernel documentation is outdated: >> >> # ls /sys/kernel/debug/usbmon >> 0s 0u 1s 1t 1u 2s 2t 2u 3s 3t 3u 4s 4t 4u >> # >> >> The directory is: >> # ls /sys/kernel/debug/usb/usbmon >> 0s 0u 1s 1t 1u 2s 2t 2u > > This has already been corrected in the 2.6.32-rc kernels. Great to hear, I will try the latest 2.6.31-rcX kernel! > > However there is another respect in which the documentation is > outdated: It mentions /proc/bus/usb/devices. That file has moved; it > is now named /sys/kernel/debug/usb/devices. Would you like to submit a > patch fixing this? > > Alan Stern > Hi, Sure, what I meant is: usbmon.txt states: /sys/kernel/debug/usbmon/3u ^^^^^ Actual location: /sys/kernel/debug/usb/usbmon/3u ^^^^^^^^^ Patch below (and attached): diff -uprN linux-2.6.31.1/Documentation/usb/usbmon.txt linux-2.6.31.1.patch/Documentation/usb/usbmon.txt --- linux-2.6.31.1/Documentation/usb/usbmon.txt 2009-09-24 11:45:25.000000000 -0400 +++ linux-2.6.31.1.patch/Documentation/usb/usbmon.txt 2009-10-19 10:51:06.725516874 -0400 @@ -33,7 +33,7 @@ if usbmon is built into the kernel. Verify that bus sockets are present. -# ls /sys/kernel/debug/usbmon +# ls /sys/kernel/debug/usb/usbmon 0s 0u 1s 1t 1u 2s 2t 2u 3s 3t 3u 4s 4t 4u # @@ -58,11 +58,11 @@ Bus=03 means it's bus 3. 3. Start 'cat' -# cat /sys/kernel/debug/usbmon/3u > /tmp/1.mon.out +# cat /sys/kernel/debug/usb/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 +# cat /sys/kernel/debug/usb/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 ---1463747160-291428007-1255964146=:7710 Content-Type: TEXT/x-diff; name=usbmon-documentation-fix.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=usbmon-documentation-fix.patch QmluYXJ5IGZpbGVzIGxpbnV4LTIuNi4zMS4xL0RvY3VtZW50YXRpb24vLlN1 Ym1pdHRpbmdQYXRjaGVzLnN3cCBhbmQgbGludXgtMi42LjMxLjEucGF0Y2gv RG9jdW1lbnRhdGlvbi8uU3VibWl0dGluZ1BhdGNoZXMuc3dwIGRpZmZlcg0K ZGlmZiAtdXByTiBsaW51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EubW9uLm91dA0KKyMgY2F0IC9zeXMva2VybmVsL2RlYnVnL3VzYi91c2Jt b24vMHUgPiAvdG1wLzEubW9uLm91dA0KIA0KIFRoaXMgcHJvY2VzcyB3aWxs IGJlIHJlYWRpbmcgdW50aWwga2lsbGVkLiBOYXR1cmFsbHksIHRoZSBvdXRw dXQgY2FuIGJlDQogcmVkaXJlY3RlZCB0byBhIGRlc2lyYWJsZSBsb2NhdGlv bi4gVGhpcyBpcyBwcmVmZXJyZWQsIGJlY2F1c2UgaXQgaXMgZ29pbmcNCg== ---1463747160-291428007-1255964146=:7710-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/