Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Nov 2010 14:30:34 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Hans Petter Selasky <hselasky@freebsd.org>
Cc:        Alexander Motin <mav@freebsd.org>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Subject:   Re: usbconfig reset ugen4.2 hanging since an hour
Message-ID:  <4CD0046A.1000801@icyb.net.ua>
In-Reply-To: <201011021300.54515.hselasky@freebsd.org>
References:  <201011021036.41617.hselasky@freebsd.org>	<20101102110134.53027bx6btjokpgc@webmail.leidinger.net> <201011021300.54515.hselasky@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on 02/11/2010 14:00 Hans Petter Selasky said the following:
> On Tuesday 02 November 2010 11:01:34 Alexander Leidinger wrote:
>> # procstat -kk 29213
>>    PID    TID COMM             TDNAME           KSTACK
>> 29213 100291 usbconfig        -                mi_switch+0x188  
>> sleepq_switch+0x13c sleepq_timedwait+0x40 _sleep+0x320 pause+0x30  
>> usb_pause_mtx+0x94 usb_ioctl+0x171 devfs_ioctl_f+0x73 kern_ioctl+0x9d  
>> ioctl+0xc5 syscallenter+0x1af syscall+0x34 Xint0x80_syscall+0x21
>>
>>> somewhere in umass_detach(), which is preventing the usbconfig reset from
>>
>> No umass_detach in there...
> 
> Hi,
> 
> The USB threads are joined into a single process and not visible from "ps". 
> Not sure how you can get a list of all threads.

-H option would that for ps.
But I am not why mentioned ps, because procstat shows the threads, e.g. procstat
-k -a will show stacks of all non-running kernel threads.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CD0046A.1000801>