whamm 0.1.0

A framework for 'Wasm Application Monitoring and Manipulation'
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * This will perform a synchronous fault in Dfinity (return non-zero on call_perform).
 * NOTE: This will instrument and fail EVERY call_perform as there is no predicate on
 *       the target canister, to add granularity, another probe on call_new will need
 *       to be added to collect call site/target canister info.
 *       See file: `dfinity_sync-with-pred.d`
 */
wasm:opcode:call:alt /
    target_fn_type == "import" &&
    target_imp_module == "ic0" &&
    target_fn_name == "call_perform"
/ {
    alt_call_by_name("instr_inject_synchronous_fault");
}