Standalone Logtool for MPE/iX
1 2 3 4 5 6 7 8 9 10 11 12
== == == == == == == == == == == ==
1: FF .
DATA LEN: 24 MGR CODE: 116
TAG DEFINITION NOT GIVEN - FIELD WILL BE DISPLAYED IN HEX:
1 2 3 4 5 6 7 8 9 10 11 12
== == == == == == == == == == == ==
1: 02 00 00 00 00 00 00 0C 00 45 45 45 . . . . . . . . . E E E
13: 00 00 00 0C 00 67 46 94 00 00 00 09 . . . . . g F . . . . .
===============================================================================
TYPE DESCRIPTION COUNT
====== ==================== ==========
111 I/O ERROR 1
====== ==================== ==========
LOGTOOL>
Because the record definition file only contains declarations for the header, the "I/O manager" dependent portion of the
log entry is displayed as a hex dump. The "I/O manager" dependent portion of the record definition will be given in
the format of TAG`ID declarations. As an example, the following PASCAL record defines an "I/O manager"
dependent portion of the log entry:
TYPE
dam_log_info_type = PACKED RECORD
hw_status : bit8;
dam_mgr_ptr : srv_ptr_type;
dam_msg_ptr : msg_ptr_type;
dam_uid_num : integer;
END;
DAM_LOG_INFO_TYPE MAX_RECORD_SIZE = x18 BYTES
HW_TSTATUS x0.0 @ 1.0
DAM_MGR_PTR x4.0 @ 8.0
DAM_MSG_PTR xC.0 @ 8.0
DAM_UID_NUM x14.0 @ 4.0
The TAG`ID definition for the above declaration is the following, which will be stored in the file LAYPORT:
TAG`ID 111 {HP-IB device adapter manager}
RECORD`LENGTH 192
N`FIELD 7
RECORD`LABEL
VARIANT [25] (116)
FIELD`FORMAT (8,int,16) {Hardware status}
(24,junk) {Compiler filler}
(32,int,16) {Port data area address}
(32,int,16)
(32,int,16) {Message pointer}
(32,int,16)
(32,int,10) {UID}
VAR`LABEL [ 1 ] "HDWR STATUS:"
[ 3 ] "PDA SPACE`ID:"
[ 4 ] "PDA OFFSET:"
[ 5 ] "MSG SPACE`ID:"
[ 6 ] "MSG OFFSET:"
[ 7 ] "UID:"
Now, the TAG`ID can be installed through LOGTOOL:
:logtool
************************************************************
***** *****
***** LOGTOOL *****
***** *****
***** (C) Copyright Hewlett Packard Co. *****
***** All Rights Reserved. *****
***** Version A.00.00 *****
***** *****