Skip to content

Add ASAN build rules#10

Open
croos12 wants to merge 7 commits intomasterfrom
croos-asan-build
Open

Add ASAN build rules#10
croos12 wants to merge 7 commits intomasterfrom
croos-asan-build

Conversation

@croos12
Copy link
Owner

@croos12 croos12 commented Mar 6, 2026

Adds a separate ASAN syncd build package to be created as the target when DEB_BUILD_PROFILES=asan. This is required for Clobbering of ASAN after a standard swss build on the same build machine.

Signed-off-by: Connor Roos <croos@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Debian packaging variant intended for ASAN-instrumented builds of syncd, and also updates VPP virtual-switch code paths (ACL binding behavior and VPP stats dump cleanup) within vslib.

Changes:

  • Add a new syncd-asan binary package and adjust dh_install behavior based on DEB_BUILD_PROFILES=asan.
  • Fix VPP stats dump cleanup paths to free VPP vectors and disconnect on early-return cases.
  • Refactor VPP ACL handling: introduce a placeholder “empty ACL” for tables and a shared default permit ACL, plus change table-group member bind ordering based on priority.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
vslib/vpp/vppxlate/SaiVppStats.c Ensures VPP stats query resources (patterns, dir, connection) are released on failure paths.
vslib/vpp/SwitchVppAcl.cpp Introduces placeholder ACL creation and shared default ACL logic; changes group-member update flow and binding order.
vslib/vpp/SwitchVpp.h Adds state for shared default ACL (m_acl_default_swindex, m_acl_default_created) and renames the helper API.
debian/rules Switches dh_install exclusions based on whether asan profile is active.
debian/control Adds syncd-asan package stanza and adjusts profiles/conflicts for syncd.

@croos12 croos12 changed the title Add asan build rules Add ASAN build rules Mar 6, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Signed-off-by: Connor Roos <croos@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Signed-off-by: Connor Roos <croos@nvidia.com>
Signed-off-by: Connor Roos <croos@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Signed-off-by: Connor Roos <croos@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines +17 to +20
Package: syncd-asan
Architecture: any
Build-Profiles: <syncd asan !vs !rpc>
Depends: ${misc:Pre-Depends}
Comment on lines +48 to +50
Section: debug
Priority: extra
Depends: syncd (= ${binary:Version})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants