Vern Paxson
403efd4052
updates to -O C++ user and maintenance documentation
2022-09-29 15:12:04 -07:00
Vern Paxson
0687959f1c
use dynamic rather than static initialization of globals for scripts compiled to C++
2022-09-29 15:11:05 -07:00
Vern Paxson
6ad28b37e6
safety checking for initializing scripts compiled to C++
2022-09-29 15:10:28 -07:00
Vern Paxson
5c21240daf
fixes for initializing scripts compiled to C++
2022-09-29 15:09:37 -07:00
Vern Paxson
1af905a14f
restructured tracking of initializations of globals for script compilation
2022-09-29 15:08:53 -07:00
Tim Wojtulewicz
f04f070d9f
Merge remote-tracking branch 'origin/topic/vern/cpp-maint-Sep22'
...
* origin/topic/vern/cpp-maint-Sep22:
oof more manual fixups
undo inadvertently committed tweak to test
update for btest only run in some environments
btest tweaks for recent changes
updates to notes for compile-to-C++ maintenance
newly-created btest files
baseline updates for -a cpp alternative (compile-to-C++)
tweak btest so it's recognized as a candidate for C++ compilation testing
split basic "int" btests into main part versus now-separate overflow part
fix deprecated "local" scoping in test scripts
annotated scripts to skip when testing compilation-to-C++
C++ script generation fix for lambdas that have identical bodies
fix for C++ scripts that refer to "opaque" types
C++ compilation support for 2-valued vector "for" loops
C++ compilation support for RE /s operator
run-time checking of vector operations for overflows and division-by-zero
error propagation fix to avoid a crash
2022-09-19 13:51:41 -07:00
Vern Paxson
eec733beae
updates to notes for compile-to-C++ maintenance
2022-09-16 16:53:42 -07:00
Vern Paxson
dbae112bdc
C++ script generation fix for lambdas that have identical bodies
2022-09-16 16:46:35 -07:00
Vern Paxson
7210225bba
fix for C++ scripts that refer to "opaque" types
2022-09-16 16:45:37 -07:00
Vern Paxson
a725cfa9e3
C++ compilation support for 2-valued vector "for" loops
2022-09-16 16:45:09 -07:00
Vern Paxson
7b8d92b4f6
C++ compilation support for RE /s operator
2022-09-16 16:44:00 -07:00
Vern Paxson
5c6801131f
run-time checking of vector operations for overflows and division-by-zero
2022-09-16 16:43:12 -07:00
Vern Paxson
048e524fbf
specialized ZAM operators for speeding up cat() operations
2022-09-16 09:45:05 -07:00
Vern Paxson
5fe4eb27a8
ZAM support for two-valued "for" loops over vectors
2022-09-16 09:40:39 -07:00
Vern Paxson
02cd773c51
make it non-fatal for optimized scripts to encounter an empty "for" body
2022-09-16 09:38:31 -07:00
Vern Paxson
ee28609e74
script optimization fix for new-style table constructors
2022-09-16 09:37:17 -07:00
Tim Wojtulewicz
2abc82722f
Fix a swath of AUTO_CAUSES_COPY issues reported by Coverity
2022-08-15 09:45:46 -07:00
Vern Paxson
7a41170a59
updates for gen-C++ maintenance, including skipping some inappropriate tests
2022-08-01 16:47:17 -07:00
Vern Paxson
1bbf345e46
gen-C++ support for vector bit-shift operations
2022-08-01 10:26:26 -07:00
Vern Paxson
f912ac06ff
make gen-C++ maintenance scripts directly executable
2022-07-31 11:31:01 -07:00
Vern Paxson
f535a7c3a7
ZAM support for bit-shifting
2022-07-30 18:33:57 -07:00
Vern Paxson
6185d1c389
ZAM fix for vector "in" operator
2022-07-30 18:17:13 -07:00
AmazingPP
f2bfa61fc6
Add bitshift operators
2022-07-21 11:12:30 +08:00
Tim Wojtulewicz
f624c18383
Deprecate bro_int_t and bro_uint_t
2022-07-12 12:01:23 -07:00
Tim Wojtulewicz
1226aa538a
Merge remote-tracking branch 'origin/topic/vern/zam-vector-cond-fix'
...
* origin/topic/vern/zam-vector-cond-fix:
Fix for ZAM optimization of '?' conditional with vector-valued result
2022-07-11 09:44:05 -07:00
Vern Paxson
0706e8869d
Fix for ZAM optimization of '?' conditional with vector-valued result
2022-07-07 13:08:28 -07:00
Tim Wojtulewicz
47e7fe2cd1
Convert Dictionary types to be templated classes
...
This has the fortunate side-effect of also making it so we can store
the value objects as typed pointers, instead of void*.
2022-07-05 13:33:34 -07:00
Tim Wojtulewicz
765a8535e0
Remove deprecated DESC_PORTABLE ODesc mode and ODesc::IsPortable()
2022-06-30 19:11:59 +00:00
Tim Wojtulewicz
9e953f50cb
Merge remote-tracking branch 'origin/topic/vern/remove-deprecated-closures'
...
* origin/topic/vern/remove-deprecated-closures:
removed deprecated capture-by-reference closures
2022-06-27 13:04:57 -07:00
Tim Wojtulewicz
7c4fd382d9
Code modernization: Convert from deprecated C standard library headers
2022-06-27 09:47:31 -07:00
Vern Paxson
5a0a88526e
removed deprecated capture-by-reference closures
2022-06-17 15:55:43 -07:00
Vern Paxson
a120bcd7d7
clearer messages for warning about unused functions
2022-05-27 14:35:52 -07:00
Tim Wojtulewicz
5ca0bb79c8
Fixes from review, post-rebase
2022-05-26 18:39:01 -07:00
Vern Paxson
9f05fe5bfa
code formatting and more btest updates
2022-05-26 18:15:48 -07:00
Vern Paxson
d9479c0502
--no-usage-warnings flag to suppress analysis
2022-05-26 17:39:15 -07:00
Vern Paxson
91f1ecd1ff
classes for evaluating function/hook/event usage
2022-05-26 17:38:38 -07:00
Vern Paxson
772169f8e0
low-level tidying
2022-05-26 17:01:10 -07:00
Tim Wojtulewicz
73273fc87b
Merge remote-tracking branch 'origin/topic/vern/ZAM-inlining'
...
* origin/topic/vern/ZAM-inlining:
speed up ZAM compilation by capping function size when inlining
2022-05-19 11:45:50 -07:00
Vern Paxson
7d00ce0082
speed up ZAM compilation by capping function size when inlining
2022-05-14 14:52:31 -07:00
Vern Paxson
702172079a
tweaks per reviewing feedback
2022-05-13 16:16:21 -07:00
Vern Paxson
a21d14fbd2
format shell scripts per style guide
2022-05-13 10:31:27 -07:00
Vern Paxson
08fbc7efb3
helper scripts for -O C++ maintenance
2022-05-12 14:09:35 -07:00
Vern Paxson
fb6725a9ce
"-O use-C++" now fails if no C++ bodies wound up being applicable
2022-05-12 14:08:54 -07:00
Vern Paxson
34b448ee7b
update environemnt variable names to match command-line arguments
2022-05-12 14:08:17 -07:00
Vern Paxson
56140046d3
final changes for -O C++ feature completeness, mainly "when" statement support
2022-05-12 14:07:36 -07:00
Vern Paxson
9ada7ac4e7
tracking of when statements/expressions occur in a "when" context
2022-05-12 13:45:45 -07:00
Tim Wojtulewicz
8b0263cb39
Merge remote-tracking branch 'origin/topic/vern/script-profiling'
...
* origin/topic/vern/script-profiling:
tidy up after generating profile
test suite updates for refined script coverage, use of new BiF to speed startup
fix for coverage reporting for functions that use "when" statements
new global_options() BiF to speed up startup, plus a micro-preen
hooks for new --profile-scripts option
classes for managing script profiles
address some holes in script coverage
fix for script coverage missing on-exit activity
memory management fixes for loggers
make curr_CPU_time() broadly available rather than just isolated to ZAM
2022-05-11 12:56:41 -07:00
Vern Paxson
41aee03c17
make curr_CPU_time() broadly available rather than just isolated to ZAM
2022-05-03 10:38:32 -07:00
Vern Paxson
7a9c6c476e
ZAM maintenance for recent changes and some newly exercised corner cases
2022-05-01 14:33:58 -07:00
Tim Wojtulewicz
e0ad92c9f4
Merge remote-tracking branch 'origin/topic/vern/ZAM-frame-opt'
...
* origin/topic/vern/ZAM-frame-opt:
reduce interpreter frames for compiled function bodies
2022-04-05 18:04:28 -07:00