* [lttng-dev] Monitor user space threads without user events
@ 2024-04-06 4:20 Zvi Vered via lttng-dev
2024-04-15 18:25 ` Kienan Stewart via lttng-dev
0 siblings, 1 reply; 3+ messages in thread
From: Zvi Vered via lttng-dev @ 2024-04-06 4:20 UTC (permalink / raw)
To: lttng-dev
[-- Attachment #1.1: Type: text/plain, Size: 504 bytes --]
Hello,
My user space process contains 2 threads:
First thread is blocked upon a kernel event created by a hardware interrupt
handled by the kernel.
The thread is sending ioctl which is blocked till this interrupt occurs.
Second thread has just a 5msec sleep. It does something and then sleeps for
5msec. Forever.
Is it possible to see when each thread is running (and not blocked or
sleeps) ?
I know how to do it with user events. I wonder if it's possible without any
extra code.
Thank you,
Zvika
[-- Attachment #1.2: Type: text/html, Size: 696 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lttng-dev] Monitor user space threads without user events
2024-04-06 4:20 [lttng-dev] Monitor user space threads without user events Zvi Vered via lttng-dev
@ 2024-04-15 18:25 ` Kienan Stewart via lttng-dev
2024-04-15 18:42 ` Zvi Vered via lttng-dev
0 siblings, 1 reply; 3+ messages in thread
From: Kienan Stewart via lttng-dev @ 2024-04-15 18:25 UTC (permalink / raw)
To: lttng-dev
Hi Zvika,
with a session that has kernel events enabled, I think you could use the
sched_switch event.
thanks,
kienan
On 4/6/24 12:20 AM, Zvi Vered via lttng-dev wrote:
> Hello,
>
> My user space process contains 2 threads:
>
> First thread is blocked upon a kernel event created by a hardware
> interrupt handled by the kernel.
> The thread is sending ioctl which is blocked till this interrupt occurs.
>
> Second thread has just a 5msec sleep. It does something and then sleeps
> for 5msec. Forever.
>
> Is it possible to see when each thread is running (and not blocked or
> sleeps) ?
> I know how to do it with user events. I wonder if it's possible without
> any extra code.
>
> Thank you,
> Zvika
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lttng-dev] Monitor user space threads without user events
2024-04-15 18:25 ` Kienan Stewart via lttng-dev
@ 2024-04-15 18:42 ` Zvi Vered via lttng-dev
0 siblings, 0 replies; 3+ messages in thread
From: Zvi Vered via lttng-dev @ 2024-04-15 18:42 UTC (permalink / raw)
To: Kienan Stewart; +Cc: lttng-dev
[-- Attachment #1.1: Type: text/plain, Size: 1286 bytes --]
Hi Kienan,
Thank you very much !
Zvika
On Mon, Apr 15, 2024 at 9:25 PM Kienan Stewart via lttng-dev <
lttng-dev@lists.lttng.org> wrote:
> Hi Zvika,
>
> with a session that has kernel events enabled, I think you could use the
> sched_switch event.
>
> thanks,
> kienan
>
> On 4/6/24 12:20 AM, Zvi Vered via lttng-dev wrote:
> > Hello,
> >
> > My user space process contains 2 threads:
> >
> > First thread is blocked upon a kernel event created by a hardware
> > interrupt handled by the kernel.
> > The thread is sending ioctl which is blocked till this interrupt occurs.
> >
> > Second thread has just a 5msec sleep. It does something and then sleeps
> > for 5msec. Forever.
> >
> > Is it possible to see when each thread is running (and not blocked or
> > sleeps) ?
> > I know how to do it with user events. I wonder if it's possible without
> > any extra code.
> >
> > Thank you,
> > Zvika
> >
> > _______________________________________________
> > lttng-dev mailing list
> > lttng-dev@lists.lttng.org
> > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
[-- Attachment #1.2: Type: text/html, Size: 2094 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-15 18:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-06 4:20 [lttng-dev] Monitor user space threads without user events Zvi Vered via lttng-dev
2024-04-15 18:25 ` Kienan Stewart via lttng-dev
2024-04-15 18:42 ` Zvi Vered via lttng-dev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox