Tracing in the Linux kernel is constantly improving. Since 2008 tracing has been add to Linux, and more tooling is constantly being added to help out with visibility. The work is still ongoing, with Perf, ftrace, Lttng, and eBPF. User space tooling is expanding and as the kernel gets more complex, so does the need for facilitating seeing what is going on under the hood.
The last tracing microconference that happened two years ago was extremely productive:
The final design of bootconfig came out, which enables kernel command lines be attached to the init ramdisk.
Discussion on how to simplify the interface to ftrace histograms from userspace resulted in a SQL like utility (still being worked on, but almost finished). This came from the help of the database folks.
- After several rounds of trying to have perf share PMUs (beyond the hardware limit), another approach was taken to use a BPF based solution that does not need any kernel changes. Now perf can use BPF to aggregate counters.
Possible topics for this year:
Tracepoints that allow faults. It may be necessary to read user space address, but currently because tracepoints disable preemption, it can not sleep, nor fault. And then there's the possibilities of causing locking issues.
Function parameter parsing. Now that on x86 function tracing has full access to the arguments of a function, it is possible to record them as they are being traced. But knowing how to read the parameters may be difficult, because it is necessary to know the prototype of the function to do so. Having some kind of mapping between functions and how to read their parameters would be useful. Using BTF is a likely candidate.
Consolidating tracing of return of a function. Currently there's three use cases that hook to the return of a function, and they all do it differently. kretprobes, function graph tracer, and eBPF.
User space libraries. Now that libtraceevent, libtracefs, and libtracecmd have been released, what tooling can be built around them. Also, improving the libtraceevent API to be more intuitive.
- Improving the libtracefs API to handle kprobes and uprobes easier
- Python interface. Working on getting the libraries a python interface to allow full tracing from within python scripts.
- Tracing containers. What would be useful to expose on creating and running containers.
- And more.
- Steven Rostedt
- Mathieu Desnoyers
- Peter Zijlstra
- Alexei Starovoitov
- Thomas Gleixner
- Masami Hiromatsu
- Yordan Karadzhov
- Tzvetomir Stoyanov
- Dario Faggioli
|I agree to abide by the anti-harassment policy||I agree|