extend script coverage profiling to track whether conditionals evaluate to true/false

This commit is contained in:
Vern Paxson 2025-06-25 13:12:34 -07:00
parent d3593e0489
commit 43eb9863ab
7 changed files with 89 additions and 38 deletions

View file

@ -1,3 +1,4 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
1 ./profiling-test1.zeek, line 2 print new conn;
1 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
1 ./profiling-test1.zeek, line 2 CONDITIONAL
1 ./profiling-test1.zeek, line 4 print new conn;
1 ./profiling-test1.zeek, lines 3-4 event new_connection BODY

View file

@ -1,3 +1,4 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
2 ./profiling-test1.zeek, line 2 print new conn;
2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
2 ./profiling-test1.zeek, line 2 CONDITIONAL
2 ./profiling-test1.zeek, line 4 print new conn;
2 ./profiling-test1.zeek, lines 3-4 event new_connection BODY

View file

@ -1,5 +1,8 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
2 ./profiling-test1.zeek, line 2 print new conn;
2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
1 ./profiling-test2.zeek, line 2 print new conn;
1 ./profiling-test2.zeek, lines 1-2 event new_connection BODY
2 ./profiling-test1.zeek, line 2 CONDITIONAL
2 ./profiling-test1.zeek, line 4 print new conn;
2 ./profiling-test1.zeek, lines 3-4 event new_connection BODY
0 ./profiling-test2.zeek, line 1 CONDITIONAL
1 ./profiling-test2.zeek, line 2 CONDITIONAL
1 ./profiling-test2.zeek, line 4 print new conn;
1 ./profiling-test2.zeek, lines 3-4 event new_connection BODY