-
Notifications
You must be signed in to change notification settings - Fork 0
feat: S21.01 build-time tunables mechanism via SOLIDSYSLOG_MAX_MESSAGE_SIZE #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
2d71e4b
feat: S21.01 build-time tunables mechanism via SOLIDSYSLOG_MAX_MESSAG…
DavidCozens 95aa232
fix: IWYU umbrella-header pragmas + carry generated tunables.py as BD…
DavidCozens 2515aea
fix: drop unused SolidSyslog.h from BlockStore.h + add tunable-overri…
DavidCozens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Auto-generated by CMake from Bdd/features/steps/solidsyslog_tunables.py.in. | ||
| # Mirrors the build-time tunable values used in CMakeLists.txt and parsed | ||
| # from Core/Interface/SolidSyslogTunablesDefaults.h (or the user-supplied | ||
| # override file if SOLIDSYSLOG_USER_TUNABLES_FILE is set). Reconfigure CMake | ||
| # to refresh. Do not edit; do not commit (see .gitignore). | ||
|
|
||
| SOLIDSYSLOG_MAX_MESSAGE_SIZE = @SOLIDSYSLOG_BDD_MAX_MESSAGE_SIZE@ |
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #ifndef SOLIDSYSLOG_TUNABLES_H | ||
| #define SOLIDSYSLOG_TUNABLES_H | ||
|
|
||
| #if defined(SOLIDSYSLOG_USER_TUNABLES_FILE) | ||
| /* cppcheck-suppress preprocessorErrorDirective -- macro expands to a header path supplied via -D at build time; the #if guard makes it active only then. */ | ||
| #include SOLIDSYSLOG_USER_TUNABLES_FILE | ||
| #endif | ||
| #include "SolidSyslogTunablesDefaults.h" // IWYU pragma: export | ||
|
|
||
| #endif /* SOLIDSYSLOG_TUNABLES_H */ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #ifndef SOLIDSYSLOG_TUNABLES_DEFAULTS_H | ||
| #define SOLIDSYSLOG_TUNABLES_DEFAULTS_H | ||
|
|
||
| // IWYU pragma: private, include "SolidSyslogTunables.h" | ||
| // Defaults are reached through the SolidSyslogTunables.h umbrella so the optional | ||
| // SOLIDSYSLOG_USER_TUNABLES_FILE override gets a chance to win first. | ||
|
|
||
| /* | ||
| * Maximum bytes the library will format for a single syslog message. | ||
| * | ||
| * Caps the per-Log Formatter buffer (stack-allocated inside SolidSyslog_Log), | ||
| * the FileStore record size, and the minimum BlockStore block size. Per | ||
| * RFC 5424 section 6.1, receivers SHOULD accept up to 2048 bytes; transports | ||
| * may impose lower limits beyond which truncation kicks in. Lower values save | ||
| * stack and store footprint; higher values reduce truncation. | ||
| * | ||
| * Floor: smallest size that can hold a meaningful RFC 5424 security event. | ||
| * A legal all-NILVALUE message is 16 bytes; this allows enough headroom | ||
| * for a real PRI, hostname, MSGID, and short payload. | ||
| * Sub-floor values rejected at compile time. | ||
| */ | ||
| #ifndef SOLIDSYSLOG_MAX_MESSAGE_SIZE | ||
| /* NOLINTNEXTLINE(cppcoreguidelines-macro-usage) -- macro form required for preprocessor visibility (floor #if) and C array-size const-expr. */ | ||
| #define SOLIDSYSLOG_MAX_MESSAGE_SIZE 2048 /* RFC 5424 section 6.1 SHOULD value */ | ||
| #endif | ||
|
|
||
| #if SOLIDSYSLOG_MAX_MESSAGE_SIZE < 64 | ||
| #error "SOLIDSYSLOG_MAX_MESSAGE_SIZE must be >= 64" | ||
| #endif | ||
|
|
||
| #endif /* SOLIDSYSLOG_TUNABLES_DEFAULTS_H */ |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.