@@ -67,6 +67,7 @@ const CoverageMap = struct {
6767 /// Elements are indexes into `source_locations` pointing to the unit tests that are being fuzz tested.
6868 entry_points : std .ArrayListUnmanaged (u32 ),
6969 start_timestamp : i64 ,
70+ start_n_runs : u64 ,
7071
7172 fn deinit (cm : * CoverageMap , gpa : Allocator ) void {
7273 std .posix .munmap (cm .mapped_memory );
@@ -318,6 +319,7 @@ pub fn sendUpdate(
318319 .source_locations_len = @intCast (coverage_map .source_locations .len ),
319320 .string_bytes_len = @intCast (coverage_map .coverage .string_bytes .items .len ),
320321 .start_timestamp = coverage_map .start_timestamp ,
322+ .start_n_runs = coverage_map .start_n_runs ,
321323 };
322324 var iovecs : [5 ][]const u8 = .{
323325 @ptrCast (& header ),
@@ -399,6 +401,7 @@ fn prepareTables(fuzz: *Fuzz, run_step: *Step.Run, coverage_id: u64) error{ OutO
399401 .source_locations = undefined , // populated below
400402 .entry_points = .{},
401403 .start_timestamp = ws .now (),
404+ .start_n_runs = undefined , // populated below
402405 };
403406 errdefer gop .value_ptr .coverage .deinit (fuzz .gpa );
404407
@@ -468,6 +471,7 @@ fn prepareTables(fuzz: *Fuzz, run_step: *Step.Run, coverage_id: u64) error{ OutO
468471
469472 for (sorted_pcs .items (.index ), sorted_pcs .items (.sl )) | i , sl | source_locations [i ] = sl ;
470473 gop .value_ptr .source_locations = source_locations ;
474+ gop .value_ptr .start_n_runs = header .n_runs ;
471475
472476 ws .notifyUpdate ();
473477}
0 commit comments