aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xperfmon
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-02-21 08:48:03 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-02-21 08:48:03 +0000
commit62ca955f04ec798e2b9391c80a53b438eb5a511a (patch)
treec8c1d162d15b124a3ae17bc03b46f47aff92a82a /sysutils/xperfmon
parentc5777122e6247058e38711e9c5c59cf33c997863 (diff)
downloadports-62ca955f04ec798e2b9391c80a53b438eb5a511a.tar.gz
ports-62ca955f04ec798e2b9391c80a53b438eb5a511a.zip
Notes
Diffstat (limited to 'sysutils/xperfmon')
-rw-r--r--sysutils/xperfmon/files/patch-aa21
-rw-r--r--sysutils/xperfmon/files/patch-ac4
2 files changed, 8 insertions, 17 deletions
diff --git a/sysutils/xperfmon/files/patch-aa b/sysutils/xperfmon/files/patch-aa
index 5a44adbca135..6bd96e2a096b 100644
--- a/sysutils/xperfmon/files/patch-aa
+++ b/sysutils/xperfmon/files/patch-aa
@@ -3,7 +3,7 @@ diff -c -N ../xperfmon++/freebsd_system.c ./freebsd_system.c
--- ./freebsd_system.c Sun Sep 22 17:14:41 1996
***************
*** 0 ****
---- 1,581 ----
+--- 1,572 ----
+ /*
+ * Perfmon Performance Monitor
+ *
@@ -96,16 +96,7 @@ diff -c -N ../xperfmon++/freebsd_system.c ./freebsd_system.c
+ #define CTL_FS CTL_VFS /* compatibility w/ Lite1 */
+ #endif
+
-+ /*
-+ * XXX temporary hack: FreeBSD-2.2-current has been floating around
-+ * with 199508 for some time; FreeBSD-2.1 will be 199511 however (so
-+ * 2.2-current has been bumped to 199512 recently). Recognize the old
-+ * 2.2-current as NFSv3 for a grace period.
-+ * FreeBSD 2.0.5 was 199504, btw. Both, 2.0.5 and 2.1 don't have
-+ * NFSv3.
-+ * Also 2.1.5 which is 199607 don't have NFSv3! So check > 199607
-+ */
-+ #if __FreeBSD_version > 199607 || __FreeBSD_version == 199508
++ #if __FreeBSD_version >= 220000
+ # define HAS_NFS_V3
+ #endif /* FreeBSD_version */
+
@@ -489,7 +480,7 @@ diff -c -N ../xperfmon++/freebsd_system.c ./freebsd_system.c
+ struct swdevt *sw;
+ long blocksize, *perdev;
+ struct rlist head;
-+ #if __FreeBSD_version > 199607 || __FreeBSD_version == 199508
++ #if __FreeBSD_version >= 220000
+ struct rlisthdr swaplist;
+ struct rlist *swapptr;
+ #else
@@ -508,14 +499,14 @@ diff -c -N ../xperfmon++/freebsd_system.c ./freebsd_system.c
+ /* Count up swap space. */
+ nfree = 0;
+ memset(perdev, 0, nswdev * sizeof(*perdev));
-+ #if __FreeBSD_version > 199607 || __FreeBSD_version == 199508
++ #if __FreeBSD_version >= 220000
+ swapptr = swaplist.rlh_list;
+ while (swapptr) {
+ #else
+ while (swaplist) {
+ #endif
+ int top, bottom, next_block;
-+ #if __FreeBSD_version > 199607 || __FreeBSD_version == 199508
++ #if __FreeBSD_version >= 220000
+ kvm_read(kd, (u_long)swapptr, &head, sizeof(struct rlist));
+ #else
+ kvm_read(kd, (u_long)swaplist, &head, sizeof(struct rlist));
@@ -545,7 +536,7 @@ diff -c -N ../xperfmon++/freebsd_system.c ./freebsd_system.c
+ }
+ perdev[(bottom / dmmax) % nswdev] +=
+ top - bottom + 1;
-+ #if __FreeBSD_version > 199607 || __FreeBSD_version == 199508
++ #if __FreeBSD_version >= 220000
+ swapptr = head.rl_next;
+ #else
+ swaplist = head.rl_next;
diff --git a/sysutils/xperfmon/files/patch-ac b/sysutils/xperfmon/files/patch-ac
index 1b74333552d9..c2cc4b6f7632 100644
--- a/sysutils/xperfmon/files/patch-ac
+++ b/sysutils/xperfmon/files/patch-ac
@@ -14,7 +14,7 @@
- if (nl[N_IFNET].n_value != 0) {
+ if ((ifnetaddr = nl[N_IFNET].n_value) != 0) {
-+#if __FreeBSD_version <= 199701
++#if __FreeBSD_version < 300000
struct ifnet ifnet;
kread(N_IFNET, &ifnetaddr, sizeof(ifnetaddr));
old_packets = packets;
@@ -22,7 +22,7 @@
packets.collisions += ifnet.if_collisions;
ifnetaddr = (u_long) ifnet.if_next;
}
-+#else /* 3.0-current, Jan 1997 */
++#else /* 3.0-* */
+ /* Stolen from netstat/if.c */
+ struct ifnet ifnet;
+ struct ifnethead ifnethead;