Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Lttng: display active threads in multiple cores.
@ 2024-03-27  9:26 Zvi Vered via lttng-dev
  2024-03-27 17:28 ` Christopher Harvey via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Zvi Vered via lttng-dev @ 2024-03-27  9:26 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 233 bytes --]

Hello,

I have an application with 4 threads.
I'm required to display on the graph when thread starts working till it
blocks for the next semaphore.

But without using the lttng userspace library.

Is it possible ?

Thank you,
Zvika

[-- Attachment #1.2: Type: text/html, Size: 490 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] 6+ messages in thread

* Re: [lttng-dev] Lttng: display active threads in multiple cores.
  2024-03-27  9:26 [lttng-dev] Lttng: display active threads in multiple cores Zvi Vered via lttng-dev
@ 2024-03-27 17:28 ` Christopher Harvey via lttng-dev
  2024-03-29  5:09   ` Zvi Vered via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Harvey via lttng-dev @ 2024-03-27 17:28 UTC (permalink / raw)
  To: lttng-dev

you can use an ftrace-enabled kernel with lttng (maybe even just tracecompass) or perfetto to get that kind of trace

https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html

or

https://ui.perfetto.dev/

On Wed, Mar 27, 2024, at 5:26 AM, Zvi Vered via lttng-dev wrote:
> Hello,
>
> I have an application with 4 threads. 
> I'm required to display on the graph when thread starts working till it 
> blocks for the next semaphore. 
>
> But without using the lttng userspace library.
>
> Is it possible ?
>
> 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] 6+ messages in thread

* Re: [lttng-dev] Lttng: display active threads in multiple cores.
  2024-03-27 17:28 ` Christopher Harvey via lttng-dev
@ 2024-03-29  5:09   ` Zvi Vered via lttng-dev
  2024-04-02 14:11     ` Erica Bugden via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Zvi Vered via lttng-dev @ 2024-03-29  5:09 UTC (permalink / raw)
  To: Christopher Harvey; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1258 bytes --]

Hi Christopher,

Thank you very much for your reply.
Can you please explain what do you mean by ftrace-enabled kernel ?

Best regards,
Zvika

On Wed, Mar 27, 2024 at 7:32 PM Christopher Harvey via lttng-dev <
lttng-dev@lists.lttng.org> wrote:

> you can use an ftrace-enabled kernel with lttng (maybe even just
> tracecompass) or perfetto to get that kind of trace
>
>
> https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html
>
> or
>
> https://ui.perfetto.dev/
>
> On Wed, Mar 27, 2024, at 5:26 AM, Zvi Vered via lttng-dev wrote:
> > Hello,
> >
> > I have an application with 4 threads.
> > I'm required to display on the graph when thread starts working till it
> > blocks for the next semaphore.
> >
> > But without using the lttng userspace library.
> >
> > Is it possible ?
> >
> > 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: 2289 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] 6+ messages in thread

* Re: [lttng-dev] Lttng: display active threads in multiple cores.
  2024-03-29  5:09   ` Zvi Vered via lttng-dev
@ 2024-04-02 14:11     ` Erica Bugden via lttng-dev
  2024-04-03  3:52       ` Zvi Vered via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Erica Bugden via lttng-dev @ 2024-04-02 14:11 UTC (permalink / raw)
  To: Zvi Vered, Christopher Harvey; +Cc: lttng-dev

Hello Zvika,

On 2024-03-29 01:09, Zvi Vered via lttng-dev wrote:
> Hi Christopher,
> 
> Thank you very much for your reply.
> Can you please explain what do you mean by ftrace-enabled kernel ?

I believe what Christopher means by "ftrace-enabled" kernel is that the 
Linux kernel has been configured to include ftrace. Both the ftrace 
tracer and the LTTng tracer use the same kernel tracepoints to extract 
execution information and these tracepoints are included in the kernel 
if ftrace is included.

Most Linux distributions will include ftrace by default. However, you 
can check whether this is the case by searching for `tracefs` in 
`/proc/filesystems` (assuming it's already mounted) or by trying to 
mount `tracefs`. `tracefs` is the filesystem ftrace uses to communicate 
with users.

More details about how to check if ftrace is enabled and how to enable 
it if not: 
https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/ftrace

The "More Information" section points to the primary sources (Linux 
kernel documentation), but I find this page to be a good starting point.

Best,
Erica

> 
> Best regards,
> Zvika
> 
> On Wed, Mar 27, 2024 at 7:32 PM Christopher Harvey via lttng-dev 
> <lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>> wrote:
> 
>     you can use an ftrace-enabled kernel with lttng (maybe even just
>     tracecompass) or perfetto to get that kind of trace
> 
>     https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html <https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html>
> 
>     or
> 
>     https://ui.perfetto.dev/ <https://ui.perfetto.dev/>
> 
>     On Wed, Mar 27, 2024, at 5:26 AM, Zvi Vered via lttng-dev wrote:
>      > Hello,
>      >
>      > I have an application with 4 threads.
>      > I'm required to display on the graph when thread starts working
>     till it
>      > blocks for the next semaphore.
>      >
>      > But without using the lttng userspace library.
>      >
>      > Is it possible ?
>      >
>      > Thank you,
>      > Zvika
>      > _______________________________________________
>      > lttng-dev mailing list
>      > lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
>      > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
>     _______________________________________________
>     lttng-dev mailing list
>     lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
>     https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <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
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lttng-dev] Lttng: display active threads in multiple cores.
  2024-04-02 14:11     ` Erica Bugden via lttng-dev
@ 2024-04-03  3:52       ` Zvi Vered via lttng-dev
  2024-04-03 18:41         ` Erica Bugden via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Zvi Vered via lttng-dev @ 2024-04-03  3:52 UTC (permalink / raw)
  To: Erica Bugden; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 3367 bytes --]

Hi Erica,

Thank you very much for your answer.
Can you please tell what is the added value of ftrace (compared to using
only lttng) ?

Best regards,
Zvika


On Tue, Apr 2, 2024 at 5:11 PM Erica Bugden <ebugden@efficios.com> wrote:

> Hello Zvika,
>
> On 2024-03-29 01:09, Zvi Vered via lttng-dev wrote:
> > Hi Christopher,
> >
> > Thank you very much for your reply.
> > Can you please explain what do you mean by ftrace-enabled kernel ?
>
> I believe what Christopher means by "ftrace-enabled" kernel is that the
> Linux kernel has been configured to include ftrace. Both the ftrace
> tracer and the LTTng tracer use the same kernel tracepoints to extract
> execution information and these tracepoints are included in the kernel
> if ftrace is included.
>
> Most Linux distributions will include ftrace by default. However, you
> can check whether this is the case by searching for `tracefs` in
> `/proc/filesystems` (assuming it's already mounted) or by trying to
> mount `tracefs`. `tracefs` is the filesystem ftrace uses to communicate
> with users.
>
> More details about how to check if ftrace is enabled and how to enable
> it if not:
> https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/ftrace
>
> The "More Information" section points to the primary sources (Linux
> kernel documentation), but I find this page to be a good starting point.
>
> Best,
> Erica
>
> >
> > Best regards,
> > Zvika
> >
> > On Wed, Mar 27, 2024 at 7:32 PM Christopher Harvey via lttng-dev
> > <lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>> wrote:
> >
> >     you can use an ftrace-enabled kernel with lttng (maybe even just
> >     tracecompass) or perfetto to get that kind of trace
> >
> >
> https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html
> <
> https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html
> >
> >
> >     or
> >
> >     https://ui.perfetto.dev/ <https://ui.perfetto.dev/>
> >
> >     On Wed, Mar 27, 2024, at 5:26 AM, Zvi Vered via lttng-dev wrote:
> >      > Hello,
> >      >
> >      > I have an application with 4 threads.
> >      > I'm required to display on the graph when thread starts working
> >     till it
> >      > blocks for the next semaphore.
> >      >
> >      > But without using the lttng userspace library.
> >      >
> >      > Is it possible ?
> >      >
> >      > Thank you,
> >      > Zvika
> >      > _______________________________________________
> >      > lttng-dev mailing list
> >      > lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
> >      > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> >     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
> >     _______________________________________________
> >     lttng-dev mailing list
> >     lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
> >     https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> >     <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: 5829 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] 6+ messages in thread

* Re: [lttng-dev] Lttng: display active threads in multiple cores.
  2024-04-03  3:52       ` Zvi Vered via lttng-dev
@ 2024-04-03 18:41         ` Erica Bugden via lttng-dev
  0 siblings, 0 replies; 6+ messages in thread
From: Erica Bugden via lttng-dev @ 2024-04-03 18:41 UTC (permalink / raw)
  To: Zvi Vered; +Cc: lttng-dev

Hello Zvika,

On 2024-04-02 23:52, Zvi Vered wrote:
> Hi Erica,
> 
> Thank you very much for your answer.
> Can you please tell what is the added value of ftrace (compared to using 
> only lttng) ?

I don't think I understand the intention behind your question. I'll make 
some guesses below and you're welcome to clarify if you wish.

ftrace and LTTng are different tools that have some overlap in the 
tracing use cases they can address. ftrace is a Linux kernel tracer that 
is included in the kernel; it isn't an LTTng add-on.

Both ftrace and LTTng can trace the Linux kernel if the tracepoints have 
been included. LTTng doesn't use ftrace, but most kernels that are 
configured to include the tracepoints typically also include ftrace.

That being said, if you only want to trace userspace applications with 
LTTng and don't also want kernel traces, then you don't need an 
ftrace-enabled kernel.

Best,
Erica

> 
> Best regards,
> Zvika
> 
> 
> On Tue, Apr 2, 2024 at 5:11 PM Erica Bugden <ebugden@efficios.com 
> <mailto:ebugden@efficios.com>> wrote:
> 
>     Hello Zvika,
> 
>     On 2024-03-29 01:09, Zvi Vered via lttng-dev wrote:
>      > Hi Christopher,
>      >
>      > Thank you very much for your reply.
>      > Can you please explain what do you mean by ftrace-enabled kernel ?
> 
>     I believe what Christopher means by "ftrace-enabled" kernel is that the
>     Linux kernel has been configured to include ftrace. Both the ftrace
>     tracer and the LTTng tracer use the same kernel tracepoints to extract
>     execution information and these tracepoints are included in the kernel
>     if ftrace is included.
> 
>     Most Linux distributions will include ftrace by default. However, you
>     can check whether this is the case by searching for `tracefs` in
>     `/proc/filesystems` (assuming it's already mounted) or by trying to
>     mount `tracefs`. `tracefs` is the filesystem ftrace uses to communicate
>     with users.
> 
>     More details about how to check if ftrace is enabled and how to enable
>     it if not:
>     https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/ftrace <https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/ftrace>
> 
>     The "More Information" section points to the primary sources (Linux
>     kernel documentation), but I find this page to be a good starting point.
> 
>     Best,
>     Erica
> 
>      >
>      > Best regards,
>      > Zvika
>      >
>      > On Wed, Mar 27, 2024 at 7:32 PM Christopher Harvey via lttng-dev
>      > <lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
>     <mailto:lttng-dev@lists.lttng.org
>     <mailto:lttng-dev@lists.lttng.org>>> wrote:
>      >
>      >     you can use an ftrace-enabled kernel with lttng (maybe even just
>      >     tracecompass) or perfetto to get that kind of trace
>      >
>      >
>     https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html <https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html> <https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html <https://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.ftrace.doc.user/User-Guide.html>>
>      >
>      >     or
>      >
>      > https://ui.perfetto.dev/ <https://ui.perfetto.dev/>
>     <https://ui.perfetto.dev/ <https://ui.perfetto.dev/>>
>      >
>      >     On Wed, Mar 27, 2024, at 5:26 AM, Zvi Vered via lttng-dev wrote:
>      >      > Hello,
>      >      >
>      >      > I have an application with 4 threads.
>      >      > I'm required to display on the graph when thread starts
>     working
>      >     till it
>      >      > blocks for the next semaphore.
>      >      >
>      >      > But without using the lttng userspace library.
>      >      >
>      >      > Is it possible ?
>      >      >
>      >      > Thank you,
>      >      > Zvika
>      >      > _______________________________________________
>      >      > lttng-dev mailing list
>      >      > lttng-dev@lists.lttng.org
>     <mailto:lttng-dev@lists.lttng.org> <mailto:lttng-dev@lists.lttng.org
>     <mailto:lttng-dev@lists.lttng.org>>
>      >      > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
>      >     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>>
>      >     _______________________________________________
>      >     lttng-dev mailing list
>      > lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
>     <mailto:lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>>
>      > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
>      >     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>>
>      >
>      >
>      > _______________________________________________
>      > lttng-dev mailing list
>      > lttng-dev@lists.lttng.org <mailto:lttng-dev@lists.lttng.org>
>      > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>     <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] 6+ messages in thread

end of thread, other threads:[~2024-04-03 18:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27  9:26 [lttng-dev] Lttng: display active threads in multiple cores Zvi Vered via lttng-dev
2024-03-27 17:28 ` Christopher Harvey via lttng-dev
2024-03-29  5:09   ` Zvi Vered via lttng-dev
2024-04-02 14:11     ` Erica Bugden via lttng-dev
2024-04-03  3:52       ` Zvi Vered via lttng-dev
2024-04-03 18:41         ` Erica Bugden 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