Tracing enhancements. 97/197/2
authorBud Grise <griseb@cisco.com>
Tue, 2 Feb 2016 19:23:29 +0000 (14:23 -0500)
committerGerrit Code Review <gerrit@fd.io>
Tue, 2 Feb 2016 21:33:08 +0000 (21:33 +0000)
commit0bcc9d511e52a9832e723825b4c84d9332d7025b
treef170cc10b06fd13aadb72974a7606376c0774560
parentcfe0724b22672369d7d26108eef89362b7006a0c
Tracing enhancements.

Limit buffer tracing to 50 in order to limit large output, unless
the user over rides the max "sh trace max <number>".

Add trace filtering, to be able to only trace packets that were
processed by a specific node or exclude packets processed by a node.
Example, only include packets processed by error-drop:
  # trace filter include error-drop 1
  # trace add dpdk-input 1000000
  <wait for packets, to come in>
  # show trace

Change-Id: I5d9e15d2268ea55e6ef87b2b8756049c49b2791b
Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
vlib/vlib/trace.c
vlib/vlib/trace.h
vlib/vlib/trace_funcs.h