code wiki / _hdl_build / nx_toolatency_observation_lib.nx
nx_toolatency_observation_lib.nx
buildroot/runtime/_hdl_build/nx_toolatency_observation_lib.nx
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
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
| 4 | const TO_MAX: i64 = 9223372036854775807 |
| 5 | const TO_MIN: i64 = 0-9223372036854775807-1 |
| 6 | const TO_WORD_BYTES: i64 = 8 |
| 7 | const TO_ROW_SLOTS: i64 = 17 |
| 8 | const TO_NUM_COUNT: i64 = 9 |
| 9 | const TO_FIELD_COUNT: i64 = 6 |
| 10 | const TO_TOKEN_COUNT: i64 = 15 |
| 11 | const TO_STATUS_OK: i64 = 0 |
| 12 | const TO_STATUS_UNKNOWN: i64 = 1 |
| 13 | const TO_STATUS_WINDOW: i64 = 2 |
| 14 | const TO_STATUS_INPUT: i64 = 3 |
| 15 | const TO_STATUS_OUTPUT: i64 = 4 |
| 16 | const TO_ERR_OFFSET: i64 = 0-10001 |
| 17 | const TO_ERR_SEEK_POSITION: i64 = 0-10002 |
| 18 | const TO_ERR_SHORT_READ: i64 = 0-10003 |
| 21 | const TO_STATE_SLOTS: i64 = 11 |
functions
| 23 | func to_len(s: *u8) -> i64 { var n: i64=0; while s[n] != (0 as u8) { n=n+1 }; return n } |
| 24 | func to_eq(b: *u8, s: i64, e: i64, text: *u8) -> i64 |
| 28 | func to_has(b: *u8, s: i64, e: i64, text: *u8) -> i64 |
| 33 | func to_int(b: *u8, s: i64, e: i64, out: *i64) -> i64 |
| 47 | func to_utf8(b: *u8, s: i64, e: i64) -> i64 |
| 63 | func to_token_key(index: i64) -> *u8 called by 1: to_parse |
| 80 | func to_num_slot(token: i64) -> i64 called by 1: to_parse |
| 86 | func to_parse(b: *u8, s: i64, e: i64, row: *i64) -> i64 |
| 130 | func to_init(st: *i64) -> i64 { var i: i64=0; while i < TO_STATE_SLOTS { st[i]=0; i=i+1 }; return 0 } |
| 132 | func to_scan(b: *u8, length: i64, offset: i64, size: i64, boundary: i64, rows: *i64, capacity: i64, scratch: *i64, st: *i64) -> i64 |
| 159 | func to_read(path: *u8, offset: i64, readcap: i64, b: *u8, rows: *i64, rowcap: i64, scratch: *i64, st: *i64) -> i64 |
| 187 | func to_raw(b: *u8, n: i64) -> i64 |
| 191 | func to_text(b: *u8) -> i64 { return to_raw(b,to_len(b)) } |
| 192 | func to_number(v: i64, scratch: *u8) -> i64 |
| 200 | func to_nullable(v: i64, scratch: *u8) -> i64 { if v == (0-1) { return to_text("null" as *u8) }; return to_number(v,scratch) } |
| 201 | func to_quote(b: *u8, s: i64, n: i64) -> i64 |
| 208 | func to_status(code: i64) -> *u8 |
| 212 | func to_num_key(index: i64) -> *u8 called by 1: to_emit |
| 218 | func to_emit(b: *u8, rows: *i64, st: *i64, offset: i64, readcap: i64, rowcap: i64, numeric: *u8) -> i64 |
| 248 | func to_refuse(status: i64, reason: *u8) -> i64 |
| 253 | func to_observations(argc: i64, argv: *i64) -> i64 |