code wiki / (root) / nx_trace_emit_test.nx

nx_trace_emit_test.nx

buildroot/runtime/nx_trace_emit_test.nx

3189 B80 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic trace
docsdependenciesstructsconstsfunctions

about

nx_trace_emit_test.nx -- span emission shape verification. Writes spans to a memfd-like buffer (fd 3 redirected by caller in real use; here we use the default fd=2 stderr so the qemu run produces visible output the smoke can scrape). The test focuses on API correctness: ids increment, kind validation, disable/enable.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_trace_emit.nx nx_trace_emit_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_trace_emit.nx

imported by: nobody (leaf or entry point)

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

main nx_trace_cfg_alloc sys_mmap nx_trace_mint_span_id nx_span_kind_is_valid nx_trace_set_fd nx_trace_emit_simple sys_mmap ↻ nx_trace_emit_span _trace_write_z sys_write strlen _trace_write_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ nx_trace_emit_one_attr sys_mmap ↻ nx_trace_emit_span ↻ sys_mmap ↻ nx_trace_emit_span ↻ nx_trace_disable nx_trace_enable

structs

none

consts

none

functions

13func main() -> nx_int