From a72255a336c68dcc62d7bd9fcc1d409ee766cf77 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Fri, 18 Sep 2020 15:14:09 -0400 Subject: lib: add tracepoint for route table get Signed-off-by: Quentin Young --- lib/trace.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/trace.h') diff --git a/lib/trace.h b/lib/trace.h index 989361e66c..5e0b13a655 100644 --- a/lib/trace.h +++ b/lib/trace.h @@ -39,6 +39,7 @@ #include "thread.h" #include "memory.h" #include "linklist.h" +#include "table.h" /* clang-format off */ @@ -219,6 +220,18 @@ TRACEPOINT_EVENT( ) ) +TRACEPOINT_EVENT( + frr_libfrr, + route_node_get, + TP_ARGS( + struct route_table *, table, char *, prefix + ), + TP_FIELDS( + ctf_integer_hex(intptr_t, table, table) + ctf_string(prefix, prefix) + ) +) + /* clang-format on */ #include -- cgit v1.2.3