code wiki / _hdl_build / nx_chacha_tput_probe.nx

nx_chacha_tput_probe.nx

buildroot/runtime/_hdl_build/nx_chacha_tput_probe.nx

1726 B46 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_chacha_tput_probe.nx -- decisive diagnostic for G-PART-NET: measure Nishi ChaCha20 throughput in isolation (16 MiB), to tell whether the ~1.9MB/s room bottleneck is the CIPHER or the relay/queueing path. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_chacha20.nx nx_chacha_tput_probe.nx

imports: nx_syscalls.nxnx_chacha20.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_now_us sys_mmap ↻ sys_clock_gettime_mono chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm_core store_u32_le p_w sys_write p_wn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

6const K_MAGIC_4096: i64 = 4096
7const K_MAGIC_16777216: i64 = 16777216

functions

9func p_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
10func p_wn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
24func main() -> i64