lttng-dev Archive on lore.kernel.org
 help / color / Atom feed
* process/thread-specific UST tracing
@ 2020-05-15 17:16 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
  0 siblings, 2 replies; 4+ messages in thread
From: Yonghong Yan via lttng-dev @ 2020-05-15 17:16 UTC (permalink / raw)
  To: lttng-dev

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

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.

Thank you
Yonghong

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

* [lttng-dev] process/thread-specific UST tracing
  2020-05-15 17:16 process/thread-specific UST tracing Yonghong Yan via lttng-dev
@ 2020-05-15 17:16 ` Yonghong Yan via lttng-dev
  2020-05-15 19:15 ` Mathieu Desnoyers via lttng-dev
  1 sibling, 0 replies; 4+ messages in thread
From: Yonghong Yan via lttng-dev @ 2020-05-15 17:16 UTC (permalink / raw)
  To: lttng-dev

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

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.

Thank you
Yonghong

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

* Re: process/thread-specific UST tracing
  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
  2020-05-15 19:15   ` [lttng-dev] " Mathieu Desnoyers via lttng-dev
  1 sibling, 1 reply; 4+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-05-15 19:15 UTC (permalink / raw)
  To: Yonghong Yan; +Cc: lttng-dev

[-- 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

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

* Re: [lttng-dev] process/thread-specific UST tracing
  2020-05-15 19:15 ` Mathieu Desnoyers via lttng-dev
@ 2020-05-15 19:15   ` Mathieu Desnoyers via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-05-15 19:15 UTC (permalink / raw)
  To: Yonghong Yan; +Cc: lttng-dev

[-- 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

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2020-05-15 19:15   ` [lttng-dev] " Mathieu Desnoyers via lttng-dev

lttng-dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lttng-dev/0 lttng-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lttng-dev lttng-dev/ https://lore.kernel.org/lttng-dev \
		lttng-dev@lists.lttng.org
	public-inbox-index lttng-dev

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.lttng.lists.lttng-dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git