summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.h
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-12-27 21:07:57 +0100
committerGitHub <noreply@github.com>2022-12-27 21:07:57 +0100
commit9d6ac4fc9ebda2ae7a185da0459f51102495a21c (patch)
tree377435cb0addf7c747a25add4e178e4ad1f5c491 /bgpd/bgp_route.h
parentMerge pull request #12558 from donaldsharp/bgp_static_route_mem_leak (diff)
parentbgpd: Add lttng tracepoints for bgp_path_info_add/free (diff)
downloadfrr-9d6ac4fc9ebda2ae7a185da0459f51102495a21c.tar.xz
frr-9d6ac4fc9ebda2ae7a185da0459f51102495a21c.zip
Merge pull request #12562 from opensourcerouting/fix/add_frrtrace_points_for_peer_lock_unlock
bgpd: A bit more tracepoints for lttng
Diffstat (limited to 'bgpd/bgp_route.h')
-rw-r--r--bgpd/bgp_route.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h
index 152a8a0a7..e16e07702 100644
--- a/bgpd/bgp_route.h
+++ b/bgpd/bgp_route.h
@@ -883,4 +883,12 @@ bgp_path_selection_reason2str(enum bgp_path_selection_reason reason);
extern bool bgp_addpath_encode_rx(struct peer *peer, afi_t afi, safi_t safi);
extern const struct prefix_rd *bgp_rd_from_dest(const struct bgp_dest *dest,
safi_t safi);
+extern void bgp_path_info_free_with_caller(const char *caller,
+ struct bgp_path_info *path);
+extern void bgp_path_info_add_with_caller(const char *caller,
+ struct bgp_dest *dest,
+ struct bgp_path_info *pi);
+#define bgp_path_info_add(A, B) \
+ bgp_path_info_add_with_caller(__func__, (A), (B))
+#define bgp_path_info_free(B) bgp_path_info_free_with_caller(__func__, (B))
#endif /* _QUAGGA_BGP_ROUTE_H */