Lines Matching refs:state

58 #define	INDENT state->ns_indent, MSG_ORIG(MSG_STR_EMPTY)
74 * - The variable "state" references the current note state.
77 print_num(state, _title, &layout->_field, SL_FMT_NUM_DEC)
79 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_DEC, \
82 print_num(state, _title, &layout->_field, SL_FMT_NUM_HEX)
84 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_HEX, \
87 print_num(state, _title, &layout->_field, SL_FMT_NUM_ZHEX)
89 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_ZHEX, \
92 print_subtype(state, _title, &layout->_field, _func)
94 print_strbuf(state, _title, &layout->_field)
99 * Structure used to maintain state data for a core note, or a subregion
119 typedef void (* dump_func_t)(note_state_t *state, const char *title);
166 extract_as_word(note_state_t *state, const sl_field_t *fdesc)
168 return (sl_extract_as_word(state->ns_data, state->ns_swap, fdesc));
171 extract_as_lword(note_state_t *state, const sl_field_t *fdesc)
173 return (sl_extract_as_lword(state->ns_data, state->ns_swap, fdesc));
176 extract_as_sword(note_state_t *state, const sl_field_t *fdesc)
178 return (sl_extract_as_sword(state->ns_data, state->ns_swap, fdesc));
181 fmt_num(note_state_t *state, const sl_field_t *fdesc,
184 return (sl_fmt_num(state->ns_data, state->ns_swap, fdesc,
193 data_present(note_state_t *state, const sl_field_t *fdesc)
195 return ((fdesc->slf_offset + fdesc->slf_eltlen) <= state->ns_len);
205 indent_enter(note_state_t *state, const char *title,
214 if (data_present(state, first_fdesc))
217 state->ns_indent += INDENT_STEP;
220 indent_exit(note_state_t *state)
222 state->ns_indent -= INDENT_STEP;
232 print_num(note_state_t *state, const char *title,
243 if (!data_present(state, fdesc))
247 state->ns_vcol - state->ns_indent, title,
248 fmt_num(state, fdesc, fmt_type, buf));
257 print_num_2up(note_state_t *state, const char *title1,
269 if (!(data_present(state, fdesc1) &&
270 data_present(state, fdesc2)))
274 state->ns_vcol - state->ns_indent, title1,
275 state->ns_t2col - state->ns_vcol,
276 fmt_num(state, fdesc1, fmt_type1, buf1),
277 state->ns_v2col - state->ns_t2col, title2,
278 fmt_num(state, fdesc2, fmt_type2, buf2));
288 print_strbuf(note_state_t *state, const char *title,
301 if (fdesc->slf_offset >= state->ns_len)
309 n = state->ns_len - fdesc->slf_offset;
314 state->ns_vcol - state->ns_indent,
315 title, safe_str(fdesc->slf_offset + state->ns_data, n));
325 print_str(note_state_t *state, const char *title, const char *str)
328 state->ns_vcol - state->ns_indent, title, str);
333 * in order to display a subitem. This routine constructs a state
339 print_subtype(note_state_t *state, const char *title,
350 if (fdesc->slf_offset >= state->ns_len)
354 * Construct a state block that reflects the sub-item
356 sub_state = *state;
373 * state - Current state
381 print_array(note_state_t *state, const sl_field_t *base_desc,
393 indent_enter(state, title, base_desc);
399 if (!data_present(state, &fdesc1))
403 print_num(state, index1, &fdesc1, fmt_type);
411 if (!(data_present(state, &fdesc1) &&
412 data_present(state, &fdesc2)))
418 print_num_2up(state, index1, &fdesc1, fmt_type,
424 indent_exit(state);
432 dump_auxv(note_state_t *state, const char *title)
434 const sl_auxv_layout_t *layout = state->ns_arch->auxv;
449 indent_enter(state, title, &layout->sizeof_struct);
457 indent_exit(state);
460 while (state->ns_len > sizeof_auxv) {
468 type = extract_as_word(state, &layout->a_type);
474 while ((state->ns_len - sizeof_auxv) >= sizeof_auxv) {
475 type = extract_as_word(state, &a_type_next);
479 state->ns_data += sizeof_auxv;
480 state->ns_len -= sizeof_auxv;
505 w = extract_as_word(state, &layout->a_val);
506 vstr = conv_ehdr_flags(state->ns_mach, w,
511 w = extract_as_word(state, &layout->a_val);
512 vstr = conv_cap_val_hw1(w, state->ns_mach,
532 w = extract_as_word(state, &layout->a_val);
533 vstr = conv_cap_val_hw2(w, state->ns_mach,
556 w = extract_as_word(state, &layout->a_val);
571 vstr = fmt_num(state, &layout->a_val, num_fmt, buf);
573 state->ns_vcol - state->ns_indent,
577 state->ns_data += sizeof_auxv;
578 state->ns_len -= sizeof_auxv;
588 dump_fltset(note_state_t *state, const char *title)
592 const sl_fltset_layout_t *layout = state->ns_arch->fltset;
598 if (!data_present(state, &layout->sizeof_struct))
606 mask[i] = extract_as_word(state, &fdesc);
610 print_str(state, title, conv_cnote_fltset(mask, nelts, 0, &buf));
620 dump_sigset(note_state_t *state, const char *title)
624 const sl_sigset_layout_t *layout = state->ns_arch->sigset;
630 if (!data_present(state, &layout->sizeof_struct))
638 mask[i] = extract_as_word(state, &fdesc);
642 print_str(state, title, conv_cnote_sigset(mask, nelts, 0, &buf));
652 dump_sigaction(note_state_t *state, const char *title)
654 const sl_sigaction_layout_t *layout = state->ns_arch->sigaction;
658 indent_enter(state, title, &layout->sa_flags);
660 if (data_present(state, &layout->sa_flags)) {
661 w = extract_as_word(state, &layout->sa_flags);
662 print_str(state, MSG_ORIG(MSG_CNOTE_T_SA_FLAGS),
670 indent_exit(state);
678 dump_siginfo(note_state_t *state, const char *title)
680 const sl_siginfo_layout_t *layout = state->ns_arch->siginfo;
685 if (!data_present(state, &layout->sizeof_struct))
688 indent_enter(state, title, &layout->f_si_signo);
690 v_si_signo = extract_as_sword(state, &layout->f_si_signo);
691 print_str(state, MSG_ORIG(MSG_CNOTE_T_SI_SIGNO),
694 w = extract_as_word(state, &layout->f_si_errno);
695 print_str(state, MSG_ORIG(MSG_CNOTE_T_SI_ERRNO),
698 v_si_code = extract_as_sword(state, &layout->f_si_code);
699 print_str(state, MSG_ORIG(MSG_CNOTE_T_SI_CODE),
700 conv_cnote_si_code(state->ns_mach, v_si_signo, v_si_code,
704 indent_exit(state);
719 indent_enter(state, MSG_ORIG(MSG_CNOTE_T_SI_VALUE),
725 indent_exit(state);
728 indent_exit(state);
754 indent_exit(state);
762 dump_stack(note_state_t *state, const char *title)
764 const sl_stack_layout_t *layout = state->ns_arch->stack;
768 indent_enter(state, title, &layout->ss_size);
770 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_SS_SP), &layout->ss_sp,
774 if (data_present(state, &layout->ss_flags)) {
775 w = extract_as_word(state, &layout->ss_flags);
776 print_str(state, MSG_ORIG(MSG_CNOTE_T_SS_FLAGS),
780 indent_exit(state);
788 dump_sysset(note_state_t *state, const char *title)
792 const sl_sysset_layout_t *layout = state->ns_arch->sysset;
798 if (!data_present(state, &layout->sizeof_struct))
806 mask[i] = extract_as_word(state, &fdesc);
810 print_str(state, title, conv_cnote_sysset(mask, nelts, 0, &buf));
820 dump_timestruc(note_state_t *state, const char *title)
822 const sl_timestruc_layout_t *layout = state->ns_arch->timestruc;
824 indent_enter(state, title, &layout->tv_sec);
829 indent_exit(state);
836 dump_secflags(note_state_t *state, const char *title)
838 const sl_prsecflags_layout_t *layout = state->ns_arch->prsecflags;
843 indent_enter(state, title, &layout->pr_version);
845 w = extract_as_word(state, &layout->pr_version);
849 dump_hex_bytes(state->ns_data, state->ns_len, state->ns_indent,
853 lw = extract_as_lword(state, &layout->pr_effective);
854 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_EFFECTIVE),
857 lw = extract_as_lword(state, &layout->pr_inherit);
858 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_INHERIT),
861 lw = extract_as_lword(state, &layout->pr_lower);
862 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_LOWER),
865 lw = extract_as_lword(state, &layout->pr_upper);
866 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_UPPER),
870 indent_exit(state);
877 dump_utsname(note_state_t *state, const char *title)
879 const sl_utsname_layout_t *layout = state->ns_arch->utsname;
881 indent_enter(state, title, &layout->sysname);
889 indent_exit(state);
897 dump_prgregset(note_state_t *state, const char *title)
904 fdesc1 = fdesc2 = state->ns_arch->prgregset->elt0;
905 indent_enter(state, title, &fdesc1);
910 if (!data_present(state, &fdesc1))
913 INDENT, state->ns_vcol - state->ns_indent,
914 conv_cnote_pr_regname(state->ns_mach, w,
916 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1));
924 if (!(data_present(state, &fdesc1) &&
925 data_present(state, &fdesc2)))
928 state->ns_vcol - state->ns_indent,
929 conv_cnote_pr_regname(state->ns_mach, w,
931 state->ns_t2col - state->ns_vcol,
932 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1),
933 state->ns_v2col - state->ns_t2col,
934 conv_cnote_pr_regname(state->ns_mach, w + 1,
936 fmt_num(state, &fdesc2, SL_FMT_NUM_ZHEX, buf2));
941 indent_exit(state);
948 dump_lwpstatus(note_state_t *state, const char *title)
950 const sl_lwpstatus_layout_t *layout = state->ns_arch->lwpstatus;
958 indent_enter(state, title, &layout->pr_flags);
960 if (data_present(state, &layout->pr_flags)) {
961 w = extract_as_word(state, &layout->pr_flags);
962 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAGS),
968 if (data_present(state, &layout->pr_why)) {
969 w = extract_as_word(state, &layout->pr_why);
970 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY),
973 if (data_present(state, &layout->pr_what)) {
974 w2 = extract_as_word(state, &layout->pr_what);
975 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT),
980 if (data_present(state, &layout->pr_cursig)) {
981 w = extract_as_word(state, &layout->pr_cursig);
982 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_CURSIG),
998 if (data_present(state, &layout->pr_syscall)) {
999 w = extract_as_word(state, &layout->pr_syscall);
1000 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_SYSCALL),
1006 if (data_present(state, &layout->pr_errno)) {
1007 w = extract_as_word(state, &layout->pr_errno);
1008 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_ERRNO),
1012 if (data_present(state, &layout->pr_nsysarg)) {
1013 w2 = extract_as_word(state, &layout->pr_nsysarg);
1014 print_array(state, &layout->pr_sysarg, SL_FMT_NUM_ZHEX, w2, 1,
1026 if (data_present(state, &layout->pr_errpriv)) {
1027 i = extract_as_sword(state, &layout->pr_errpriv);
1028 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_ERRPRIV),
1042 state->ns_vcol += 3;
1043 state->ns_t2col += 3;
1044 state->ns_v2col += 2;
1046 state->ns_vcol -= 3;
1047 state->ns_t2col -= 3;
1048 state->ns_v2col -= 2;
1051 * The floating point register state is complex, and highly
1056 if (data_present(state, &layout->pr_fpreg)) {
1057 indent_enter(state, MSG_ORIG(MSG_CNOTE_T_PR_FPREG),
1059 dump_hex_bytes(layout->pr_fpreg.slf_offset + state->ns_data,
1060 layout->pr_fpreg.slf_eltlen, state->ns_indent, 4, 3);
1061 indent_exit(state);
1064 indent_exit(state);
1072 dump_pstatus(note_state_t *state, const char *title)
1074 const sl_pstatus_layout_t *layout = state->ns_arch->pstatus;
1081 indent_enter(state, title, &layout->pr_flags);
1083 if (data_present(state, &layout->pr_flags)) {
1084 w = extract_as_word(state, &layout->pr_flags);
1085 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAGS),
1098 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_BRKBASE),
1102 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_STKBASE),
1121 if (data_present(state, &layout->pr_dmodel)) {
1122 w = extract_as_word(state, &layout->pr_dmodel);
1123 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_DMODEL),
1139 state->ns_vcol += 5;
1140 state->ns_t2col += 5;
1141 state->ns_v2col += 5;
1144 state->ns_vcol -= 5;
1145 state->ns_t2col -= 5;
1146 state->ns_v2col -= 5;
1148 indent_exit(state);
1156 dump_prstatus(note_state_t *state, const char *title)
1158 const sl_prstatus_layout_t *layout = state->ns_arch->prstatus;
1166 indent_enter(state, title, &layout->pr_flags);
1168 if (data_present(state, &layout->pr_flags)) {
1169 w = extract_as_word(state, &layout->pr_flags);
1170 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAGS),
1174 if (data_present(state, &layout->pr_why)) {
1175 w = extract_as_word(state, &layout->pr_why);
1176 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY),
1180 if (data_present(state, &layout->pr_what)) {
1181 w2 = extract_as_word(state, &layout->pr_what);
1182 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT),
1189 if (data_present(state, &layout->pr_cursig)) {
1190 w = extract_as_word(state, &layout->pr_cursig);
1191 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_CURSIG),
1216 if (data_present(state, &layout->pr_syscall)) {
1217 w = extract_as_word(state, &layout->pr_syscall);
1218 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_SYSCALL),
1224 if (data_present(state, &layout->pr_nsysarg)) {
1225 w2 = extract_as_word(state, &layout->pr_nsysarg);
1226 print_array(state, &layout->pr_sysarg, SL_FMT_NUM_ZHEX, w2, 1,
1234 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_BRKBASE),
1238 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_STKBASE),
1244 if (data_present(state, &layout->pr_bind)) {
1245 i = extract_as_sword(state, &layout->pr_bind);
1246 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_BIND),
1253 indent_exit(state);
1264 prtpct_value(note_state_t *state, const sl_field_t *fdesc,
1269 value = extract_as_word(state, fdesc);
1286 prtpct_2up(note_state_t *state, const sl_field_t *fdesc1,
1291 if (!(data_present(state, fdesc1) &&
1292 data_present(state, fdesc2)))
1296 state->ns_vcol - state->ns_indent, title1,
1297 state->ns_t2col - state->ns_vcol,
1298 prtpct_value(state, fdesc1, buf1),
1299 state->ns_v2col - state->ns_t2col, title2,
1300 prtpct_value(state, fdesc2, buf2));
1310 print_state_sname_2up(note_state_t *state,
1323 if (!(data_present(state, state_fdesc) &&
1324 data_present(state, sname_fdesc)))
1327 sname = extract_as_sword(state, sname_fdesc);
1332 state->ns_vcol - state->ns_indent, MSG_ORIG(MSG_CNOTE_T_PR_STATE),
1333 state->ns_t2col - state->ns_vcol,
1334 fmt_num(state, state_fdesc, SL_FMT_NUM_DEC, buf1),
1335 state->ns_v2col - state->ns_t2col, MSG_ORIG(MSG_CNOTE_T_PR_SNAME),
1343 dump_lwpsinfo(note_state_t *state, const char *title)
1345 const sl_lwpsinfo_layout_t *layout = state->ns_arch->lwpsinfo;
1353 indent_enter(state, title, &layout->pr_flag);
1355 if (data_present(state, &layout->pr_flag)) {
1356 w = extract_as_word(state, &layout->pr_flag);
1357 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAG),
1361 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_LWPID), &layout->pr_lwpid,
1366 if (data_present(state, &layout->pr_stype)) {
1367 w = extract_as_word(state, &layout->pr_stype);
1368 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_STYPE),
1372 print_state_sname_2up(state, &layout->pr_state, &layout->pr_sname);
1376 if (data_present(state, &layout->pr_syscall)) {
1377 w = extract_as_word(state, &layout->pr_syscall);
1378 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_SYSCALL),
1385 if (data_present(state, &layout->pr_pri) &&
1386 data_present(state, &layout->pr_pctcpu)) {
1390 state->ns_vcol - state->ns_indent,
1392 state->ns_t2col - state->ns_vcol,
1393 fmt_num(state, &layout->pr_pri, SL_FMT_NUM_DEC, buf1),
1394 state->ns_v2col - state->ns_t2col,
1396 prtpct_value(state, &layout->pr_pctcpu, buf2));
1406 if (data_present(state, &layout->pr_bindpset)) {
1407 i = extract_as_sword(state, &layout->pr_bindpset);
1408 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_BINDPSET),
1414 indent_exit(state);
1422 dump_psinfo(note_state_t *state, const char *title)
1424 const sl_psinfo_layout_t *layout = state->ns_arch->psinfo;
1431 indent_enter(state, title, &layout->pr_flag);
1433 if (data_present(state, &layout->pr_flag)) {
1434 w = extract_as_word(state, &layout->pr_flag);
1435 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAG),
1448 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_ADDR), &layout->pr_addr,
1451 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_RSSIZE),
1454 prtpct_2up(state, &layout->pr_pctcpu, MSG_ORIG(MSG_CNOTE_T_PR_PCTCPU),
1461 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_WSTAT), &layout->pr_wstat,
1467 if (data_present(state, &layout->pr_dmodel)) {
1468 w = extract_as_word(state, &layout->pr_dmodel);
1469 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_DMODEL),
1482 indent_exit(state);
1489 dump_prpsinfo(note_state_t *state, const char *title)
1491 const sl_prpsinfo_layout_t *layout = state->ns_arch->prpsinfo;
1498 indent_enter(state, title, &layout->pr_state);
1500 print_state_sname_2up(state, &layout->pr_state, &layout->pr_sname);
1504 if (data_present(state, &layout->pr_flag)) {
1505 w = extract_as_word(state, &layout->pr_flag);
1506 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FLAG),
1517 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_ADDR), &layout->pr_addr,
1533 if (data_present(state, &layout->pr_syscall)) {
1534 w = extract_as_word(state, &layout->pr_syscall);
1535 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_SYSCALL),
1542 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_ARGC), &layout->pr_argc,
1545 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PR_ENVP), &layout->pr_envp,
1548 prtpct_2up(state, &layout->pr_pctcpu, MSG_ORIG(MSG_CNOTE_T_PR_PCTCPU),
1554 if (data_present(state, &layout->pr_dmodel)) {
1555 w = extract_as_word(state, &layout->pr_dmodel);
1556 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_DMODEL),
1560 indent_exit(state);
1568 dump_prcred(note_state_t *state, const char *title)
1570 const sl_prcred_layout_t *layout = state->ns_arch->prcred;
1573 indent_enter(state, title, &layout->pr_euid);
1583 if (data_present(state, &layout->pr_ngroups)) {
1584 ngroups = extract_as_word(state, &layout->pr_ngroups);
1585 print_array(state, &layout->pr_groups, SL_FMT_NUM_DEC, ngroups,
1589 indent_exit(state);
1597 dump_prpriv(note_state_t *state, const char *title)
1599 const sl_prpriv_layout_t *layout = state->ns_arch->prpriv;
1602 indent_enter(state, title, &layout->pr_nsets);
1608 if (data_present(state, &layout->pr_nsets)) {
1609 nsets = extract_as_word(state, &layout->pr_nsets);
1610 print_array(state, &layout->pr_sets, SL_FMT_NUM_ZHEX, nsets,
1614 indent_exit(state);
1618 dump_prfdinfo(note_state_t *state, const char *title)
1620 const sl_prfdinfo_layout_t *layout = state->ns_arch->prfdinfo;
1624 indent_enter(state, title, &layout->pr_fd);
1627 mode = extract_as_word(state, &layout->pr_mode);
1629 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_MODE),
1645 fileflags = extract_as_word(state, &layout->pr_fileflags);
1647 print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_FILEFLAGS),
1654 indent_exit(state);
1661 dump_priv_impl_info(note_state_t *state, const char *title)
1665 layout = state->ns_arch->priv_impl_info;
1666 indent_enter(state, title, &layout->priv_headersize);
1671 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PRIV_NSETS),
1675 print_num_2up(state, MSG_ORIG(MSG_CNOTE_T_PRIV_MAX), &layout->priv_max,
1681 indent_exit(state);
1697 dump_asrset(note_state_t *state, const char *title)
1708 nelts = state->ns_len / ftemplate.slf_eltlen;
1712 indent_enter(state, title, &fdesc1);
1721 INDENT, state->ns_vcol - state->ns_indent, index1,
1722 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1));
1734 state->ns_vcol - state->ns_indent, index1,
1735 state->ns_t2col - state->ns_vcol,
1736 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1),
1737 state->ns_v2col - state->ns_t2col, index2,
1738 fmt_num(state, &fdesc2, SL_FMT_NUM_ZHEX, buf2));
1743 indent_exit(state);
1750 note_state_t state;
1755 state.ns_mach = mach;
1756 state.ns_arch = sl_mach(state.ns_mach);
1757 if (sl_mach(state.ns_mach) == NULL)
1760 state.ns_swap = do_swap;
1761 state.ns_indent = 4;
1762 state.ns_t2col = state.ns_v2col = 0;
1763 state.ns_data = desc;
1764 state.ns_len = descsz;
1768 state.ns_vcol = 26;
1769 state.ns_t2col = 46;
1770 state.ns_v2col = 60;
1771 dump_prstatus(&state, MSG_ORIG(MSG_CNOTE_DESC_PRSTATUS_T));
1778 state.ns_vcol = 20;
1779 state.ns_t2col = 41;
1780 state.ns_v2col = 54;
1781 dump_prpsinfo(&state, MSG_ORIG(MSG_CNOTE_DESC_PRPSINFO_T));
1793 state.ns_vcol = 18;
1794 dump_auxv(&state, MSG_ORIG(MSG_CNOTE_DESC_AUXV_T));
1801 state.ns_vcol = 18;
1802 state.ns_t2col = 38;
1803 state.ns_v2col = 46;
1804 dump_asrset(&state, MSG_ORIG(MSG_CNOTE_DESC_ASRSET_T));
1811 state.ns_vcol = 22;
1812 state.ns_t2col = 42;
1813 state.ns_v2col = 54;
1814 dump_pstatus(&state, MSG_ORIG(MSG_CNOTE_DESC_PSTATUS_T));
1818 state.ns_vcol = 25;
1819 state.ns_t2col = 45;
1820 state.ns_v2col = 58;
1821 dump_psinfo(&state, MSG_ORIG(MSG_CNOTE_DESC_PSINFO_T));
1825 state.ns_vcol = 20;
1826 state.ns_t2col = 34;
1827 state.ns_v2col = 44;
1828 dump_prcred(&state, MSG_ORIG(MSG_CNOTE_DESC_PRCRED_T));
1832 state.ns_vcol = 18;
1833 dump_utsname(&state, MSG_ORIG(MSG_CNOTE_DESC_STRUCT_UTSNAME));
1837 state.ns_vcol = 24;
1838 state.ns_t2col = 44;
1839 state.ns_v2col = 54;
1840 dump_lwpstatus(&state, MSG_ORIG(MSG_CNOTE_DESC_LWPSTATUS_T));
1844 state.ns_vcol = 22;
1845 state.ns_t2col = 42;
1846 state.ns_v2col = 54;
1847 dump_lwpsinfo(&state, MSG_ORIG(MSG_CNOTE_DESC_LWPSINFO_T));
1851 state.ns_vcol = 21;
1852 state.ns_t2col = 34;
1853 state.ns_v2col = 38;
1854 dump_prpriv(&state, MSG_ORIG(MSG_CNOTE_DESC_PRPRIV_T));
1858 state.ns_vcol = 29;
1859 state.ns_t2col = 41;
1860 state.ns_v2col = 56;
1861 dump_priv_impl_info(&state,
1873 state.ns_vcol = 8;
1874 indent_enter(&state,
1877 content = extract_as_lword(&state, &fdesc);
1878 print_str(&state, MSG_ORIG(MSG_STR_EMPTY),
1880 indent_exit(&state);
1891 state.ns_vcol = 22;
1892 state.ns_t2col = 41;
1893 state.ns_v2col = 54;
1894 dump_prfdinfo(&state, MSG_ORIG(MSG_CNOTE_DESC_PRFDINFO_T));
1898 state.ns_vcol = 25;
1899 state.ns_t2col = 45;
1900 state.ns_v2col = 58;
1901 dump_psinfo(&state, MSG_ORIG(MSG_CNOTE_DESC_PSINFO_T));
1905 state.ns_vcol = 23;
1906 state.ns_t2col = 41;
1907 state.ns_v2col = 54;
1908 dump_secflags(&state, MSG_ORIG(MSG_CNOTE_DESC_PRSECFLAGS_T));