Add section for Trace Analysis Instruction Count A few one liners to save time for common analysis types. Change-Id: I0f1647943eef2e5373b1dd2751a7ca0728ce0da4
diff --git a/TraceGeneration.md b/TraceGeneration.md index 7ec5c64..e34c78a 100644 --- a/TraceGeneration.md +++ b/TraceGeneration.md
@@ -1,6 +1,6 @@ # Trace Generation -Methods available in the Shodan repo for generating traces from Qemu, Spike, +Methods available in the Shodan repo for generating traces from Spike, and Renode. [TOC] @@ -127,4 +127,20 @@ at base addresses a and b (with 4 KiB alignment) ``` +## Trace Analysis +### Number of Instructions + +These commands assume the IMEM starts at 0x32000000, may need to s/0x32/0x80/ for 0x8000000 IMEM Starting address. + +#### Spike + +```sh +cat spike_trace_output.txt | awk '/_start/,/_finish/' | grep "0: 0x32" | wc -l +``` + +#### Renode + +```sh +renode_trace_output.txt | wc -l +```