[lttng-dev] Understand userspace events in babeltrace output

Zvi Vered veredz72 at gmail.com
Fri Jul 19 10:28:48 EDT 2019


Hello,

Using babeltrace I created a text trace.
How can I understand it ?

For example:
I logged userspace events. One of my threads is called: RSPOn3
I can see the following lines:

sched_switch: { cpu_id = 0 }, { prev_comm = "RSPOn3", prev_tid = 27307,
prev_prio = -58, prev_state = 1, next_comm = "swapper/0", next_tid = 0,
next_prio = 20 }

sched_wakeup: { cpu_id = 0 }, { comm = "RSPOn3", tid = 27307, prio = -58,
success = 1, target_cpu = 0 }

sched_switch: { cpu_id = 0 }, { prev_comm = "swapper/0", prev_tid = 0,
prev_prio = 20, prev_state = 0, next_comm = "RSPOn3", next_tid = 27307,
next_prio = -58 }

sched_switch: { cpu_id = 0 }, { prev_comm = "RSPOn3", prev_tid = 27307,
prev_prio = -58, prev_state = 1, next_comm = "swapper/0", next_tid = 0,
next_prio = 20 }

How can I know the meaning of each field in each line ?
1. sched_switch, sched_wakeup
2. prev_comm
3. prev_state
4. next_comm

If a task is blocked (e.g waiting for TCP) and then runs for some time and
then waits again, how this will be logged ?

Curently I need help only on userspace events.

Thank you,
Zvika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190719/a9ace174/attachment.html>


More information about the lttng-dev mailing list