summaryrefslogtreecommitdiffstats
path: root/docs/reference/cmdreference/trace/trace.rst
blob: 5d0ddb604ef94782db8d207fcb1be2acc9f1b854 (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
.. _interface:

.. toctree::

.. note:: For a complete list of CLI Debug commands refer to the Debug CLI section of the `Source Code Documents <https://docs.fd.io/vpp/18.07/clicmd.html>`_ .


API Trace
===========

Summary/Usage
--------------

api trace [on|off][first <*n*>][last <*n*>][status][free][post-mortem-on][dump|custom-dump|save|replay <*file*>]

Description
------------

Display, replay, or save a binary API trace.

Declaration and Implementation
-------------------------------

**Declaration:** api_trace_command (src/vlibmemory/vlib_api_cli.c line 783)

**Implementation:** api_trace_command_fn

Clear Trace
=============

Summary/Usage
--------------
Clear trace buffer and free memory.
Declaration and implementation

**Declaration:** clear_trace_cli (src/vlib/trace.c line 519)

**Implementation:** cli_clear_trace_buffer

Show Trace
===========

`Show Trace <../interface/show.html#show-trace>`_

Trace Add
===========

Summary/Usage
--------------

Trace given number of packets.

Declaration and Implementation
-------------------------------

**Declaration:** add_trace_cli (src/vlib/trace.c line 405)

**Implementation:** cli_add_trace_buffer