mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Add unit tests for utility functions in src/utils.c using the Check testing framework. The tests verify parse_cpu_set(), strtoi(), and parse_prio() functions. Unit tests are built conditionally when libcheck is available. Run tests with 'make unit-test'. The test framework uses the Check library which provides process isolation for each test, preventing failures in one test from affecting others. Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Link: https://lore.kernel.org/r/20260119105857.797498-3-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
RTLA: Real-Time Linux Analysis tools
|
|
|
|
The rtla meta-tool includes a set of commands that aims to analyze
|
|
the real-time properties of Linux. Instead of testing Linux as a black box,
|
|
rtla leverages kernel tracing capabilities to provide precise information
|
|
about the properties and root causes of unexpected results.
|
|
|
|
Installing RTLA
|
|
|
|
RTLA depends on the following libraries and tools:
|
|
|
|
- libtracefs
|
|
- libtraceevent
|
|
- libcpupower (optional, for --deepest-idle-state)
|
|
- libcheck (optional, for unit tests)
|
|
|
|
For BPF sample collection support, the following extra dependencies are
|
|
required:
|
|
|
|
- libbpf 1.0.0 or later
|
|
- bpftool with skeleton support
|
|
- clang with BPF CO-RE support
|
|
|
|
It also depends on python3-docutils to compile man pages.
|
|
|
|
For development, we suggest the following steps for compiling rtla:
|
|
|
|
$ git clone git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
|
|
$ cd libtraceevent/
|
|
$ make
|
|
$ sudo make install
|
|
$ cd ..
|
|
$ git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
|
$ cd libtracefs/
|
|
$ make
|
|
$ sudo make install
|
|
$ cd ..
|
|
$ cd $libcpupower_src
|
|
$ make
|
|
$ sudo make install
|
|
$ cd $rtla_src
|
|
$ make
|
|
$ sudo make install
|
|
|
|
For further information, please refer to the rtla man page.
|