Skip to content

Commit b7f3cd0

Browse files
committed
Update to reference MQ 9.2.3; fix QESD interpretation
1 parent 09f0f52 commit b7f3cd0

File tree

13 files changed

+32
-8
lines changed

13 files changed

+32
-8
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
History (newest at top)
33
=======================
4+
Jul 2021 (v5.3.2)
5+
* Recognise and ignore 115 subtype 240 (an internal undocumented stucture)
6+
* Fix an error in QESD interpretation
7+
* Update for MQ V9.2.3 (no real change)
8+
9+
410
Mar 2021 (v5.3.1)
511
* Update for MQ V9.2.2 (no real change)
612

bin/aix/convH

0 Bytes
Binary file not shown.

bin/aix/mqsmfcsv

574 Bytes
Binary file not shown.

bin/linux/convH

104 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

4.14 KB
Binary file not shown.

bin/win/mqsmfcsv.exe

-3.5 KB
Binary file not shown.

src/M

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else
2626
flags="$flags $optim"
2727
fi
2828

29-
export PLATFLAGS=$flags CC=$cc VERS=922
29+
export PLATFLAGS=$flags CC=$cc VERS=923
3030
make -e -f Makefile.unix $*
3131

3232
rm -f $targdir/convH $targdir/mqsmfcsv

src/Makefile.gcc.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CC=i686-w64-mingw32-gcc
33
# CFLAGS= -I. -m32 -fpack-struct=8 -DPLATFORM_WINDOWS
44
CFLAGS= -I. -m32 -DPLATFORM_WINDOWS
55
PLATFLAGS=
6-
VERS=922
6+
VERS=923
77
SRC = mqsmf.c \
88
smfDDL.c \
99
smfDate.c \

src/Makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CFLAGS=-nologo /D_CRT_SECURE_NO_WARNINGS /Zp1 /J /O2 /DPLATFORM_WINDOWS
2-
VERS=922
2+
VERS=923
33
SRC = mqsmf.c \
44
smfDDL.c \
55
smfDate.c \

src/mqsmf.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ static unsigned int startingRecords = 0;
159159
static myoff_t pos;
160160
static int offsetCorrection = 0;
161161

162+
static BOOL warn115_240=FALSE;
163+
162164
static time_t startTime = 0;
163165
static char *formatRate;
164166

@@ -910,6 +912,18 @@ int main( int argc, char *argv[] )
910912
}
911913
break;
912914

915+
case 240:
916+
/* These are internal undocumented structures. There's not much we can do */
917+
/* except ignore them. We will see them show up in the overall subtype */
918+
/* stats of records processed, but no other debug. */
919+
if (!warn115_240)
920+
{
921+
sprintf(tmpHead,"Internal SMF %d subtype %d records found",SMFTYPE_MQ_STAT,recordSubType);
922+
fprintf(infoStream,"%s\n",tmpHead);
923+
warn115_240=TRUE;
924+
}
925+
break;
926+
913927
default:
914928
knownSubType = FALSE;
915929
sprintf(tmpHead,"Unknown SMF %d subtype %d",SMFTYPE_MQ_STAT,recordSubType);

src/mqsmfstrucU.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file was generated from cqsdsmfc.h version 922
2+
* This file was generated from cqsdsmfc.h version 923
33
* by the convH program (convH64.c) in the src directory
44
* Do not try to edit this header manually.
55
*

src/mqsmfstrucW.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file was generated from cqsdsmfc.h version 922
2+
* This file was generated from cqsdsmfc.h version 923
33
* by the convH program (convH64.c) in the src directory
44
* Do not try to edit this header manually.
55
*

src/t115/printQESD.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void printQESD(qesd *p)
4747
ADDU32 ("Pages_Reallocated", p -> qesdsmrp);
4848
ADDU32 ("Pages_Cleaned_Up" , p -> qesdsmcp);
4949
ADDU32 ("Failed_Allocates" , p -> qesdsmfl);
50+
5051
ADDU32 ("Max_Msg_Count" , p -> qesdsmmm);
5152
ADDU32 ("Max_Used_Blocks" , p -> qesdsmmu);
5253
ADDU32 ("Min_Free_Blocks" , p -> qesdsmmf);
@@ -58,6 +59,7 @@ void printQESD(qesd *p)
5859
ADDU32 ("Free_Empty_Buffers", p -> qesdbffe);
5960
ADDU32 ("Pool_Waiters" , p -> qesdbfpw);
6061
ADDU32 ("Buffer_Waiters" , p -> qesdbfbw);
62+
6163
ADDU32 ("Buffer_Get_Count", p -> qesdbfgb);
6264
ADDU32 ("Buffer_Get_Valid", p -> qesdbfgv);
6365
ADDU32 ("Buffer_Get_Empty", p -> qesdbfgm);
@@ -73,9 +75,11 @@ void printQESD(qesd *p)
7375
ADDU32 ("Waited_For_Pool" , p -> qesdbfwp);
7476
ADDU32 ("Waited_For_Buffer", p -> qesdbfwb);
7577
ADDSTCK ("Pool_Wait_Time" , p -> qesdbfpt);
76-
ADDU32 ("Buffer_Wait_Time" , p -> qesdbfmu);
77-
ADDU32 ("Buffer_Max_Used" , p -> qesdbfmf);
78-
ADDU32 ("Buffer_Min_Free" , p -> qesdbfmp);
78+
ADDU32 ("Buffer_Wait_Time" , p -> qesdbfbt);
79+
80+
ADDU32 ("Buffer_Max_Used" , p -> qesdbfmu);
81+
ADDU32 ("Buffer_Min_Free" , p -> qesdbfmf);
82+
ADDU32 ("Pool_Max_Waiters" , p -> qesdbfmp);
7983
ADDU32 ("Buffer_Max_Waiters", p -> qesdbfmb);
8084

8185
ADDU32 ("High_Allocated_Ctl_Interval", p -> qesdioha);

0 commit comments

Comments
 (0)