<div dir="ltr">Hi Kienan,<div><br><div>Thank you very much !</div></div><div>Zvika </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2024 at 9:25 PM Kienan Stewart via lttng-dev <<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Zvika,<br>
<br>
with a session that has kernel events enabled, I think you could use the <br>
sched_switch event.<br>
<br>
thanks,<br>
kienan<br>
<br>
On 4/6/24 12:20 AM, Zvi Vered via lttng-dev wrote:<br>
> Hello,<br>
> <br>
> My user space process contains 2 threads:<br>
> <br>
> First thread is blocked upon a kernel event created by a hardware <br>
> interrupt handled by the kernel.<br>
> The thread is sending ioctl which is blocked till this interrupt occurs.<br>
> <br>
> Second thread has just a 5msec sleep. It does something and then sleeps <br>
> for 5msec. Forever.<br>
> <br>
> Is it possible to see when each thread is running (and not blocked or <br>
> sleeps) ?<br>
> I know how to do it with user events. I wonder if it's possible without <br>
> any extra code.<br>
> <br>
> Thank you,<br>
> Zvika<br>
> <br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
> <a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" rel="noreferrer" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" rel="noreferrer" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</blockquote></div>