There are two basic BSD interfaces to retrieve kernel processes
associated to a process:
FreeBSD:
PT_GETNUMLWPS
This request returns the number of kernel threads
associated with the traced process.
PT_GETLWPLIST
This request can be used to get the current thread list. A
On Tue, Nov 01, 2016 at 03:58:10PM +0100, Kamil Rytarowski wrote:
> Which one is preferred for NetBSD?
I'd go with neither, but base the new interface on FreeBSD's.
PT_GETLWPS takes as argument:
struct ptrace_getinfos_request {
size_t allocated_lwps;
size_t current_lwps;
struct ptrace_lwpin
On 03.11.2016 14:10, Joerg Sonnenberger wrote:
> On Tue, Nov 01, 2016 at 03:58:10PM +0100, Kamil Rytarowski wrote:
>> Which one is preferred for NetBSD?
>
> I'd go with neither, but base the new interface on FreeBSD's.
> PT_GETLWPS takes as argument:
>
> struct ptrace_getinfos_request {
> siz
In article <1180c509-ee6c-6fde-56fd-0e8cf01e6...@gmx.com>,
Kamil Rytarowski wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>On 03.11.2016 14:10, Joerg Sonnenberger wrote:
>> On Tue, Nov 01, 2016 at 03:58:10PM +0100, Kamil Rytarowski wrote:
>>> Which one is preferred for NetBSD?
>>
>> I'd go with neither, bu
In article <21d0d3ee-043a-ac7c-3352-57beafde6...@gmx.com>,
Kamil Rytarowski wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>There are two basic BSD interfaces to retrieve kernel processes
>associated to a process:
>
>FreeBSD:
>
>PT_GETNUMLWPS
>This request returns the number of kernel threads
>