Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/heimdall

runtime/graph-events/run-current-cost.sh

#!/bin/bash
set -eu
: "${HEIMDALL_TEST_VM:?disposable VM only}"
sha256sum guest-cost.sh benchmark-fixture.py gate object.bpf abcdf abcdf.exec.nodes.arrow abcdf.exec.edges.arrow
export HEIMDALL_FIXTURE_CGROUP=1
unset HEIMDALL_FIXTURE_WRONG_CGROUP
python3 ./benchmark-fixture.py ./gate ./object.bpf ./abcdf.exec.nodes.arrow ./abcdf.exec.edges.arrow 2ede0b97d80e5a0f93b6c18c1678cbbbba07752cb24940bbc7078ee640d14f7e ./abcdf d97d86d81f93be0ea941b46741c76698123c6452bec21bec0bcd82e1ab69f8ac ./cost --samples 15 --extra-arguments 20000
python3 - <<'CHECK'
import json
from pathlib import Path
rs=[json.loads(p.read_text()) for p in Path('cost').glob('*.json') if p.name!='summary.json']
assert len(rs)==33, len(rs)
guards=set()
for r in rs:
 assert r['cgroup_id']>0 and r['selected_cgroup_id']==r['cgroup_id'], r
 guards.add(r['clone_guard_sha256'])
assert len(guards)==1 and None not in guards
print('PASS cgroup selection and identical clone guard across all 33 raw reports',guards)
CHECK