[0/2] Refactor Logging Infrastructure#485
Open
yaakov-stein wants to merge 2 commits intofacebook:mainfrom
Open
[0/2] Refactor Logging Infrastructure#485yaakov-stein wants to merge 2 commits intofacebook:mainfrom
yaakov-stein wants to merge 2 commits intofacebook:mainfrom
Conversation
Claude review of PR #485 (bbb165c)Suggestions
Nits
|
CGROUP_SOCK_ADDR Logging] Refactor Log Infrastructure
2bb9a67 to
c911410
Compare
c911410 to
7aeeab0
Compare
yaakov-stein
commented
Mar 27, 2026
7aeeab0 to
4a18e6d
Compare
4a18e6d to
4c82f48
Compare
4c82f48 to
fe77c33
Compare
5c7c805 to
61e87f4
Compare
61e87f4 to
3634fd4
Compare
yaakov-stein
commented
Mar 29, 2026
CGROUP_SOCK_ADDR Logging] Refactor Log Infrastructure3634fd4 to
12b8bcf
Compare
qdeslandes
requested changes
Mar 30, 2026
3a1fe85 to
ddb6fb5
Compare
ddb6fb5 to
a7bc7c5
Compare
qdeslandes
requested changes
Apr 1, 2026
a7bc7c5 to
ed6e84f
Compare
Rename the packet logging ELF stub from `log` to `pkt_log` to establish naming symmetry with the upcoming `sock_log` stub for socket-based hooks.
Restructure bf_log as a tagged union with packet and socket address variants, discriminated by bf_log_type.
ed6e84f to
bbb165c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack:
CGROUP_SOCK_ADDRLogging Infrastructure #491Summary
This sets the stage for adding logging support for
CGROUP_SOCK_ADDR. The first step is renaming the logging infrastructure in a way that isn't packet-specific (or making it clear that certain parts are packet-specific and naming accordingly), and adding aunionthat allows us to add the necessary fields tobf_logto support this change.No functional change (besides the
bf_log_typeenum helper methods).