Commit | Line | Data |
---|---|---|
43c28d50 JG |
1 | Daemon tracing test |
2 | ------------------- | |
3 | ||
4 | This test checks if tracing works correctly in a child process created by a | |
5 | call to daemon(). | |
6 | ||
7 | DESCRIPTION | |
8 | ----------- | |
9 | ||
10 | A session daemon is launched if none are found to be running. The test_daemon | |
11 | script then creates a session, enables all events from the userspace domain, | |
12 | starts the session and launches the daemon binary. | |
13 | ||
14 | The daemon binary, in turn, triggers tracepoints both from the original and | |
15 | resulting daemon process. | |
16 | ||
17 | The test_daemon script then parses the resulting trace and ensures that the | |
18 | events were correctly recorded and were logged with the right PIDs. | |
19 | ||
20 | DEPENDENCIES | |
21 | ------------ | |
22 | ||
23 | To run this test, you will need: | |
24 | ||
25 | - lttng-tools (with python bindings) | |
26 | - babeltrace | |
27 | - python 3.0 or better |