Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stack trace macros to all functions.
Low-level functions only include stack trace in test builds while higher-level functions ship with stack trace built-in. Stack traces include all parameters passed to the function but production builds only create the parameter list when the log level is set high enough, i.e. debug or trace depending on the function.
- Loading branch information
Showing
141 changed files
with
6,482 additions
and
1,172 deletions.
There are no files selected for viewing
This file contains 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 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 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,46 @@ | ||
#################################################################################################################################### | ||
# Parameters used by LibC builds | ||
#################################################################################################################################### | ||
package pgBackRestLibC::BuildParam; | ||
|
||
use strict; | ||
use warnings FATAL => qw(all); | ||
use Carp qw(confess); | ||
use English '-no_match_vars'; | ||
|
||
use Exporter qw(import); | ||
our @EXPORT = qw(); | ||
|
||
#################################################################################################################################### | ||
# All CC params used for a debug build | ||
#################################################################################################################################### | ||
sub buildParamCCDebug | ||
{ | ||
return qw( | ||
-Wfatal-errors -Wall -Wextra -Wwrite-strings -Wno-clobbered -Wno-missing-field-initializers | ||
-o $@ | ||
-std=c99 | ||
-D_FILE_OFFSET_BITS=64 | ||
$(CFLAGS)); | ||
} | ||
|
||
push @EXPORT, qw(buildParamCCDebug); | ||
|
||
#################################################################################################################################### | ||
# All CC params used for a production build | ||
#################################################################################################################################### | ||
sub buildParamCCAll | ||
{ | ||
my @stryParams = buildParamCCDebug; | ||
|
||
push(@stryParams, qw( | ||
-DNDEBUG | ||
-funroll-loops | ||
-ftree-vectorize)); | ||
|
||
return @stryParams; | ||
} | ||
|
||
push @EXPORT, qw(buildParamCCAll); | ||
|
||
1; |
This file contains 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 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 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 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 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 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.