Commit graph

17337 commits

Author SHA1 Message Date
Vern Paxson
4cafacf90b fix ZAM "cat" of doubles/times to include trailing ".0" per normal BiF behavior 2024-03-28 16:43:06 -07:00
Tim Wojtulewicz
00e9306ac1 CI: Specify the xcode version of the macOS Sonoma instance 2024-03-28 12:45:39 -07:00
Christian Kreibich
a928bd98a2 Merge branch 'topic/christian/zeek-lib-fix'
* topic/christian/zeek-lib-fix:
  Remove vestigial Conan bit in CMakeLists.txt
  When configuring Spicy, be prepated for zeek_lib or zeek_exe targets.
  Fix a typo in CMakeLists.txt when building Zeek as a library
2024-03-28 11:11:30 -07:00
Christian Kreibich
250d913dda Remove vestigial Conan bit in CMakeLists.txt
This is no longer required since we switched Conan to vcpkg a while back.
2024-03-27 16:50:08 -07:00
Christian Kreibich
602b1f88fb When configuring Spicy, be prepated for zeek_lib or zeek_exe targets.
This avoids a configuration error where zeek_exe is not defined (i.e. when
building (only) as a library). It anticipates building both the executable and
the library, which we used to do when using Conan but currently don't.
2024-03-27 16:49:07 -07:00
Christian Kreibich
e1ba20a878 Fix a typo in CMakeLists.txt when building Zeek as a library
This caused an error at configuration time since zeek_lie isn't a thing.
2024-03-27 16:12:10 -07:00
Robin Sommer
c4499d8552
Merge remote-tracking branch 'origin/topic/robin/bump-spicy'
* origin/topic/robin/bump-spicy:
  Bump Spicy to current `main`.
2024-03-25 11:26:02 +01:00
Robin Sommer
a51e823bc0
Bump Spicy to current main. 2024-03-25 11:09:30 +01:00
Tim Wojtulewicz
86d1812d49 Merge remote-tracking branch 'origin/topic/vern/fine-grained-ZAM-profiling'
* origin/topic/vern/fine-grained-ZAM-profiling:
  tie into updates to gen-zam
  ZAM documentation updated to reflect finer-grained profiling
  ZAM-specific BTest baseline changes for tweak to how ZAM bodies print
  BTest baseline changes for tweak to how ZAM bodies print
  ZAM execution changes to support richer profiling
  use richer block-aware location information for ZAM instructions
  better isolation of ZAM instruction elements hooks for tracking extended ZAM profiling location
  framework for --enable-ZAM-profiling configuration profiles go to zprof.log rather than stdout
  ZAM classes in support of finer-grained profiling
  refined ZAM function profiling to include (correct) statement line number blocks
  avoid potentially expensive mallinfo() call if result won't be used
2024-03-19 14:39:38 -07:00
Vern Paxson
ecf42e11c7 tie into updates to gen-zam 2024-03-19 10:59:49 -07:00
Vern Paxson
593355cf2c ZAM documentation updated to reflect finer-grained profiling 2024-03-19 10:59:49 -07:00
Vern Paxson
0538c68221 ZAM-specific BTest baseline changes for tweak to how ZAM bodies print 2024-03-19 10:59:49 -07:00
Vern Paxson
378627448d BTest baseline changes for tweak to how ZAM bodies print 2024-03-19 10:59:49 -07:00
Vern Paxson
c29db63fdd ZAM execution changes to support richer profiling 2024-03-19 10:59:49 -07:00
Vern Paxson
c8d15f1eaa use richer block-aware location information for ZAM instructions 2024-03-19 10:59:49 -07:00
Vern Paxson
9f9f01580f better isolation of ZAM instruction elements
hooks for tracking extended ZAM profiling location
2024-03-19 10:59:49 -07:00
Vern Paxson
dc376953fa framework for --enable-ZAM-profiling configuration
profiles go to zprof.log rather than stdout
2024-03-19 10:59:49 -07:00
Vern Paxson
8d762eea54 ZAM classes in support of finer-grained profiling 2024-03-19 10:59:49 -07:00
Vern Paxson
037f76e384 refined ZAM function profiling to include (correct) statement line number blocks 2024-03-19 10:59:49 -07:00
Vern Paxson
f88862f6ce avoid potentially expensive mallinfo() call if result won't be used 2024-03-19 10:59:49 -07:00
Tim Wojtulewicz
5402f22d48 Merge remote-tracking branch 'origin/topic/timw/fix-std-function-stmt'
* origin/topic/timw/fix-std-function-stmt:
  Remove variant from StdFunctionStmt
2024-03-19 10:59:31 -07:00
Tim Wojtulewicz
9de1dd16d5 Remove variant from StdFunctionStmt
The variant ended up conflicting with std::bind, which resulted in failures
on the btest invoking it. Change back to a single function that takes a
flow, and default it to a value in Exec.
2024-03-19 09:07:45 -07:00
Tim Wojtulewicz
8bfe32e931 Merge remote-tracking branch 'origin/topic/timw/std-function-event-handler'
* origin/topic/timw/std-function-event-handler:
  Add a method to register an event handler to a std::function via C++
2024-03-18 16:38:14 -07:00
Tim Wojtulewicz
39890fda5e Add a method to register an event handler to a std::function via C++ 2024-03-18 16:36:25 -07:00
Tim Wojtulewicz
aac723cfe5 Merge remote-tracking branch 'origin/topic/neverlord/broker-bump'
* origin/topic/neverlord/broker-bump:
  Update Broker submodule
2024-03-18 16:16:18 -07:00
Dominik Charousset
015fddd8a1 Update Broker submodule 2024-03-18 15:39:48 -07:00
Arne Welzel
fe91b7f51f Merge remote-tracking branch 'origin/topic/awelzel/remove-superflous-aws-ecr-username'
* origin/topic/awelzel/remove-superflous-aws-ecr-username:
  cirrus: Remove misleading and always empty AWS_ECR_USERNAME
2024-03-18 10:59:21 +01:00
Arne Welzel
bbeb1bf3d9 cirrus: Remove misleading and always empty AWS_ECR_USERNAME 2024-03-18 10:46:59 +01:00
Arne Welzel
a45489de90 Merge remote-tracking branch 'origin/topic/awelzel/3442-evt-port-deprecation'
* origin/topic/awelzel/3442-evt-port-deprecation:
  btest/spicy: Remove most port usages
  spicy: Deprecate port/ports in .evt files
2024-03-18 10:07:54 +01:00
Arne Welzel
f83a1e9109 Merge remote-tracking branch 'origin/topic/awelzel/generate-docs-spicy-pygments-use-cached'
* origin/topic/awelzel/generate-docs-spicy-pygments-use-cached:
  Update doc submodule
2024-03-18 09:55:07 +01:00
Arne Welzel
9bd7c5751a Update doc submodule
For spicy-pygments.py sync.
2024-03-18 09:40:30 +01:00
Arne Welzel
766ed8ab82 github/generate-docs: Only commit if there are staged changes
git diff-index by default includes staged and non-staged changes.
The autogen-spicy-docs script copies over spicy-pygments.py from
the Spicy tree into doc/ext.

The job would attempt to commit scripts and script-reference even
though nothing actually is staged when a spurious diff existed in
ext/spicy-pygments.py. Guard from this by using --cached.
2024-03-18 09:35:28 +01:00
Robin Sommer
139562eb8d
Merge remote-tracking branch 'origin/topic/robin/binary-build-fix'
* origin/topic/robin/binary-build-fix:
  Add a CI test with the same options as we used for binary builds.
  Fix binary build of `spicyz`.
2024-03-16 11:15:33 +01:00
Robin Sommer
c6193658a2
Merge remote-tracking branch 'origin/topic/robin/bump-spicy-raw-pointers'
* origin/topic/robin/bump-spicy-raw-pointers:
  Bump Spicy to latest version reworking AST memory management.
2024-03-16 11:14:12 +01:00
Robin Sommer
977d9190f1
Bump Spicy to latest version reworking AST memory management.
Includes the necessary Zeek-side changes.

Goes with https://github.com/zeek/spicy/pull/1691.
2024-03-16 10:15:49 +01:00
Christian Kreibich
c3caa4f6c3 Merge remote-tracking branch 'origin/topic/timw/ci-remove-centos7-debian10'
* origin/topic/timw/ci-remove-centos7-debian10:
  CI: Remove CentOS 7 and Debian 10 builds
2024-03-15 13:15:16 -07:00
Arne Welzel
62928ddb61 btest/spicy: Remove most port usages 2024-03-15 17:36:11 +01:00
Arne Welzel
54f9b76f8e spicy: Deprecate port/ports in .evt files 2024-03-15 17:36:11 +01:00
Arne Welzel
d51613a7b2 Merge remote-tracking branch 'origin/topic/awelzel/fix-cluster-testing-docker-compose-v2'
* origin/topic/awelzel/fix-cluster-testing-docker-compose-v2:
  testing/external/cluster: Switch to docker-compose v2
2024-03-15 13:37:20 +01:00
Arne Welzel
de7292e5f0 testing/external/cluster: Switch to docker-compose v2
The Python docker-compose executable in the docker_builder image is not
functional anymore (TypeError: kwargs_from_env() got an unexpected
keyword argument 'ssl_version').

docker-compose v1 has been sun-setted for quite some time. Do the
minimal to switch to docker compose v2.
2024-03-15 13:19:03 +01:00
Johanna Amann
2745476d13
Add a CI test with the same options as we used for binary builds.
We already do have a test that check static builds, but none that tests
the exact same build flags we use for binary builds on OBS. This commit
fixes this oversight.

Related to GH-3647
2024-03-15 09:50:57 +01:00
Tim Wojtulewicz
17ad726321 CI: Remove CentOS 7 and Debian 10 builds 2024-03-14 13:28:54 -07:00
Robin Sommer
64761527ce
Fix binary build of spicyz.
We need to link against the Spicy toolchain's object libraries but
were linking against static libraries instead.

Closes #3647.
2024-03-14 18:24:51 +01:00
Tim Wojtulewicz
6fa34c202f Merge remote-tracking branch 'origin/topic/christian/news-contributors'
* origin/topic/christian/news-contributors:
  Add community contributions for the 6.2 timeframe to NEWS. [skip ci]
2024-03-13 10:17:59 -07:00
Christian Kreibich
af83f1f1a3 Add community contributions for the 6.2 timeframe to NEWS. [skip ci] 2024-03-12 20:19:52 -07:00
zeek-bot
672eb0dc2c Update doc submodule [nomail] [skip ci] 2024-03-13 00:10:12 +00:00
Arne Welzel
2d1588277e Merge remote-tracking branch 'origin/topic/awelzel/3640-void-size-expr-assign-stmt'
* origin/topic/awelzel/3640-void-size-expr-assign-stmt:
  Expr: Handle TYPE_VOID in SizeExpr and AssignExpr::Typecheck()
2024-03-12 10:31:46 +01:00
Arne Welzel
bbc7272a42 Merge remote-tracking branch 'origin/topic/vern/script-opt-maint.Mar24'
* origin/topic/vern/script-opt-maint.Mar24:
  AST location fixes for -O gen-C++
  script optimization support for clearing tables/vectors using "delete"
  fix for ZAM printing of instructions that modify slots other than slot 1
  fixed bug where appending an empty vector to a vector-of-vector's had no effect
2024-03-08 19:10:13 +01:00
Vern Paxson
99f43d3c8b AST location fixes for -O gen-C++ 2024-03-08 19:09:46 +01:00
Vern Paxson
74d36eb759 script optimization support for clearing tables/vectors using "delete" 2024-03-08 19:09:46 +01:00