From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BF2FC17445 for ; Mon, 11 Nov 2019 16:13:08 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C800420856 for ; Mon, 11 Nov 2019 16:13:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="u3kJyBuw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C800420856 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iUCIh-0007Yt-W1; Mon, 11 Nov 2019 11:12:23 -0500 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1iUCIf-0007Yn-BZ for kernelnewbies@kernelnewbies.org; Mon, 11 Nov 2019 11:12:21 -0500 Received: by mail-il1-x132.google.com with SMTP id m5so12598822ilq.0 for ; Mon, 11 Nov 2019 08:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=cgVtT8YCv1z0BoJXkOcx0Y0k2MalzWsiEmq/d6FDurM=; b=u3kJyBuwXTwbMsPIvB/JBYYtL1+rGTy+Vh9BmAp8z8Dp5WkvQrBHLlql4ghe64yclm go2t6ov4FdCKXCGMMpvThgU998rVwIAwO9ljKB/6K4HT/ajpvgj5j19fHdv3BO/kLB4X iOcYEjtAMY1zhgFP5EdIoGb0+HURWiSlqXG2hetgvsVnyXSj3pKSYdWHqWviUfaryQBl TQrqZm/eVwImxJ6iwk6au5mrtnqUBJLhOZKEnaBTdBjS4yHOf4sAqMQkvAPb+X+vTqXX 85SiwhskEWsk9upp3/VVJJoiiczGF2BxINrL1ot4XAQG3DXPdMixr9/lFK23nv9UYExU iOsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=cgVtT8YCv1z0BoJXkOcx0Y0k2MalzWsiEmq/d6FDurM=; b=eWqR8tTDpKDIBPXaJIHSIyOk5AuVC1J27MQOlrs57T0mJ66LCuh5OGFxDyCqS+07TU lprVfRTUD2gnOmlknXWCYjjqg6RPKsQk6SGlqLrB6qtk7FK51IlrdQUgDwLGN5Kztw09 6bbgmfaMgsSYiJjHGYdIuKZwThtqcJ8esaUZSZT0WqQQo023tl9AUgCZ7fe2OjdylC0Q wZsvEp28tXVKOnfb1wdkqua+zxT0zIuf+G8SO9Aem1XtXZhho4SX7emiEbzSuBUHo3Br h5KEcvSpbmCzvt1gmxfYNeq3GoBVpUJ/8wD1eXV/TFqm0jD71Hz7DtuN47l3L9R1ESfb ZmMA== X-Gm-Message-State: APjAAAXSSOcYbOxi+ST0CdYou3V3OgvnHwH+bL0fKn3bvfxKEjWB3q0p IJ/xjnWOxuIWo81+b7rliDzr3FiENdHpfYW316xP9IOz X-Google-Smtp-Source: APXvYqyvRpboSM8dml1jWnVu8U7bPxNA+vbS3XkIJpT3mh7EPN05C3F2q341ZG/McuMW+4ZJhjOexNqRtONT8AAkCPA= X-Received: by 2002:a92:6a07:: with SMTP id f7mr389209ilc.41.1573488677633; Mon, 11 Nov 2019 08:11:17 -0800 (PST) MIME-Version: 1.0 From: Jeffrey Walton Date: Mon, 11 Nov 2019 11:11:06 -0500 Message-ID: Subject: How to log USB modem data for a specific device? To: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: noloader@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi Everyone, I'm having trouble with a C application that opens a USB modem. The application is not receiving some data from a USR modem. Conexant modems are OK. I'm working through https://www.kernel.org/doc/Documentation/usb/usbmon.txt . I found the modem at Bus=01 Dev=24: T: Bus=01 Lev=03 Prnt=07 Port=00 Cnt=01 Dev#= 24 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0baf ProdID=0303 Rev= 2.00 S: Manufacturer=U.S.Robotics S: Product=USB Modem This is where my confusion lies. It is not clear to me how to determine which socket to use for step #3 in usbmon.txt. Step #3 says: # cat /sys/kernel/debug/usb/usbmon/3u > /tmp/1.mon.out How do I determine which socket to use for Bus=01 Dev=24? Thanks in advance. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies