nx_log.nx
buildroot/runtime/nx_log.nx
about
dependencies 1 imports · 32 importers
diagram shows first 10 each side; +0 more imports, +22 more importers in the complete lists below.
imports: syscalls.nx
imported by: _min2.nxnx_atomic_intrinsic_test.nxnx_chan_mpmc_test.nxnx_dot_simd_demo.nxnx_hw_simd_caps_test.nxnx_log_gate.nxnx_log_v2.nxnx_log_v2_test.nxnx_mutex_race_test.nxnx_net_chan_blob_test.nxnx_net_chan_test.nxnx_panic.nxnx_parallel_simd_reduce.nxnx_parallel_test.nxnx_pipeline_test.nxnx_remote_worker_test.nxnx_rpc_test.nxnx_simd_bench.nxnx_simd_i16x16_test.nxnx_simd_i32x8_test.nxnx_simd_i8x32_test.nxnx_simd_minmax_test.nxnx_simd_sat_test.nxnx_simd_usat_shift_test.nxnx_simd_vdot_test.nxnx_socket_pingpong_test.nxnx_sum_bench.nxnx_sum_bench_all.nxnx_task_graph_test.nxnx_thread_pool_test.nxnx_thread_spawn_test.nxnx_trace.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 74 | struct NxLogContext |
consts
| 47 | const NX_MAGIC_10000000: i64 = 10000000 |
| 51 | const NX_LOG_TRACE: i64 = 0 // ultra-verbose, per-instruction tracing |
| 52 | const NX_LOG_DEBUG: i64 = 1 // diagnostic, devs-only |
| 53 | const NX_LOG_INFO: i64 = 2 // normal operational events |
| 54 | const NX_LOG_WARN: i64 = 3 // unexpected but recoverable |
| 55 | const NX_LOG_ERROR: i64 = 4 // failure, caller should handle |
| 56 | const NX_LOG_FATAL: i64 = 5 // panic + exit |
| 59 | const NX_LOG_EXIT: i64 = 200 |
| 81 | const NX_LOG_CTX_BYTES: i64 = 32 |
functions
| 85 | func nx_log_puts(fd: i64, s: *u8) -> i64; |
| 86 | func nx_log_puti(fd: i64, v: i64) -> i64; called by 1: nx_log_append_i |
| 87 | func nx_log_level_name(lvl: i64) -> *u8; |
| 88 | func ipow10(n: i64) -> i64; |
| 89 | func nx_log_new(min_level: i64, out_fd: i64) -> *NxLogContext; |
| 98 | func nx_log_new(min_level: i64, out_fd: i64) -> *NxLogContext |
| 111 | func nx_log_global() -> *NxLogContext called by 13: nx_log_tracenx_log_debugnx_log_infonx_log_warnnx_log_errornx_log_fatal+7 calls 1: nx_log_new |
| 129 | func nx_log_puts(fd: i64, s: *u8) -> i64 |
| 136 | func nx_log_puti(fd: i64, v: i64) -> i64 |
| 164 | func nx_log_level_name(lvl: i64) -> *u8 called by 1: main |
| 182 | func nx_log_emit(ctx: *NxLogContext, level: i64, called by 12: nx_log_tracenx_log_debugnx_log_infonx_log_warnnx_log_errornx_log_fatal+6 calls 3: ipow10nx_log_putsnx_log_level_name |
| 213 | func ipow10(n: i64) -> i64 |
| 228 | func nx_log_trace(tag: *u8, msg: *u8) -> i64 |
| 233 | func nx_log_debug(tag: *u8, msg: *u8) -> i64 |
| 238 | func nx_log_info(tag: *u8, msg: *u8) -> i64 |
| 243 | func nx_log_warn(tag: *u8, msg: *u8) -> i64 |
| 248 | func nx_log_error(tag: *u8, msg: *u8) -> i64 |
| 253 | func nx_log_fatal(tag: *u8, msg: *u8) -> i64 |
| 266 | func nx_log_append_i(ctx: *NxLogContext, v: i64) -> i64 |
| 272 | func nx_log_append_s(ctx: *NxLogContext, s: *u8) -> i64 calls 1: nx_log_puts |
| 280 | func main() -> i64 |