code wiki / _hdl_build / nx_apm_dashboard_gate.nx

nx_apm_dashboard_gate.nx

buildroot/runtime/_hdl_build/nx_apm_dashboard_gate.nx

5977 B108 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic apm
docsdependenciesstructsconstsfunctions

about

nx_apm_dashboard_gate.nx -- SOVEREIGN gate for the APM dashboard renderer (seg-store edition, NO tsv). Writes synthetic seg-store records (one GREEN daemon, one RED daemon w/ timeouts, one ARTIFACT daemon w/ slowclose>0 but fast ttfb) to an ISOLATED test store, runs nx_apm_dashboard on it, proves the HTML: T1 all daemons rendered as cards T2 DETECTION -- the RED daemon appears in Incidents (<b>name</b>) T3 NEG-CONTROL -- the GREEN daemon is NOT in Incidents T4 LIAR-KILL -- the ARTIFACT daemon (fast ttfb, slow close) is NOT in Incidents T5 the ARTIFACT daemon shows its slowclose info badge Requires /tmp/nx_apm_dashboard.sov.elf built first. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_apm_dashboard.nx nx_gate_verdict.nx nx_apm_dashboard_gate.nx

imports: nx_syscalls.nxnx_apm_dashboard.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mkdir gd_rec sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ad_bs ad_bn sys_mmap ↻ sys_openat_wr sys_write ↻ sys_close sys_mmap ↻ ad_bs ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ sys_fork sys_execve sys_exit ↻ sys_wait4 ad_read_small sys_openat_rd sys_read sys_close ↻ gd_uw sys_write ↻ gd_contains

structs

none

consts

14const GD_ELF: *u8 = "/tmp/nx_apm_dashboard.sov.elf"
15const GD_STORE: *u8 = "/tmp/ad_store"
16const GD_HTML: *u8 = "/tmp/ad_test.html"

functions

18func gd_uw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
19func gd_wn(v: i64) -> i64 { let b: *u8 = sys_mmap(24); let e: i64 = ad_bn(b, 0, v); sys_write(1, b, e); return 0 }
called by 1: main calls 3: sys_mmapad_bnsys_write
20func gd_contains(hay: *u8, hayn: i64, needle: *u8) -> i64
called by 1: main calls 1: ad_slen
32func gd_rec(label: *u8, port: i64, conc: i64, oks: i64, p50: i64, mx: i64, to: i64, slow: i64) -> i64
50func main(argc: i64, argv: *i64) -> i64