I've recently worked on a custom Linux driver with data streaming from an external device. Whilst the Linux kernel has native mechanisms to ensure the correctness of my driver s functionality, evaluating its performance is not straightforward. Percepio updated its Tracealyzer support for Linux, which was a good opportunity for me to try it and help assess the performance of my custom driver in this project; see Figure 1. Tracealyzer for Linux takes advantage of LTTng, an open-source tracer and profiler that allows developers to evaluate performance of the kernel, including drivers. It also supports userspace applications, but in this series we'll focus on the kernel. Ultimately, Tracealyzer parses the output of LTTng and provides visualisation and detailed statistics.
展开▼