lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: Yonghong Yan <yanyh15@gmail.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: process/thread-specific UST tracing
Date: Fri, 15 May 2020 15:15:16 -0400 (EDT)	[thread overview]
Message-ID: <996953575.22598.1589570116107.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <CACJEY85H4OMTz9ggfZZP3QCXoWgLiJgsMVNTP8LNBAF67mQTEQ@mail.gmail.com>


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

----- On May 15, 2020, at 1:16 PM, lttng-dev <lttng-dev@lists.lttng.org> wrote: 

> I am tracing a multiprocess/multithreaded code (MPI/OpenMP) using lttng-ust.
> Right now, I need to include process id and thread id for each event in order
> to generate process/thread indexed view of the traces. Is there a way that I
> can store per-process events into a specific buffer without mixing the events
> with other events that are generated on the same CPU? The same thing for
> per-thread events, I would like lttng or CTF to allow to store per-thread
> events in a specific buffer without mixing the events with other events on the
> same CPU channel. With that feature, I do not need to store process id and
> thread id in each event and then need to query all the events in order to
> collect per-process or per-thread event.

No, but you can use kernel tracing (lttng-modules) of the scheduler events (sched:*) to map 
the CPU number to the currently running thread and process at trace post-processing. 

By doing so, both current thread and process become implicit with the CPU number. 

Thanks, 

Mathieu 

> Thank you
> Yonghong

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 2529 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

WARNING: multiple messages have this Message-ID (diff)
From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: Yonghong Yan <yanyh15@gmail.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] process/thread-specific UST tracing
Date: Fri, 15 May 2020 15:15:16 -0400 (EDT)	[thread overview]
Message-ID: <996953575.22598.1589570116107.JavaMail.zimbra@efficios.com> (raw)
Message-ID: <20200515191516.selS2gtKR3oYafoA9oHxcoqe8nz1Uk1Gs4nngSU1GGc@z> (raw)
In-Reply-To: <CACJEY85H4OMTz9ggfZZP3QCXoWgLiJgsMVNTP8LNBAF67mQTEQ@mail.gmail.com>


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

----- On May 15, 2020, at 1:16 PM, lttng-dev <lttng-dev@lists.lttng.org> wrote: 

> I am tracing a multiprocess/multithreaded code (MPI/OpenMP) using lttng-ust.
> Right now, I need to include process id and thread id for each event in order
> to generate process/thread indexed view of the traces. Is there a way that I
> can store per-process events into a specific buffer without mixing the events
> with other events that are generated on the same CPU? The same thing for
> per-thread events, I would like lttng or CTF to allow to store per-thread
> events in a specific buffer without mixing the events with other events on the
> same CPU channel. With that feature, I do not need to store process id and
> thread id in each event and then need to query all the events in order to
> collect per-process or per-thread event.

No, but you can use kernel tracing (lttng-modules) of the scheduler events (sched:*) to map 
the CPU number to the currently running thread and process at trace post-processing. 

By doing so, both current thread and process become implicit with the CPU number. 

Thanks, 

Mathieu 

> Thank you
> Yonghong

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 2529 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

  parent reply	other threads:[~2020-05-15 19:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 17:16 process/thread-specific UST tracing Yonghong Yan via lttng-dev
2020-05-15 17:16 ` [lttng-dev] " Yonghong Yan via lttng-dev
2020-05-15 19:15 ` Mathieu Desnoyers via lttng-dev [this message]
2020-05-15 19:15   ` Mathieu Desnoyers via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=996953575.22598.1589570116107.JavaMail.zimbra@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=yanyh15@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).