How to set PTID in Trace Compass [message #1854668] |
Thu, 01 September 2022 19:27  |
Eclipse User |
|
|
|
Hello Everyone,
I am writing a process in C with multiple threads (under Linux) that are created from the main thread with POSIX API pthread_create.
I am using lttng kernel events and Trace Compass to analyze the process
threads utilization.
I would like to present in the Trace Compass Control Flow view all my process threads names under my process name in the process tree.
I understand that for that I need to set the PTID (which is empty) but I don't know how to do that since in Linux all threads are peers and there is no parent thread ID.
Is anyone know how to set the PTID column in the Control Flow view in Trace Compass?
The lttng commands for my session
lttng create mySession
lttng enable-event -k sched_'*'
lttng enable-event -k timer_hrtimer_'*'
lttng add-context -k -t tid -t pid -t vpid -t procname -t ppid
lttng start
lttng stop
lttng save
Thanks,
Shlomi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02915 seconds