forked from Sovereign-Labs/sovereign-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify risc0 tracer util to print function stack to enable better deb…
…ugging (Sovereign-Labs#711) * stack analysis * fix issues * some more changes * minor changes --------- Co-authored-by: dubbelosix <dub@006.com>
- Loading branch information
1 parent
216fb16
commit 211b56f
Showing
4 changed files
with
149 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Directories and paths | ||
TRACER_DIR = ../../utils/zk-cycle-utils/tracer | ||
ELF_PATH_TRACER = ../../../examples/demo-prover/target/riscv-guest/riscv32im-risc0-zkvm-elf/release/rollup | ||
TRACE_PATH_TRACER = ../../../examples/demo-prover/host/rollup.trace | ||
|
||
# This allows you to pass additional flags when you call `make run-tracer`. | ||
# For example: `make run-tracer ADDITIONAL_FLAGS="--some-flag"` | ||
ADDITIONAL_FLAGS ?= | ||
|
||
.PHONY: generate-files run-tracer | ||
|
||
all: generate-files run-tracer | ||
|
||
generate-files: | ||
ROLLUP_TRACE=rollup.trace cargo bench --bench prover_bench --features bench | ||
|
||
run-tracer: | ||
@cd $(TRACER_DIR) && \ | ||
cargo run --release -- --no-raw-counts --rollup-elf $(ELF_PATH_TRACER) --rollup-trace $(TRACE_PATH_TRACER) $(ADDITIONAL_FLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters