code wiki / _hdl_build / nx_toolatency_observation_lib.nx

nx_toolatency_observation_lib.nx

buildroot/runtime/_hdl_build/nx_toolatency_observation_lib.nx

16337 B279 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind librarytopic toolatency
docsdependenciesstructsconstsfunctions

about

Read-only projection of the existing tools/timing timing_v=1 actlog records. Format constants only; the caller supplies read and row capacities.

dependencies 1 imports · 4 importers

nx_syscalls.nx nx_toolatency_observation_lib. nx_toolatency.nx nx_toolatency_legacy_gate.nx nx_toolatency_observation_gate.nx nx_toolatency_staged_cli_gate.nx

imports: nx_syscalls.nx

imported by: nx_toolatency.nxnx_toolatency_legacy_gate.nxnx_toolatency_observation_gate.nxnx_toolatency_staged_cli_gate.nx

structs

none

consts

4const TO_MAX: i64 = 9223372036854775807
5const TO_MIN: i64 = 0-9223372036854775807-1
6const TO_WORD_BYTES: i64 = 8
7const TO_ROW_SLOTS: i64 = 17
8const TO_NUM_COUNT: i64 = 9
9const TO_FIELD_COUNT: i64 = 6
10const TO_TOKEN_COUNT: i64 = 15
11const TO_STATUS_OK: i64 = 0
12const TO_STATUS_UNKNOWN: i64 = 1
13const TO_STATUS_WINDOW: i64 = 2
14const TO_STATUS_INPUT: i64 = 3
15const TO_STATUS_OUTPUT: i64 = 4
16const TO_ERR_OFFSET: i64 = 0-10001
17const TO_ERR_SEEK_POSITION: i64 = 0-10002
18const TO_ERR_SHORT_READ: i64 = 0-10003
21const TO_STATE_SLOTS: i64 = 11

functions

23func to_len(s: *u8) -> i64 { var n: i64=0; while s[n] != (0 as u8) { n=n+1 }; return n }
24func to_eq(b: *u8, s: i64, e: i64, text: *u8) -> i64
28func to_has(b: *u8, s: i64, e: i64, text: *u8) -> i64
called by 4: lg_runmainto_parsemain calls 2: to_lento_eq
33func to_int(b: *u8, s: i64, e: i64, out: *i64) -> i64
47func to_utf8(b: *u8, s: i64, e: i64) -> i64
called by 2: mainto_parse
63func to_token_key(index: i64) -> *u8
called by 1: to_parse
80func to_num_slot(token: i64) -> i64
called by 1: to_parse
86func to_parse(b: *u8, s: i64, e: i64, row: *i64) -> i64
130func to_init(st: *i64) -> i64 { var i: i64=0; while i < TO_STATE_SLOTS { st[i]=0; i=i+1 }; return 0 }
called by 2: to_scanto_read
132func to_scan(b: *u8, length: i64, offset: i64, size: i64, boundary: i64, rows: *i64, capacity: i64, scratch: *i64, st: *i64) -> i64
called by 2: mainto_read calls 2: to_initto_parse
159func to_read(path: *u8, offset: i64, readcap: i64, b: *u8, rows: *i64, rowcap: i64, scratch: *i64, st: *i64) -> i64
187func to_raw(b: *u8, n: i64) -> i64
191func to_text(b: *u8) -> i64 { return to_raw(b,to_len(b)) }
192func to_number(v: i64, scratch: *u8) -> i64
called by 2: to_nullableto_emit calls 2: to_textto_raw
200func to_nullable(v: i64, scratch: *u8) -> i64 { if v == (0-1) { return to_text("null" as *u8) }; return to_number(v,scratch) }
called by 1: to_emit calls 2: to_textto_number
201func to_quote(b: *u8, s: i64, n: i64) -> i64
called by 1: to_emit calls 2: to_textto_raw
208func to_status(code: i64) -> *u8
called by 2: to_emitto_refuse
212func to_num_key(index: i64) -> *u8
called by 1: to_emit
218func to_emit(b: *u8, rows: *i64, st: *i64, offset: i64, readcap: i64, rowcap: i64, numeric: *u8) -> i64
248func to_refuse(status: i64, reason: *u8) -> i64
called by 1: to_observations calls 2: to_textto_status
253func to_observations(argc: i64, argv: *i64) -> i64