Hi,

$ vmstat -M bsd.0.core -N bsd.0    
vmstat: undefined symbols: _uvm_km_pages_free 

There is no uvm_km_pages_free in our kernel.  The corresponding
lines in dopool_sysctl() have been removed from vmstat.c revision
1.116.  Remove uvm_km_pages_free from dopool_kvm() to allow analysing
a core dump.

ok?

bluhm

Index: usr.bin/vmstat/vmstat.c
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/usr.bin/vmstat/vmstat.c,v
retrieving revision 1.121
diff -u -p -u -p -r1.121 vmstat.c
--- usr.bin/vmstat/vmstat.c     14 May 2013 20:39:25 -0000      1.121
+++ usr.bin/vmstat/vmstat.c     18 Jul 2013 00:49:41 -0000
@@ -78,8 +78,6 @@ struct nlist namelist[] = {
        { "_nselcoll" },
 #define X_POOLHEAD     7               /* sysctl */
        { "_pool_head" },
-#define X_KMPAGESFREE  8               /* sysctl */
-       { "_uvm_km_pages_free" },
        { "" },
 };
 
@@ -1065,8 +1063,6 @@ dopool_kvm(void)
 
        inuse /= 1024;
        total /= 1024;
-       kread(X_KMPAGESFREE, &kmfp, sizeof(kmfp));
-       total += kmfp * (getpagesize() / 1024);
        printf("\nIn use %ldK, total allocated %ldK; utilization %.1f%%\n",
            inuse, total, (double)(100 * inuse) / total);
 }

Reply via email to