summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-09-29 00:13:27 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-23 21:13:51 +0200
commitc7bb4f006b22592d3c57bd7d84d521485c278567 (patch)
treed408a8338e0c47173277f05267f73e02d53ffaab /bgpd/bgp_io.c
parentlib: add trace.h, frrtrace(), support for USDT (diff)
downloadfrr-c7bb4f006b22592d3c57bd7d84d521485c278567.tar.xz
frr-c7bb4f006b22592d3c57bd7d84d521485c278567.zip
lib, bgpd: convert lttng tracepoints to frrtrace()
- tracepoint() -> frrtrace() - tracelog() -> frrtracelog() - tracepoint_enabled() -> frrtrace_enabled() Also removes copypasta'd #ifdefs for those LTTng macros, those are handled in lib/trace.h Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r--bgpd/bgp_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 65b388e61..0997fdba9 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -39,7 +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/bgp_trace.h" // for frrtraces
#include "bgpd/bgpd.h" // for peer, BGP_MARKER_SIZE, bgp_master, bm
/* clang-format on */
@@ -236,7 +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);
+ frrtrace(2, frr_bgp, packet_read, peer, pkt);
stream_fifo_push(peer->ibuf, pkt);
}