summaryrefslogtreecommitdiff
path: root/usr.sbin/procmap/procmap.c
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2016-04-16 18:39:32 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2016-04-16 18:39:32 +0000
commit7b9cdc8b98ee55e5d4a072a29a24b3f3ba4af08e (patch)
tree0f64dccc7f6f4a7d86188d8cc92d9f1e39b8c746 /usr.sbin/procmap/procmap.c
parent4705225d3e537e3c9dcaaf70fc3edf83c143a2c7 (diff)
Remove am_maxslot from amap.
am_maxslot represents the total number of slots an amap can be extended to. Since we do not extend amaps, this field as well as rounding the number of slots to the next malloc bucket is not useful. This also removes the corresponding output from procmap(1). ok kettenis@
Diffstat (limited to 'usr.sbin/procmap/procmap.c')
-rw-r--r--usr.sbin/procmap/procmap.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c
index f284ded97dc..9ece0df367f 100644
--- a/usr.sbin/procmap/procmap.c
+++ b/usr.sbin/procmap/procmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procmap.c,v 1.59 2015/01/19 19:25:28 kettenis Exp $ */
+/* $OpenBSD: procmap.c,v 1.60 2016/04/16 18:39:30 stefan Exp $ */
/* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */
/*
@@ -97,7 +97,6 @@ rlim_t maxssiz;
struct sum {
unsigned long s_am_nslots;
- unsigned long s_am_maxslots;
unsigned long s_am_nusedslots;
};
@@ -347,12 +346,10 @@ void
print_sum(struct sum *sum, struct sum *total_sum)
{
const char *t = total_sum == NULL ? "total " : "";
- printf("%samap allocated slots: %lu\n", t, sum->s_am_maxslots);
printf("%samap mapped slots: %lu\n", t, sum->s_am_nslots);
printf("%samap used slots: %lu\n", t, sum->s_am_nusedslots);
if (total_sum) {
- total_sum->s_am_maxslots += sum->s_am_maxslots;
total_sum->s_am_nslots += sum->s_am_nslots;
total_sum->s_am_nusedslots += sum->s_am_nusedslots;
}
@@ -785,15 +782,13 @@ dump_vm_map_entry(kvm_t *kd, struct kbit *vmspace,
}
if (print_amap && vme->aref.ar_amap) {
- printf(" amap - ref: %d fl: 0x%x maxsl: %d nsl: %d nuse: %d\n",
+ printf(" amap - ref: %d fl: 0x%x nsl: %d nuse: %d\n",
D(amap, vm_amap)->am_ref,
D(amap, vm_amap)->am_flags,
- D(amap, vm_amap)->am_maxslot,
D(amap, vm_amap)->am_nslot,
D(amap, vm_amap)->am_nused);
if (sum) {
sum->s_am_nslots += D(amap, vm_amap)->am_nslot;
- sum->s_am_maxslots += D(amap, vm_amap)->am_maxslot;
sum->s_am_nusedslots += D(amap, vm_amap)->am_nused;
}
}