Commit | Line | Data |
---|---|---|
73b818e7 | 1 | lttng-clear(1) |
484b2a0c PP |
2 | ============== |
3 | :revdate: 8 April 2021 | |
73b818e7 JR |
4 | |
5 | NAME | |
6 | ---- | |
7 | lttng-clear - Clear a tracing session | |
8 | ||
9 | ||
10 | SYNOPSIS | |
11 | -------- | |
12 | [verse] | |
dab6a2a3 | 13 | *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* ['SESSION' | option:--all] |
73b818e7 JR |
14 | |
15 | ||
16 | DESCRIPTION | |
17 | ----------- | |
dab6a2a3 | 18 | The `lttng clear` command clears one or more tracing sessions, that is, |
484b2a0c PP |
19 | it deletes the contents of their tracing buffers and of all their local |
20 | and streamed trace data. | |
73b818e7 | 21 | |
484b2a0c | 22 | The `clear` command clears: |
73b818e7 | 23 | |
484b2a0c PP |
24 | Without any option:: |
25 | The current tracing session. | |
26 | + | |
27 | See man:lttng-create(1) and man:lttng-set-session(1) to learn more about | |
28 | the current tracing session. | |
73b818e7 | 29 | |
484b2a0c PP |
30 | With the 'SESSION' argument:: |
31 | The existing tracing session named 'SESSION'. | |
32 | ||
33 | With the option:--all option:: | |
34 | *All* the tracing sessions of your Unix user, as listed in the | |
35 | output of `lttng list` (see man:lttng-list(1)). | |
73b818e7 | 36 | |
dab6a2a3 | 37 | If a tracing session is configured in snapshot mode (see the |
484b2a0c PP |
38 | nloption:--snapshot option of the man:lttng-create(1) command), the |
39 | `clear` command only clears the tracing buffers. | |
73b818e7 | 40 | |
dab6a2a3 | 41 | For a given tracing session, if at least one rotation occurred (see |
484b2a0c PP |
42 | man:lttng-rotate(1)), the `clear` command only clears its tracing |
43 | buffers and its current trace chunk, :not: its archived trace chunks. | |
73b818e7 | 44 | |
dab6a2a3 PP |
45 | NOTE: The nloption:--disallow-clear option and the |
46 | `LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of | |
47 | man:lttng-relayd(8) can disable remote clearing operations. If LTTng | |
484b2a0c PP |
48 | sends tracing data over the network for the selected tracing session(s) |
49 | to an LTTng relay daemon configured as such, the `clear` command fails. | |
73b818e7 | 50 | |
73b818e7 JR |
51 | |
52 | include::common-cmd-options-head.txt[] | |
53 | ||
54 | ||
484b2a0c PP |
55 | Recording target |
56 | ~~~~~~~~~~~~~~~~ | |
73b818e7 | 57 | option:-a, option:--all:: |
484b2a0c PP |
58 | Clear all the tracing sessions of your Unix user, as listed in the |
59 | output of man:lttng-list(1), instead of the current tracing session | |
60 | or the tracing session named 'SESSION'. | |
dab6a2a3 | 61 | |
73b818e7 JR |
62 | |
63 | include::common-cmd-help-options.txt[] | |
64 | ||
65 | ||
66 | include::common-cmd-footer.txt[] | |
67 | ||
68 | ||
69 | SEE ALSO | |
70 | -------- | |
484b2a0c | 71 | man:lttng(1), |
dab6a2a3 | 72 | man:lttng-create(1), |
dab6a2a3 | 73 | man:lttng-relayd(8), |
484b2a0c PP |
74 | man:lttng-rotate(1), |
75 | man:lttng-set-session(1) |