On Sun, May 6, 2012 at 10:39 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sun, May 6, 2012 at 7:35 AM, Pete Batard <p...@akeo.ie> wrote:
>> I just tested OpenBSD, and it seems that each *BSD has its own method to get
>> a thread ID, with OpenBSD apparently having none ([1] "OpenBSD: not possible
>> here, there is no way to get a TID") up to recently ([2] "The ps(1) program
>> gains the tid formatting keyword. In conjunction with the -H option, thread
>> ID is now included"). Thus the previous proposal, that used the FreeBSD way
>> of getting a Thread ID, doesn't work.
>>
>> This seems to be confirmed with the fact that the WINE implementation
>> doesn't have any other BSDs besides FreeBSD (which we don't support) in its
>> cross-plaform thread ID implementation [3].
>>
>> With BSD support becoming a headache, and no official maintainer for the
>> *BSD backends to help us out, along with the need to go to bugfix release
>> soon, I propose dropping thread IDs for OpenBSD/NetBSD for the time being,
>> and just return -1 there.
>
> I think that is fair.
>
> I will forward this to the OpenBSD developer to see if he has some
> input.
>

This is what I have under OpenBSD and I think it looks fine.

bash-4.2$ ./listdevs
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [ffffffff] libusbx: debug [libusb_init]
[ 0.003306] [ffffffff] libusbx: debug [usbi_add_pollfd] add fd 5 events 1
[ 0.003339] [ffffffff] libusbx: debug [libusb_init] created default context
[ 0.003360] [ffffffff] libusbx: debug [libusb_get_device_list]
[ 0.003374] [ffffffff] libusbx: debug [obsd_get_device_list]
[ 0.039106] [ffffffff] libusbx: debug [_cache_active_config_descriptor] fd 7
[ 0.039620] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] active bLength 9
[ 0.040045] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] index -1, len 63
[ 0.040408] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
[ 0.041259] [ffffffff] libusbx: debug [libusb_get_device_descriptor]
[ 0.045424] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
04d8:fa2e (bus 0, device 2)
[ 0.045523] [ffffffff] libusbx: debug [libusb_exit]
[ 0.045540] [ffffffff] libusbx: debug [libusb_exit] destroying default context
[ 0.045561] [ffffffff] libusbx: debug [usbi_remove_pollfd] remove fd 5

-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to