/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:37:56 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:06 _$11$DUA933:[BUILD.SDL]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $DMPDEF ***/ #ifndef __DMPDEF_LOADED #define __DMPDEF_LOADED 1 #pragma nostandard #ifdef __cplusplus extern "C" { #define __unknown_params ... #else #define __unknown_params #endif #if !defined(__VAXC) && !defined(VAXC) #define __struct struct #define __union union #else #define __struct variant_struct #define __union variant_union #endif /* */ /* LAYOUT OF THE HEADER BLOCK OF THE SYSTEM DUMP FILE */ /* (WHICH IS THE FIRST DISK BLOCK OF SYS$SYSTEM:SYSDUMP.DMP) */ /* */ #define DMP$M_SELECT_DUMPSTYLE 0x1 #define DMP$M_FULL_MESSAGES 0x2 #define DMP$M_DO_DOSD 0x4 #define DMP$M_COMPRESSED_DUMP 0x8 #define DMP$M_IGN_DOSD_VOLLABEL_CHK 0x10 #define DMP$M_DOSD_IGNORE_SIZE_CHK 0x200 #define DMP$M_NO_DOTS 0x400 #define DMP$M_BUGCHECK_SQUARED 0x800 #define DMP$M_DOSD_7K_VALIDATE_PATHS 0x8000 #define DMP$M_DOSD_7K 0xFFF0000 #define DMP$M_OLDDUMP 0x1 #define DMP$M_EMPTY 0x2 #define DMP$M_HDRBLK 0x4 #define DMP$M_ERRLOG 0x8 #define DMP$M_MEMORY 0x10 #define DMP$M_SPT 0x20 #define DMP$M_WRITECOMP 0x40 #define DMP$M_ERRLOGCOMP 0x80 #define DMP$M_DUMP_STYLE 0xF00 #define DMP$M_DUMP_COPIED 0x1000 #define DMP$M_DUMP_COPING 0x2000 #define DMP$M_CLUE_SNAPDONE 0x4000 #define DMP$M_DUMP_IN_USE 0x8000 #define DMP$K_FULL_DUMP 0 /* FULL PHYSICAL MEMORY DUMP (OLD WAY) */ #define DMP$K_SUBSET_DUMP 1 /* SUBSETTED DUMP FILE (NOT ALL INFO SAVED) */ #define DMP$C_DUMP_LUMP 127 /* NUMBER OF SPTES REQUIRED FOR SUBSET DUMPS */ #define DMP$M_COMPRESSED 0x1 #define DMP$M_NOTSAVED 0x2 #define DMP$M_VAXDUMP 0x4 #define DMP$M_ALPHADUMP 0x8 #define DMP$M_BITS_4_7 0xF0 #define DMP$C_MEMDSCSIZ 8 /* SIZE OF ONE MEMORY DESCRIPTOR */ #define DMP$C_NMEMDSC 8 /* NUMBER OF MEMORY DESCRIPTORS */ #define DMP$K_DUMPVER 1328 /* DUMP FILE VERSION NUMBER */ #define DMP$K_LENGTH 132 /* LENGTH OF FILE HEADER */ #define DMP$C_LENGTH 132 /* LENGTH OF FILE HEADER */ struct dmpdef { __union { /* */ unsigned int dmp$l_errseq; /* LAST ERROR LOG SEQ. NUMBER */ __struct { unsigned dmp$v_select_dumpstyle : 1; /* Differentiate between full and subset dumps */ unsigned dmp$v_full_messages : 1; /* To keep the risc and cisc platforms in step */ unsigned dmp$v_do_dosd : 1; /* Requests for Dump Off System Disk behaviour */ unsigned dmp$v_compressed_dump : 1; /* */ unsigned dmp$v_ign_dosd_vollabel_chk : 1; /* Over-ride volume label check on DOSD device */ unsigned dmp$v_filler : 4; /* */ unsigned dmp$v_dosd_ignore_size_chk : 1; /*Allow > 2Meg full dumps */ unsigned dmp$v_no_dots : 1; /* Disallow printing them */ unsigned dmp$v_bugcheck_squared : 1; /* Prevent recursive bugchecks */ unsigned dmp$v_filler : 3; /* */ unsigned dmp$v_dosd_7k_validate_paths : 1; /* For Neon systems only, validate both paths to system disk */ unsigned dmp$v_dosd_7k : 12; /* For Neon systems only dump device 1 -> FFF */ unsigned dmp$v_filler : 4; /* */ } dmp$r_dump_bits; } dmp$r_dumpcontrol_overlay; __union { __struct { unsigned short int dmp$w_flags; /* DUMP FILE FLAGS */ } dmp$r_flags_fields; __struct { unsigned dmp$v_olddump : 1; /* SET IF DUMP ALREADY ANALYZED */ unsigned dmp$v_empty : 1; /* SET IF DUMP HAS NO DATA BLOCKS */ unsigned dmp$v_hdrblk : 1; /* SET IF ERROR WRITING FIRST BLOCK OF DUMP HEADER */ unsigned dmp$v_errlog : 1; /* SET IF ERROR WRITING BLOCKS 2-3 OF DUMP HEADER */ unsigned dmp$v_memory : 1; /* SET IF ERROR WRITING MEMORY CONTENTS TO DUMP FILE */ unsigned dmp$v_spt : 1; /* SET IF ERROR WRITING SYSTEM PAGE TABLE BLOCKS TO DUMP FILE */ unsigned dmp$v_writecomp : 1; /* SET IF DUMP WRITE WAS COMPLETED */ unsigned dmp$v_errlogcomp : 1; /* SET IF HEADER/ERROR LOGS WRITE WAS COMPLETED */ unsigned dmp$v_dump_style : 4; /* SET TO DIFFERENTIATE BETWEEN DIFFERENT STYLE DUMPS */ unsigned dmp$v_dump_copied : 1; /* Set if SDA has successfully copied this dump */ unsigned dmp$v_dump_coping : 1; /* Set if this dump is being copied */ unsigned dmp$v_clue_snapdone : 1; /* Set if CLUE has taken a snapshot of this dump */ unsigned dmp$v_dump_in_use : 1; /* Set if this dump is being written */ } dmp$r_flags_bits; /* DUMP_STYLE BITFIELD SETTINGS */ } dmp$r_flags_overlay; __union { __struct { unsigned char dmp$b_flags2; /* More dump file flags */ } dmp$r_flags2_fields; __struct { unsigned dmp$v_compressed : 1; /* SET IF DUMP DATA IS COMPRESSED */ unsigned dmp$v_notsaved : 1; /* Set by SYSINIT if SAVEDUMP not set and dump in PAGEFILE.SYS */ unsigned dmp$v_vaxdump : 1; /* Never set */ unsigned dmp$v_alphadump : 1; /* Always set */ unsigned dmp$v_bits_4_7 : 4; /* SPARE */ } dmp$r_flags2_bits; } dmp$r_flags2_overlay; unsigned char dmp$b_erlbufpages; /* PAGES PER ERL BUFFER; IF ZERO, CORRECT VALUE IS ONE */ unsigned int dmp$l_sbr; /* SYSTEM BASE REGISTER */ unsigned int dmp$l_slr; /* SYSTEM LENGTH REGISTER */ unsigned int dmp$l_ksp; /* KERNEL STACK POINTER */ unsigned int dmp$l_esp; /* EXECUTIVE STACK POINTER */ unsigned int dmp$l_ssp; /* SUPERVISOR STACK POINTER */ unsigned int dmp$l_usp; /* USER STACK POINTER */ unsigned int dmp$l_isp; /* INTERRUPT STACK POINTER */ __union { unsigned int dmp$l_memory_desc_space [16]; /* RESERVE SPACE FOR 8 MEMORY DESCRIPTORS (2 LONGWORDS EACH) */ __union { unsigned int dmp$l_memdsc; /* 8 MEMORY DESCRIPTORS */ __struct { unsigned dmp$v_pagcnt : 24; /* NUMBER OF PAGES IN MEMORY */ unsigned dmp$v_tr : 8; /* TR NUMBER FOR MEMORY */ unsigned dmp$v_basepfn : 32; /* BASE PFN FOR MEMORY */ } dmp$r_memdsc_bits; } dmp$r_memdsc_overlay; } dmp$r_memory_desc; unsigned int dmp$l_sysver; /* SYSTEM VERSION NUMBER */ unsigned int dmp$l_check; /* ONES COMPLEMENT OF SYSVER */ unsigned short int dmp$w_dumpver; /* DUMP FILE VERSION NUMBER */ unsigned short int dmp$w_erlbufcnt; /* NUMBER OF ERROR LOG BUFFERS */ unsigned short int dmp$w_erlbufhead; /* RING BUFFER HEAD INDEX */ unsigned short int dmp$w_erlbuftail; /* RING BUFFER TAIL INDEX */ unsigned int dmp$l_errstatus; /* LAST ERROR STATUS FROM DUMP WRITE */ unsigned int dmp$l_dumperrs; /* COUNT OF ERRORS DURING DUMP WRITE */ unsigned int dmp$l_mempagcnt; /* COUNT OF MEMORY PAGES DUMPED */ unsigned int dmp$l_saveprccnt; /* COUNT OF SAVED PROCESSES (SUBSET DUMP) */ unsigned int dmp$l_crasherl; /* SYSTEM CRASH ERR LOG ENTRY */ } ; #if !defined(__VAXC) && !defined(VAXC) #define dmp$l_errseq dmp$r_dumpcontrol_overlay.dmp$l_errseq #define dmp$v_select_dumpstyle dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_select_dumpstyle #define dmp$v_full_messages dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_full_messages #define dmp$v_do_dosd dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_do_dosd #define dmp$v_compressed_dump dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_compressed_dump #define dmp$v_ign_dosd_vollabel_chk dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_ign_dosd_vollabel_chk #define dmp$v_dosd_ignore_size_chk dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_dosd_ignore_size_chk #define dmp$v_no_dots dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_no_dots #define dmp$v_bugcheck_squared dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_bugcheck_squared #define dmp$v_dosd_7k_validate_paths dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_dosd_7k_validate_paths #define dmp$v_dosd_7k dmp$r_dumpcontrol_overlay.dmp$r_dump_bits.dmp$v_dosd_7k #define dmp$w_flags dmp$r_flags_overlay.dmp$r_flags_fields.dmp$w_flags #define dmp$v_olddump dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_olddump #define dmp$v_empty dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_empty #define dmp$v_hdrblk dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_hdrblk #define dmp$v_errlog dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_errlog #define dmp$v_memory dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_memory #define dmp$v_spt dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_spt #define dmp$v_writecomp dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_writecomp #define dmp$v_errlogcomp dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_errlogcomp #define dmp$v_dump_style dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_dump_style #define dmp$v_dump_copied dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_dump_copied #define dmp$v_dump_coping dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_dump_coping #define dmp$v_clue_snapdone dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_clue_snapdone #define dmp$v_dump_in_use dmp$r_flags_overlay.dmp$r_flags_bits.dmp$v_dump_in_use #define dmp$b_flags2 dmp$r_flags2_overlay.dmp$r_flags2_fields.dmp$b_flags2 #define dmp$v_compressed dmp$r_flags2_overlay.dmp$r_flags2_bits.dmp$v_compressed #define dmp$v_notsaved dmp$r_flags2_overlay.dmp$r_flags2_bits.dmp$v_notsaved #define dmp$v_vaxdump dmp$r_flags2_overlay.dmp$r_flags2_bits.dmp$v_vaxdump #define dmp$v_alphadump dmp$r_flags2_overlay.dmp$r_flags2_bits.dmp$v_alphadump #define dmp$v_bits_4_7 dmp$r_flags2_overlay.dmp$r_flags2_bits.dmp$v_bits_4_7 #define dmp$l_memdsc dmp$r_memory_desc.dmp$r_memdsc_overlay.dmp$l_memdsc #define dmp$v_pagcnt dmp$r_memory_desc.dmp$r_memdsc_overlay.dmp$r_memdsc_bits.dmp$v_pagcnt #define dmp$v_tr dmp$r_memory_desc.dmp$r_memdsc_overlay.dmp$r_memdsc_bits.dmp$v_tr #define dmp$v_basepfn dmp$r_memory_desc.dmp$r_memdsc_overlay.dmp$r_memdsc_bits.dmp$v_basepfn #endif /* #if !defined(__VAXC) && !defined(VAXC) */ #ifdef __cplusplus } #endif #pragma standard #endif /* __DMPDEF_LOADED */