aboutsummaryrefslogtreecommitdiff
path: root/Documentation/trace-cmd/trace-cmd-snapshot.1.txt
blob: 0a34bcd9722759822f078fd46ff4f999651d41de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
TRACE-CMD-SNAPSHOT(1)
=====================

NAME
----
trace-cmd-snapshot - take, reset, free, or show a Ftrace kernel snapshot

SYNOPSIS
--------
*trace-cmd snapshot* ['OPTIONS']

DESCRIPTION
-----------
The trace-cmd(1) snapshot controls or displays the Ftrace Linux kernel
snapshot feature (if the kernel supports it). This is useful to "freeze"
an instance of a live trace but without stopping the trace.

  trace-cmd start -p function
  trace-cmd snapshot -s
  trace-cmd snapshot
 [ dumps the content of buffer at 'trace-cmd snapshot -s' ]
  trace-cmd snapshot -s
  trace-cmd snapshot
 [ dumps the new content of the buffer at the last -s operation ]

OPTIONS
-------
*-s*::
    Take a snapshot of the currently running buffer.

*-r*::
    Clear out the buffer.

*-f*::
    Free the snapshot buffer. The buffer takes up memory inside the
    kernel. It is best to free it when not in use. The first -s
    operation will allocate it if it is not already allocated.

*-c* 'cpu'::
    Operate on a per cpu snapshot (may not be fully supported by all kernels)

*-B* 'buf'::
    If a buffer instance was created, then the *-B* option will operate on
    the snapshot within the buffer.
    

SEE ALSO
--------
trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1),
trace-cmd-extract(1), trace-cmd-reset(1), trace-cmd-split(1),
trace-cmd-list(1), trace-cmd-listen(1)

AUTHOR
------
Written by Steven Rostedt, <rostedt@goodmis.org>

RESOURCES
---------
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/

COPYING
-------
Copyright \(C) 2010 Red Hat, Inc. Free use of this software is granted under
the terms of the GNU Public License (GPL).