aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-30 20:24:59 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-31 15:18:45 +0100
commitaad76968cd5934ee17f36cd8e817e86ae952b533 (patch)
tree40eefffb52e8ed3c75747457980630facef783dd /include
parent8b710ef000c383f3476245b27bacf034532d9786 (diff)
downloadbusybox-w32-aad76968cd5934ee17f36cd8e817e86ae952b533.tar.gz
busybox-w32-aad76968cd5934ee17f36cd8e817e86ae952b533.tar.bz2
busybox-w32-aad76968cd5934ee17f36cd8e817e86ae952b533.zip
pmap: make 32-bit version work better on 64-bit kernels
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index daa96728b..d2563999a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1828,7 +1828,12 @@ struct smaprec {
1828 unsigned long stack; 1828 unsigned long stack;
1829 unsigned long smap_pss, smap_swap; 1829 unsigned long smap_pss, smap_swap;
1830 unsigned long smap_size; 1830 unsigned long smap_size;
1831 unsigned long smap_start; 1831 // For mixed 32/64 userspace, 32-bit pmap still needs
1832 // 64-bit field here to correctly show 64-bit processes:
1833 unsigned long long smap_start;
1834 // (strictly speaking, other fields need to be wider too,
1835 // but they are in kbytes, not bytes, and they hold sizes,
1836 // not start addresses, sizes tend to be less than 4 terabytes)
1832 char smap_mode[5]; 1837 char smap_mode[5];
1833 char *smap_name; 1838 char *smap_name;
1834}; 1839};