Lines Matching defs:itm_hdr
66 static char *reg_name(itm_hdr_t *itm_hdr, itm_place_t op);
75 #define ADDR(place) ((void *)(((char *)(itm_hdr)) + \
80 #define ADDR2(place2) ((void *)(((char *)(itm_hdr)) + \
96 itm_hdr_t *itm_hdr;
102 itm_hdr = itm_attach(file);
104 if (NULL == itm_hdr) {
108 if (0 == itm_hdr->info_hdr.itm_ptr) {
113 if (0 == itm_hdr->info_hdr.itm_ptr) {
117 info_hdr = INFO_HDR(itm_hdr);
121 dump_itm_header(itm_hdr, info_hdr);
127 type_id = itm_hdr->type_id;
130 type_id.place.itm_ptr += (itm_place2_t)itm_hdr;
133 dump_tables(itm_hdr, info_hdr);
338 dump_tables(itm_hdr_t *itm_hdr, itm_info_hdr_t *info_hdr)
374 dump_cond_tbl(itm_hdr, *place, 1);
379 dump_map(itm_hdr, *place, 1);
384 dump_op_tbl(itm_hdr, *place, 1);
388 dump_direc_tbl(itm_hdr, *place);
397 dump_direc_tbl(itm_hdr_t *itm_hdr, itm_place_t direc_place)
412 name = tbl_name(itm_hdr, direc_hdr);
420 dump_cond_tbl(itm_hdr, direc->condition, 0);
428 dump_op_tbl(itm_hdr, direc->action, 0);
433 dump_map(itm_hdr, direc->action, 0);
446 dump_map(itm_hdr_t *itm_hdr, itm_place_t map_place, int standalone)
455 dump_map_i_f(itm_hdr, map_place, standalone);
458 dump_map_l_f(itm_hdr, map_place, standalone);
461 dump_map_hash(itm_hdr, map_place, standalone);
464 dump_map_dense_enc(itm_hdr, map_place, standalone);
476 dump_map_i_f(itm_hdr_t *itm_hdr, itm_place_t map_place, int standalone)
507 (map_place.itm_ptr != itm_hdr->direc_init_tbl.itm_ptr)) {
516 name = tbl_name(itm_hdr, tbl_hdr);
590 dump_map_l_f(itm_hdr_t *itm_hdr, itm_place_t map_place, int standalone)
606 (map_place.itm_ptr != itm_hdr->direc_init_tbl.itm_ptr)) {
615 name = tbl_name(itm_hdr, tbl_hdr);
680 dump_map_hash(itm_hdr_t *itm_hdr, itm_place_t map_place, int standalone)
700 (map_place.itm_ptr != itm_hdr->direc_init_tbl.itm_ptr)) {
709 name = tbl_name(itm_hdr, tbl_hdr);
804 dump_map_dense_enc(itm_hdr_t *itm_hdr, itm_place_t map_place, int standalone)
842 (map_place.itm_ptr != itm_hdr->direc_init_tbl.itm_ptr)) {
851 name = tbl_name(itm_hdr, tbl_hdr);
936 dump_cond_tbl(itm_hdr_t *itm_hdr, itm_place_t cond_place, int standalone)
961 name = tbl_name(itm_hdr, cond_hdr);
982 dump_range(itm_hdr, cond->operand.place);
985 dump_expr(itm_hdr, cond->operand.place);
989 dump_escapeseq(itm_hdr, cond->operand.place);
1009 dump_op_tbl(itm_hdr_t *itm_hdr, itm_place_t op_tbl_place, int standalone)
1022 name = tbl_name(itm_hdr, op_hdr);
1049 dump_op(itm_hdr, op_place);
1064 dump_op(itm_hdr_t *itm_hdr, itm_place2_t op_place)
1074 dump_expr(itm_hdr, operation->data.operand[0]);
1079 dump_expr(itm_hdr, operation->data.operand[0]);
1089 dump_expr(itm_hdr, operation->data.operand[0]);
1102 dump_expr(itm_hdr, operation->data.operand[0]);
1107 dump_expr(itm_hdr, operation->data.operand[0]);
1109 dump_op_tbl(itm_hdr, operation->data.operand[1], 0);
1114 dump_expr(itm_hdr, operation->data.operand[0]);
1116 dump_op_tbl(itm_hdr, operation->data.operand[1], 0);
1123 dump_op_tbl(itm_hdr, operation->data.operand[2], 0);
1126 dump_op_tbl(itm_hdr, operation->data.operand[2], 0);
1131 printi(0, RNPREF "direction %1$s;\n", tbl_name(itm_hdr,
1135 printi(0, RNPREF "map %1$s", tbl_name(itm_hdr,
1139 dump_expr(itm_hdr, operation->data.operand[1]);
1145 tbl_name(itm_hdr,
1162 dump_expr(itm_hdr, operation->data.operand[0]);
1167 dump_expr(itm_hdr, operation->data.operand[0]);
1172 dump_expr(itm_hdr, operation->data.operand[0]);
1186 dump_expr(itm_hdr_t *itm_hdr, itm_place_t expr_place)
1215 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1219 dump_expr(itm_hdr, expr->data.operand[0]);
1239 dump_expr(itm_hdr, expr->data.operand[0]);
1243 dump_expr(itm_hdr, expr->data.operand[0]);
1245 dump_expr(itm_hdr, expr->data.operand[1]);
1250 dump_expr(itm_hdr, expr->data.operand[0]);
1257 dump_expr(itm_hdr, expr->data.operand[0]);
1259 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1264 dump_expr(itm_hdr, expr->data.operand[0]);
1273 dump_expr(itm_hdr, expr->data.operand[1]);
1287 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1299 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1301 dump_expr(itm_hdr, expr->data.operand[1]);
1306 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1313 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1315 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1320 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1329 dump_expr(itm_hdr, expr->data.operand[1]);
1343 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1355 dump_expr(itm_hdr, expr->data.operand[0]);
1357 dump_expr(itm_hdr, expr->data.operand[1]);
1362 dump_expr(itm_hdr, expr->data.operand[0]);
1369 dump_expr(itm_hdr, expr->data.operand[0]);
1371 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1376 dump_expr(itm_hdr, expr->data.operand[0]);
1385 dump_expr(itm_hdr, expr->data.operand[1]);
1399 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1411 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1413 dump_expr(itm_hdr, expr->data.operand[1]);
1418 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1426 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1431 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1440 dump_expr(itm_hdr, expr->data.operand[1]);
1454 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1466 dump_expr(itm_hdr, expr->data.operand[0]);
1468 dump_expr(itm_hdr, expr->data.operand[1]);
1473 dump_expr(itm_hdr, expr->data.operand[0]);
1480 dump_expr(itm_hdr, expr->data.operand[0]);
1482 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1487 dump_expr(itm_hdr, expr->data.operand[0]);
1496 dump_expr(itm_hdr, expr->data.operand[1]);
1510 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1522 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1524 dump_expr(itm_hdr, expr->data.operand[1]);
1529 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1537 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1542 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1551 dump_expr(itm_hdr, expr->data.operand[1]);
1565 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1577 dump_expr(itm_hdr, expr->data.operand[0]);
1579 dump_expr(itm_hdr, expr->data.operand[1]);
1584 dump_expr(itm_hdr, expr->data.operand[0]);
1591 dump_expr(itm_hdr, expr->data.operand[0]);
1593 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1598 dump_expr(itm_hdr, expr->data.operand[0]);
1607 dump_expr(itm_hdr, expr->data.operand[1]);
1621 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1633 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1635 dump_expr(itm_hdr, expr->data.operand[1]);
1640 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1648 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1653 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1662 dump_expr(itm_hdr, expr->data.operand[1]);
1676 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1688 dump_expr(itm_hdr, expr->data.operand[0]);
1690 dump_expr(itm_hdr, expr->data.operand[1]);
1695 dump_expr(itm_hdr, expr->data.operand[0]);
1702 dump_expr(itm_hdr, expr->data.operand[0]);
1704 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1709 dump_expr(itm_hdr, expr->data.operand[0]);
1718 dump_expr(itm_hdr, expr->data.operand[1]);
1732 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1744 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1746 dump_expr(itm_hdr, expr->data.operand[1]);
1751 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1759 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1764 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1773 dump_expr(itm_hdr, expr->data.operand[1]);
1787 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1799 dump_expr(itm_hdr, expr->data.operand[0]);
1801 dump_expr(itm_hdr, expr->data.operand[1]);
1806 dump_expr(itm_hdr, expr->data.operand[0]);
1813 dump_expr(itm_hdr, expr->data.operand[0]);
1815 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1820 dump_expr(itm_hdr, expr->data.operand[0]);
1829 dump_expr(itm_hdr, expr->data.operand[1]);
1843 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1855 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1857 dump_expr(itm_hdr, expr->data.operand[1]);
1862 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1870 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1875 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1884 dump_expr(itm_hdr, expr->data.operand[1]);
1898 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1910 dump_expr(itm_hdr, expr->data.operand[0]);
1912 dump_expr(itm_hdr, expr->data.operand[1]);
1917 dump_expr(itm_hdr, expr->data.operand[0]);
1924 dump_expr(itm_hdr, expr->data.operand[0]);
1926 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1931 dump_expr(itm_hdr, expr->data.operand[0]);
1940 dump_expr(itm_hdr, expr->data.operand[1]);
1954 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
1966 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1968 dump_expr(itm_hdr, expr->data.operand[1]);
1973 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1981 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1986 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
1995 dump_expr(itm_hdr, expr->data.operand[1]);
2009 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2021 dump_expr(itm_hdr, expr->data.operand[0]);
2023 dump_expr(itm_hdr, expr->data.operand[1]);
2028 dump_expr(itm_hdr, expr->data.operand[0]);
2035 dump_expr(itm_hdr, expr->data.operand[0]);
2037 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2042 dump_expr(itm_hdr, expr->data.operand[0]);
2051 dump_expr(itm_hdr, expr->data.operand[1]);
2065 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2077 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2079 dump_expr(itm_hdr, expr->data.operand[1]);
2084 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2092 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2097 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2106 dump_expr(itm_hdr, expr->data.operand[1]);
2120 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2132 dump_expr(itm_hdr, expr->data.operand[0]);
2134 dump_expr(itm_hdr, expr->data.operand[1]);
2139 dump_expr(itm_hdr, expr->data.operand[0]);
2146 dump_expr(itm_hdr, expr->data.operand[0]);
2148 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2153 dump_expr(itm_hdr, expr->data.operand[0]);
2162 dump_expr(itm_hdr, expr->data.operand[1]);
2176 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2188 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2190 dump_expr(itm_hdr, expr->data.operand[1]);
2195 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2203 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2208 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2217 dump_expr(itm_hdr, expr->data.operand[1]);
2231 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2243 dump_expr(itm_hdr, expr->data.operand[0]);
2245 dump_expr(itm_hdr, expr->data.operand[1]);
2250 dump_expr(itm_hdr, expr->data.operand[0]);
2257 dump_expr(itm_hdr, expr->data.operand[0]);
2259 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2264 dump_expr(itm_hdr, expr->data.operand[0]);
2273 dump_expr(itm_hdr, expr->data.operand[1]);
2287 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2299 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2301 dump_expr(itm_hdr, expr->data.operand[1]);
2306 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2314 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2319 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2328 dump_expr(itm_hdr, expr->data.operand[1]);
2342 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2354 dump_expr(itm_hdr, expr->data.operand[0]);
2356 dump_expr(itm_hdr, expr->data.operand[1]);
2361 dump_expr(itm_hdr, expr->data.operand[0]);
2368 dump_expr(itm_hdr, expr->data.operand[0]);
2370 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2375 dump_expr(itm_hdr, expr->data.operand[0]);
2384 dump_expr(itm_hdr, expr->data.operand[1]);
2398 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2410 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2412 dump_expr(itm_hdr, expr->data.operand[1]);
2417 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2424 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2426 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2431 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2440 dump_expr(itm_hdr, expr->data.operand[1]);
2454 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2466 dump_expr(itm_hdr, expr->data.operand[0]);
2468 dump_expr(itm_hdr, expr->data.operand[1]);
2473 dump_expr(itm_hdr, expr->data.operand[0]);
2480 dump_expr(itm_hdr, expr->data.operand[0]);
2482 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2487 dump_expr(itm_hdr, expr->data.operand[0]);
2496 dump_expr(itm_hdr, expr->data.operand[1]);
2510 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2522 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2524 dump_expr(itm_hdr, expr->data.operand[1]);
2529 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2537 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2542 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2551 dump_expr(itm_hdr, expr->data.operand[1]);
2565 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2577 dump_expr(itm_hdr, expr->data.operand[0]);
2579 dump_expr(itm_hdr, expr->data.operand[1]);
2584 dump_expr(itm_hdr, expr->data.operand[0]);
2591 dump_expr(itm_hdr, expr->data.operand[0]);
2593 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2598 dump_expr(itm_hdr, expr->data.operand[0]);
2607 dump_expr(itm_hdr, expr->data.operand[1]);
2621 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2633 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2635 dump_expr(itm_hdr, expr->data.operand[1]);
2640 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2648 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2653 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2662 dump_expr(itm_hdr, expr->data.operand[1]);
2676 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2688 dump_expr(itm_hdr, expr->data.operand[0]);
2690 dump_expr(itm_hdr, expr->data.operand[1]);
2695 dump_expr(itm_hdr, expr->data.operand[0]);
2702 dump_expr(itm_hdr, expr->data.operand[0]);
2704 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2709 dump_expr(itm_hdr, expr->data.operand[0]);
2718 dump_expr(itm_hdr, expr->data.operand[1]);
2732 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2744 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2746 dump_expr(itm_hdr, expr->data.operand[1]);
2751 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2758 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2760 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2765 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2774 dump_expr(itm_hdr, expr->data.operand[1]);
2788 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2800 dump_expr(itm_hdr, expr->data.operand[0]);
2802 dump_expr(itm_hdr, expr->data.operand[1]);
2807 dump_expr(itm_hdr, expr->data.operand[0]);
2814 dump_expr(itm_hdr, expr->data.operand[0]);
2816 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2821 dump_expr(itm_hdr, expr->data.operand[0]);
2830 dump_expr(itm_hdr, expr->data.operand[1]);
2844 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2856 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2858 dump_expr(itm_hdr, expr->data.operand[1]);
2863 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2871 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2876 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2885 dump_expr(itm_hdr, expr->data.operand[1]);
2899 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2911 dump_expr(itm_hdr, expr->data.operand[0]);
2913 dump_expr(itm_hdr, expr->data.operand[1]);
2918 dump_expr(itm_hdr, expr->data.operand[0]);
2925 dump_expr(itm_hdr, expr->data.operand[0]);
2927 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2932 dump_expr(itm_hdr, expr->data.operand[0]);
2941 dump_expr(itm_hdr, expr->data.operand[1]);
2955 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
2967 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2969 dump_expr(itm_hdr, expr->data.operand[1]);
2974 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2982 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2987 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[0]));
2996 dump_expr(itm_hdr, expr->data.operand[1]);
3010 printi(0, "%s", reg_name(itm_hdr, expr->data.operand[1]));
3023 dump_expr(itm_hdr, expr->data.operand[0]);
3029 dump_expr(itm_hdr, expr->data.operand[0]);
3034 dump_expr(itm_hdr, expr->data.operand[0]);
3036 dump_expr(itm_hdr, expr->data.operand[1]);
3041 dump_expr(itm_hdr, expr->data.operand[0]);
3043 dump_expr(itm_hdr, expr->data.operand[1]);
3047 printi(0, "%s = ", reg_name(itm_hdr, expr->data.operand[0]));
3048 dump_expr(itm_hdr, expr->data.operand[1]);
3052 dump_expr(itm_hdr, expr->data.operand[0]);
3065 dump_range(itm_hdr_t *itm_hdr, itm_place_t range_place)
3103 dump_escapeseq(itm_hdr_t *itm_hdr, itm_place_t escapeseq_place)
3171 name_place_to_str(itm_hdr_t *itm_hdr, itm_place2_t place)
3188 tbl_name(itm_hdr_t *itm_hdr, itm_tbl_hdr_t *tbl_hdr)
3195 return (name_place_to_str(itm_hdr, tbl_hdr->name.itm_ptr));
3203 reg_name(itm_hdr_t *itm_hdr, itm_place_t op)
3210 if (0 == itm_hdr->info_hdr.itm_ptr) {
3214 info_hdr = INFO_HDR(itm_hdr);
3216 itm_hdr,
3225 itm_hdr_t *itm_hdr;
3239 itm_hdr = (void *) mmap(NULL, st.st_size,
3241 if (MAP_FAILED == itm_hdr) {
3248 if ((itm_hdr->ident[0] != ITM_IDENT_0) ||
3249 (itm_hdr->ident[1] != ITM_IDENT_1) ||
3250 (itm_hdr->ident[2] != ITM_IDENT_2) ||
3251 (itm_hdr->ident[3] != ITM_IDENT_3)) {
3255 if ((itm_hdr->version[0] != ITM_VER_0) ||
3256 (itm_hdr->version[1] != ITM_VER_1) ||
3257 (itm_hdr->version[2] != ITM_VER_2) ||
3260 ((itm_hdr->spec[3] != ITM_SPEC_3_32_LITTLE_ENDIAN) &&
3261 (itm_hdr->spec[3] != ITM_SPEC_3_64_LITTLE_ENDIAN))) {
3263 (itm_hdr->spec[3] != ITM_SPEC_3_32_LITTLE_ENDIAN)) {
3267 ((itm_hdr->spec[3] != ITM_SPEC_3_32_BIG_ENDIAN) &&
3268 (itm_hdr->spec[3] != ITM_SPEC_3_64_BIG_ENDIAN))) {
3270 (itm_hdr->spec[3] != ITM_SPEC_3_32_BIG_ENDIAN)) {
3276 if (itm_hdr->itm_size.itm_ptr != st.st_size) {
3279 (size_t)(itm_hdr->itm_size.itm_ptr), st.st_size);
3283 return (itm_hdr);