summaryrefslogtreecommitdiff
path: root/sysutils/xperfmon/files/patch-ab
blob: 42bd33d334eb4c3cf5791c86660870fde839a2f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
diff -ca ../xperfmon++/Imakefile ./Imakefile
*** ../xperfmon++/Imakefile	Wed Jul 27 22:29:29 1994
--- ./Imakefile	Sun Dec 21 23:03:44 1997
***************
*** 17,31 ****
  SYS_MODULE=	sgi_system
  #endif
  
! EXTRA_LIBRARIES =     $(SUNFLAGS) $(MIPSFLAGS) $(SGIFLAGS)
  
     INSTPGMFLAGS =  $(INSTKMEMFLAGS)
! LOCAL_LIBRARIES = $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
         INCLUDES = -I. -I$(TOOLKITSRC) -I$(TOP) -I$(TOP)/X11
! #       INCLUDES = -I. -I$(TOOLKITSRC) -I$(TOP) -I$(TOP)/X11 -I/usr/include/bsd
!      CDEBUGFLAGS = -O
!            SRCS = TimeChart.c StripChart.c misc.c $(SYS_MODULE).c xperfmon.c nfs.c
!            OBJS = TimeChart.o StripChart.o misc.o $(SYS_MODULE).o xperfmon.o nfs.o
  
  ComplexProgramTarget(xperfmon++)
  
--- 17,38 ----
  SYS_MODULE=	sgi_system
  #endif
  
! #if defined (FreeBSDArchitecture)
! FreeBSDFLAGS=	-lkvm
! SYS_MODULE=     freebsd_system
! CC=		gcc
! EXTRA_DEFINES=  -DHAVE_SYS_PARAM_H
! #endif
! 
! EXTRA_LIBRARIES =     $(SUNFLAGS) $(MIPSFLAGS) $(SGIFLAGS) $(FreeBSDFLAGS)
  
     INSTPGMFLAGS =  $(INSTKMEMFLAGS)
! LOCAL_LIBRARIES = -lXaw -lXt -lXmu -lX11
         INCLUDES = -I. -I$(TOOLKITSRC) -I$(TOP) -I$(TOP)/X11
! #      SRCS = TimeChart.c StripChart.c misc.c $(SYS_MODULE).c xperfmon.c nfs.c
! #      OBJS = TimeChart.o StripChart.o misc.o $(SYS_MODULE).o xperfmon.o nfs.o
!        SRCS = TimeChart.c StripChart.c misc.c $(SYS_MODULE).c xperfmon.c
!        OBJS = TimeChart.o StripChart.o misc.o $(SYS_MODULE).o xperfmon.o
  
  ComplexProgramTarget(xperfmon++)
  
diff -ca ../xperfmon++/README ./README
*** ../xperfmon++/README	Wed Jul 27 22:29:30 1994
--- ./README	Sun Dec 21 23:03:44 1997
***************
*** 18,20 ****
--- 18,52 ----
  		Research Center, rsmith@proteus.arc.nasa.gov. Imake will build for correct
  		O/S if x11r5 is fully installed in all the right places.
  
+ 
+ 3-15-95		Completely new port of systemdependent file (bsd_system.c) for FreeBSD-2.X
+ 		by Lars K�ller @University of Rostock, Germany.
+ 		E-Mail: <lars.koeller@odie.physik2.uni-rostock.de>
+ 
+ 8-16-95		Quick and dirty workaround of -geometry option bug.
+ 		But there are still some side effects when changing the geometry. 
+ 		Fix memory leak in bsd_system.c
+ 		by Lars K�ller @University of Rostock, Germany.
+ 		E-Mail: <lars.koeller@odie.physik2.uni-rostock.de>
+ 
+ 30-10-95	Change 'Free Mem' graph to 'Free Swap' cause the FreeBSD memory system
+ 		tries to minimize the free unused amount of memory.
+ 		Include basic support for FreeBSD > 2.1.
+ 		Number of interrupts now independent from 'Update Intervall'
+ 		by Lars K�ller @University of Rostock, Germany.
+ 		E-Mail: <Lars_Koeller@odie.physik2.uni-rostock.de>
+ 
+ 11-12-95        Fix -geometry bug! Now there is only a MIN_WIDTH of 185 pixels, and the
+ 		MIN_HEIGTH is calculates dynamically depending on the number of active
+ 		graphs.	FreeBSD-2.X only:
+ 		Change 'Free  Swap' graph from absolut into percent values.
+ 		All graphs shoud be independent of the 'Update Intervall'.
+ 		Modify graph labels and add unit of each graph.
+ 		by Lars K�ller @University of Rostock, Germany.
+ 		E-Mail: <Lars_Koeller@odie.physik2.uni-rostock.de>
+ 
+ 5-4-96		Fix some event problems that consumes a lot of cpu power after resizing
+ 		(mwm) or restart of an window manager. Make xperfmon compile with
+ 		FreeBSD-current (2.2, changes in get_swapspace)
+ 		by Lars K�ller @University of Rostock, Germany.
+ 		E-Mail: <Lars_Koeller@odie.physik2.uni-rostock.de>
diff -ca ../xperfmon++/XPerfmon++.ad ./XPerfmon++.ad
*** ../xperfmon++/XPerfmon++.ad	Wed Jul 27 22:29:32 1994
--- ./XPerfmon++.ad	Sun Dec 21 23:03:45 1997
***************
*** 4,27 ****
  ! commented out, the "NFS Server" graph background will be the application
  ! default color, unless some other resource file has specified it.
  ! *PerfChart.highAlarm:		99998
  *perfChartIdle.lowWarn:		10
  *perfChartIdle.lowAlarm:	5
! *perfChartUser.highAlarm:	90
! *perfChartUser.highWarn:	75
! *perfChartSystem.highAlarm:	90
! *perfChartSystem.highWarn:	75
! *perfChartFree.lowWarn:		2000
! *perfChartFree.lowAlarm:	1000
! *perfChartDisk.highWarn:	25
! *perfChartDisk.highAlarm:	50
! *perfChartIntrpts.highWarn:	500
! *perfChartIntrpts.highAlarm:	750
! *perfChartInput.highWarn:	300
! *perfChartInput.highAlarm:	500
! *perfChartOutput.highWarn:	300
! *perfChartOutput.highAlarm:	500
  *perfChartCollision.highWarn:	20
  *perfChartCollision.highAlarm:	50
! *perfChartNFSClient.highWarn:	200
! *perfChartNFSClient.highAlarm:	400
  *font:				6x13
--- 4,40 ----
  ! commented out, the "NFS Server" graph background will be the application
  ! default color, unless some other resource file has specified it.
  ! *PerfChart.highAlarm:		99998
+ *perfChartUser.highAlarm:	95
+ *perfChartUser.highWarn:	75
+ 
+ *perfChartSystem.highAlarm:	40
+ *perfChartSystem.highWarn:	25
+ 
  *perfChartIdle.lowWarn:		10
  *perfChartIdle.lowAlarm:	5
! 
! *perfChartSwap.lowWarn:		10
! *perfChartSwap.lowAlarm:	3
! 
! *perfChartDisk.highWarn:	50
! *perfChartDisk.highAlarm:	100
! 
! *perfChartIntrpts.highWarn:	400
! *perfChartIntrpts.highAlarm:	600
! 
! *perfChartInput.highWarn:	500
! *perfChartInput.highAlarm:	1000
! 
! *perfChartOutput.highWarn:	500
! *perfChartOutput.highAlarm:	1000
! 
  *perfChartCollision.highWarn:	20
  *perfChartCollision.highAlarm:	50
! 
! *perfChartNFSClient.highWarn:	100
! *perfChartNFSClient.highAlarm:	200
! 
! *perfChartNFSServer.highWarn:	100
! *perfChartNFSServer.highAlarm:	200
  *font:				6x13
+ 
 diff -ca ../xperfmon++/xperfmon++.man ./xperfmon++.man
*** ../xperfmon++/xperfmon++.man	Wed Jul 27 22:29:39 1994
--- ./xperfmon++.man	Sun Dec 21 23:03:45 1997
***************
*** 20,51 ****
  The program can produce a filled graph or a line graph and the update interval can be set in
  seconds or 100-millisecond intervals.
  .PP
! While 
  .I xperfmon++
  is running, it is possible to perform certain tasks by pressing keys over
  the window:
  .PP
  .br
! .B Q/q: 
  Quit... Exit gracefully
  .br
! .B l | L: 
  Print out a chart of all current limit settings. This chart will appear in the
  window from which xperfmon++ was invoked.
  .br
! .B s: 
  Decrease update interval (slower) by a small amount
  .br
! .B S: 
  Decrease update interval (slower) by a large amount
  .br
! .B f: 
  Increase update interval (faster) by a small amount
  .br
! .B F: 
  Increase update interval (faster) by a large amount
  .br
! .B ?: 
  Help
  .SH OPTIONS
  .PP
--- 20,51 ----
  The program can produce a filled graph or a line graph and the update interval can be set in
  seconds or 100-millisecond intervals.
  .PP
! While
  .I xperfmon++
  is running, it is possible to perform certain tasks by pressing keys over
  the window:
  .PP
  .br
! .B Q/q:
  Quit... Exit gracefully
  .br
! .B l | L:
  Print out a chart of all current limit settings. This chart will appear in the
  window from which xperfmon++ was invoked.
  .br
! .B s:
  Decrease update interval (slower) by a small amount
  .br
! .B S:
  Decrease update interval (slower) by a large amount
  .br
! .B f:
  Increase update interval (faster) by a small amount
  .br
! .B F:
  Increase update interval (faster) by a large amount
  .br
! .B ?:
  Help
  .SH OPTIONS
  .PP
***************
*** 79,85 ****
  .PP
  The following options specify the list of statistics to be displayed.
  If none are present on the command line, then all statistics are displayed.
! If any "+" options are listed the default list is cleared and only those 
  listed as "+" options are displayed.
  If any "-" options are listed, then they are taken away from the
  default list. Specifying both "-" and "+" options will produce unpredictable
--- 79,85 ----
  .PP
  The following options specify the list of statistics to be displayed.
  If none are present on the command line, then all statistics are displayed.
! If any "+" options are listed the default list is cleared and only those
  listed as "+" options are displayed.
  If any "-" options are listed, then they are taken away from the
  default list. Specifying both "-" and "+" options will produce unpredictable
***************
*** 94,101 ****
  .B \-idlecpu | \+idlecpu
  Graph \fIIdle\fP CPU Percentage.
  .TP 26
! .B \-freemem | \+freemem
! Graph \fIFree Memory\fP.
  .TP 26
  .B \-diskxfr | \+diskxfr
  Graph \fIDisk Transfers\fP per interval period.
--- 94,101 ----
  .B \-idlecpu | \+idlecpu
  Graph \fIIdle\fP CPU Percentage.
  .TP 26
! .B \-free{mem/swap} | \+free{mem/swap}
! Graph \fIFree Memory/Swap (Operating system dependent, swap for FreeBSD in %)\fP.
  .TP 26
  .B \-diskxfr | \+diskxfr
  Graph \fIDisk Transfers\fP per interval period.
***************
*** 122,132 ****
  .sp
  \fIxperfmon++\fP will accept a number of \fIlimit\fP options. When a data point
  exceeds a high or low limit the background of that graph changes color to visually reflect
! the condition. The background color is an indication of the min (low limit) or max (high limit) 
  value currently contained
  in the graph. When no limit has been exceeded the background color is set to green. If no limits have
! been set for that graph its background color remains the same as the applications default color, 
! which is usually white. 
  .PP
  WARNING: High and Low limits are mutually exclusive, i.e., you can set high limits or low limits, but
  not both. If both are inadvertently set, the high limits are checked first, and the low limit will be
--- 122,132 ----
  .sp
  \fIxperfmon++\fP will accept a number of \fIlimit\fP options. When a data point
  exceeds a high or low limit the background of that graph changes color to visually reflect
! the condition. The background color is an indication of the min (low limit) or max (high limit)
  value currently contained
  in the graph. When no limit has been exceeded the background color is set to green. If no limits have
! been set for that graph its background color remains the same as the applications default color,
! which is usually white.
  .PP
  WARNING: High and Low limits are mutually exclusive, i.e., you can set high limits or low limits, but
  not both. If both are inadvertently set, the high limits are checked first, and the low limit will be
***************
*** 135,141 ****
  There are four possible \fIlimit\fP conditions:
  .TP 16
  .B High Warning
! When any value in the current graph exceeds the  \fIhigh warning\fP limit 
  the background color of that graph is changed to \fIyellow\fP.
  .TP 16
  .B Low Warning
--- 135,141 ----
  There are four possible \fIlimit\fP conditions:
  .TP 16
  .B High Warning
! When any value in the current graph exceeds the  \fIhigh warning\fP limit
  the background color of that graph is changed to \fIyellow\fP.
  .TP 16
  .B Low Warning
***************
*** 164,170 ****
  .TP 26
  .B \-high*Warn \fIvalue\fP
  Set high Warning value for *.
! .PP 
  Where "*" is one of the following:
  .TP 12
  .B user
--- 164,170 ----
  .TP 26
  .B \-high*Warn \fIvalue\fP
  Set high Warning value for *.
! .PP
  Where "*" is one of the following:
  .TP 12
  .B user
***************
*** 176,183 ****
  .B idle
  Set \fIlimit\fP value for Idle CPU Percentage.
  .TP 12
! .B mem
! Set \fIlimit\fP value for Free Memory.
  .TP 12
  .B disk
  Set \fIlimit\fP value for Disk Transfers.
--- 176,183 ----
  .B idle
  Set \fIlimit\fP value for Idle CPU Percentage.
  .TP 12
! .B mem/swap
! Set \fIlimit\fP value for Free Memory/Swap (OS dependent, swap for FreeBSD).
  .TP 12
  .B disk
  Set \fIlimit\fP value for Disk Transfers.
***************
*** 206,212 ****
  Set \fIlow user Alarm\fP value to 25.
  .PP
  As with any X-based command line specification you only need specify the minimum number of
! characters required to make the string unique. 
  See below for a description of setting \fIlimit\fP values using application resource specifications.
  .SH TOOLKIT OPTIONS
  .PP
--- 206,212 ----
  Set \fIlow user Alarm\fP value to 25.
  .PP
  As with any X-based command line specification you only need specify the minimum number of
! characters required to make the string unique.
  See below for a description of setting \fIlimit\fP values using application resource specifications.
  .SH TOOLKIT OPTIONS
  .PP
***************
*** 313,320 ****
  .B System
  Set System CPU Percentage resource.
  .TP 16
! .B Free
! Set Free Memory resource.
  .TP 16
  .B Disk
  Set Disk Transfer count resource.
--- 313,320 ----
  .B System
  Set System CPU Percentage resource.
  .TP 16
! .B Free/Swap
! Set Free Memory/Swap resource.
  .TP 16
  .B Disk
  Set Disk Transfer count resource.
***************
*** 354,366 ****
  .SH BUGS
  .I xperfmon++
  requires the ability to open and read the special system file
! .I /dev/kmem. 
  On most systems, this requires the
  .I suid
  (set user id) bit to be set with root ownership, or the
  .I sgid
! (set group id) bit to be set and membership in the same group as 
! .I /dev/kmem. 
  .PP
  Reading /dev/kmem is inherently non-portable.  Therefore, the widget upon
  which this application is based must be ported to each new operating system.
--- 354,366 ----
  .SH BUGS
  .I xperfmon++
  requires the ability to open and read the special system file
! .I /dev/kmem.
  On most systems, this requires the
  .I suid
  (set user id) bit to be set with root ownership, or the
  .I sgid
! (set group id) bit to be set and membership in the same group as
! .I /dev/kmem.
  .PP
  Reading /dev/kmem is inherently non-portable.  Therefore, the widget upon
  which this application is based must be ported to each new operating system.
***************
*** 371,377 ****
  by fully covering the xperfmon++ window and then exposing it, or by iconifying the
  xperfmon++ window and then de-iconifying it.
  .SH AUTHORS
! The X11 version of 
  .I xperfmon
  was written by Emanuel Jay Berkenbilt, Project Athena on
  1/21/1988.
--- 371,377 ----
  by fully covering the xperfmon++ window and then exposing it, or by iconifying the
  xperfmon++ window and then de-iconifying it.
  .SH AUTHORS
! The X11 version of
  .I xperfmon
  was written by Emanuel Jay Berkenbilt, Project Athena on
  1/21/1988.
***************
*** 381,387 ****
  was modified by Thomas Bagli, PCS Computer Systeme GmbH, West Germany, to
  be a toolkit-based client.
  .PP
! .I xperfmon++ 
  was created from \fIxperfmon\fP, and the Athena StripChart Widget,
  by Roger Smith, Sterling Software @ NASA-Ames Research Center, Moffett Field, California. Version 1.0
  was released in January, 1994.
--- 381,387 ----
  was modified by Thomas Bagli, PCS Computer Systeme GmbH, West Germany, to
  be a toolkit-based client.
  .PP
! .I xperfmon++
  was created from \fIxperfmon\fP, and the Athena StripChart Widget,
  by Roger Smith, Sterling Software @ NASA-Ames Research Center, Moffett Field, California. Version 1.0
  was released in January, 1994.
***************
*** 389,398 ****
  If you like this program, or if you have difficulties, I would like to hear your comments.
  E-Mail me at rsmith@proteus.arc.nasa.gov.
  .PP
! .I xperfmon++ 
  was written for Suns running SunOs and X11R5 Windows software. If some energetic soul
  out there would like to port this program to any other operating system or architecture I would be
  glad to incorporate the modifications into this master copy. Send me your changes via E-Mail at the
  above address.
  .PP
  Enjoy!
--- 389,418 ----
  If you like this program, or if you have difficulties, I would like to hear your comments.
  E-Mail me at rsmith@proteus.arc.nasa.gov.
  .PP
! .I xperfmon++
  was written for Suns running SunOs and X11R5 Windows software. If some energetic soul
  out there would like to port this program to any other operating system or architecture I would be
  glad to incorporate the modifications into this master copy. Send me your changes via E-Mail at the
  above address.
+ .PP
+ .I xperfmon++ V1.2 for FreeBSD
+ was written by Lars Koeller with a lot of helpful notes by Joerg Wunsch.
+ .PP
+ .I xperfmon++ V1.31 for FreeBSD
+ close some memory leaks, fix geometry (resize) bug, display free swap
+ without resizing of graph in percent.
+ .PP
+ .I xperfmon++ V1.33 for FreeBSD
+ contains some fixes due to event problems and compiles fine under
+ FreeBSD 2.2 (changes in get_swapspace).
+ Now the -geometry switch works well!
+ .PP
+ .I xperfmon++ V1.40 for FreeBSD
+ contains some fixes due to changes in the networking structs and
+ cleans up the FreeBSD version number #if's. Now it should compile fine
+ from FreeBSD 2.0 up to FreeBSD-3.0-current.
+ .PP
+ Please E-Mail any bugs or comments with the subject
+ "xperfmon++: ..." to Lars.Koeller@Uni-Bielefeld.DE.
  .PP
  Enjoy!