From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Fri, 15 May 2020 15:15:16 -0400 (EDT) Subject: [lttng-dev] process/thread-specific UST tracing In-Reply-To: References: Message-ID: <996953575.22598.1589570116107.JavaMail.zimbra@efficios.com> ----- On May 15, 2020, at 1:16 PM, lttng-dev 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 at lists.lttng.org > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: