diff options
author | Russ White <russ@riw.us> | 2022-12-27 21:07:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 21:07:57 +0100 |
commit | 9d6ac4fc9ebda2ae7a185da0459f51102495a21c (patch) | |
tree | 377435cb0addf7c747a25add4e178e4ad1f5c491 /bgpd/bgp_route.c | |
parent | Merge pull request #12558 from donaldsharp/bgp_static_route_mem_leak (diff) | |
parent | bgpd: Add lttng tracepoints for bgp_path_info_add/free (diff) | |
download | frr-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.c')
-rw-r--r-- | bgpd/bgp_route.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f4b01ab27..e478abc44 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -277,8 +277,10 @@ struct bgp_path_info_extra *bgp_path_info_extra_get(struct bgp_path_info *pi) } /* Free bgp route information. */ -static void bgp_path_info_free(struct bgp_path_info *path) +void bgp_path_info_free_with_caller(const char *name, + struct bgp_path_info *path) { + frrtrace(2, frr_bgp, bgp_path_info_free, path, name); bgp_attr_unintern(&path->attr); bgp_unlink_nexthop(path); @@ -389,8 +391,10 @@ static int bgp_dest_set_defer_flag(struct bgp_dest *dest, bool delete) return -1; } -void bgp_path_info_add(struct bgp_dest *dest, struct bgp_path_info *pi) +void bgp_path_info_add_with_caller(const char *name, struct bgp_dest *dest, + struct bgp_path_info *pi) { + frrtrace(2, frr_bgp, bgp_path_info_add, dest, pi, name); struct bgp_path_info *top; top = bgp_dest_get_bgp_path_info(dest); |