tudv
tudv

Reputation: 41

Can LTTng analyze multithreading problems by tracing the Linux kernel?

I am looking for a method to analyze the multithreading problems in Linux user programs without affecting the program's own behaviour. I'm wondering whether it is possible to analyze the multithreading problem of user programs from the kernel event tracer or not?

Upvotes: 0

Views: 442

Answers (1)

Julien Desfossez
Julien Desfossez

Reputation: 11

Yes, LTTng works very well for that use-case, you can start by enabling the scheduling events (sched*), the statedump events (lttng_statedump_*) and the system calls events and you should have quickly a good idea of your program behavior. You can look at the trace in TraceCompass to inspect it visually, or with the lttng-analyses scripts to extract usage and latency metrics from your trace.

Upvotes: 1

Related Questions