Skip to content

Commit adb1818

Browse files
committed
fuzz, backtest: add dump_elf_to_pb flag to backtest
1 parent 3674da1 commit adb1818

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/app/firedancer/topology.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ fd_topo_configure_tile( fd_topo_tile_t * tile,
10331033
tile->exec.dump_instr_to_pb = config->capture.dump_instr_to_pb;
10341034
tile->exec.dump_txn_to_pb = config->capture.dump_txn_to_pb;
10351035
tile->exec.dump_syscall_to_pb = config->capture.dump_syscall_to_pb;
1036+
tile->exec.dump_elf_to_pb = config->capture.dump_elf_to_pb;
10361037
} else if( FD_UNLIKELY( !strcmp( tile->name, "writer" ) ) ) {
10371038
tile->writer.funk_obj_id = fd_pod_query_ulong( config->topo.props, "funk", ULONG_MAX );
10381039
strncpy( tile->writer.solcap_capture, config->capture.solcap_capture, sizeof(tile->writer.solcap_capture) );

src/app/shared/fd_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ struct fd_config {
458458
ulong capture_start_slot;
459459
char dump_proto_dir[ PATH_MAX ];
460460
char solcap_capture[ PATH_MAX ];
461+
int dump_elf_to_pb;
461462
int dump_syscall_to_pb;
462463
int dump_instr_to_pb;
463464
int dump_txn_to_pb;

src/app/shared/fd_config_parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ fd_config_extract_pod( uchar * pod,
239239
CFG_POP ( ulong, capture.capture_start_slot );
240240
CFG_POP ( cstr, capture.solcap_capture );
241241
CFG_POP ( cstr, capture.dump_proto_dir );
242+
CFG_POP ( bool, capture.dump_elf_to_pb );
242243
CFG_POP ( bool, capture.dump_syscall_to_pb );
243244
CFG_POP ( bool, capture.dump_instr_to_pb );
244245
CFG_POP ( bool, capture.dump_txn_to_pb );

src/disco/topo/fd_topo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ struct fd_topo_tile {
348348
int dump_instr_to_pb;
349349
int dump_txn_to_pb;
350350
int dump_syscall_to_pb;
351+
int dump_elf_to_pb;
351352
} exec;
352353

353354
struct {

src/discof/exec/fd_exec_tile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ unprivileged_init( fd_topo_t * topo,
356356
ctx->capture_ctx->dump_instr_to_pb = tile->exec.dump_instr_to_pb;
357357
ctx->capture_ctx->dump_txn_to_pb = tile->exec.dump_txn_to_pb;
358358
ctx->capture_ctx->dump_syscall_to_pb = tile->exec.dump_syscall_to_pb;
359+
ctx->capture_ctx->dump_elf_to_pb = tile->exec.dump_elf_to_pb;
359360
} else {
360361
ctx->capture_ctx = NULL;
361362
}

0 commit comments

Comments
 (0)