tum-i4 / self-checksumming

10 stars 6 forks source link

dump stats #31

Closed mr-ma closed 6 years ago

mr-ma commented 6 years ago

Add a -stats <fileName> flag to dump a JSON file encompassing the following stat numbers:

Number of protected instructions (i.e. instructions whose value is incorporated into hashes Number of protected guard instructions (only applicable when composed with SC) Number of hash asserts JSON Schema:

num_protected_inst
num_protected_guard_inst
num_assert_inst
mr-ma commented 6 years ago

Call to guard carry a guard metadata, which could be used by OH to calculate NumberOfProtectedGuardInstruction