diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-11-28 10:07:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-28 10:07:44 +0200 |
| commit | 39fc44d51a43a92581ab7874ba49b8b7c604790c (patch) | |
| tree | d8237c334a45e1536fc9d9f408202e1facc04435 | |
| parent | 1ad9201f08dfd583793155a999c06d9abc32c143 (diff) | |
| parent | a8a0f80b634208c878e15335948810e1d532d1e7 (diff) | |
Merge pull request #12403 from donaldsharp/echo_exclusion
Echo exclusion
| -rw-r--r-- | lib/vty.c | 3 | ||||
| -rw-r--r-- | zebra/zebra_trace.h | 43 |
2 files changed, 45 insertions, 1 deletions
@@ -447,7 +447,8 @@ static int vty_command(struct vty *vty, char *buf) /* * Log non empty command lines */ - if (do_log_commands) + if (do_log_commands && + strncmp(buf, "echo PING", strlen("echo PING")) != 0) cp = buf; if (cp != NULL) { /* Skip white spaces. */ diff --git a/zebra/zebra_trace.h b/zebra/zebra_trace.h index 49a0c8e793..374305fcda 100644 --- a/zebra/zebra_trace.h +++ b/zebra/zebra_trace.h @@ -123,6 +123,49 @@ TRACEPOINT_EVENT( ) ) +TRACEPOINT_EVENT( + frr_zebra, + netlink_tc_qdisc_change, + TP_ARGS( + struct nlmsghdr *, header, + ns_id_t, ns_id, + int, startup), + TP_FIELDS( + ctf_integer_hex(intptr_t, header, header) + ctf_integer(uint32_t, ns_id, ns_id) + ctf_integer(uint32_t, startup, startup) + ) + ) + +TRACEPOINT_EVENT( + frr_zebra, + netlink_tc_class_change, + TP_ARGS( + struct nlmsghdr *, header, + ns_id_t, ns_id, + int, startup), + TP_FIELDS( + ctf_integer_hex(intptr_t, header, header) + ctf_integer(uint32_t, ns_id, ns_id) + ctf_integer(uint32_t, startup, startup) + ) + ) + + +TRACEPOINT_EVENT( + frr_zebra, + netlink_tc_filter_change, + TP_ARGS( + struct nlmsghdr *, header, + ns_id_t, ns_id, + int, startup), + TP_FIELDS( + ctf_integer_hex(intptr_t, header, header) + ctf_integer(uint32_t, ns_id, ns_id) + ctf_integer(uint32_t, startup, startup) + ) + ) + #include <lttng/tracepoint-event.h> #endif /* HAVE_LTTNG */ |
