summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-09-16 02:13:36 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-23 21:13:51 +0200
commitd9a03c5736f808846750c72b4b58a977f70885c6 (patch)
tree2a8c5fb401ceac692fb83a31c9799f71168317bc /bgpd/bgp_io.c
parentlib: add tracepoints for pthread run, stop (diff)
downloadfrr-d9a03c5736f808846750c72b4b58a977f70885c6.tar.xz
frr-d9a03c5736f808846750c72b4b58a977f70885c6.zip
bgpd: add basic packet-related tracepoints
Add tracepoints for: - packet pushed to internal rx queue - packet dequeued from rx queue and processed Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r--bgpd/bgp_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 412c8e3e5..65b388e61 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -39,6 +39,7 @@
#include "bgpd/bgp_errors.h" // for expanded error reference information
#include "bgpd/bgp_fsm.h" // for BGP_EVENT_ADD, bgp_event
#include "bgpd/bgp_packet.h" // for bgp_notify_send_with_data, bgp_notify...
+#include "bgpd/bgp_trace.h" // for tracepoints
#include "bgpd/bgpd.h" // for peer, BGP_MARKER_SIZE, bgp_master, bm
/* clang-format on */
@@ -235,6 +236,7 @@ static int bgp_process_reads(struct thread *thread)
stream_set_endp(pkt, pktsize);
frr_with_mutex(&peer->io_mtx) {
+ tracepoint(frr_bgp, packet_read, peer, pkt);
stream_fifo_push(peer->ibuf, pkt);
}