diff options
author | Denys Vlasenko | 2018-12-30 20:24:59 +0100 |
---|---|---|
committer | Denys Vlasenko | 2018-12-31 15:18:45 +0100 |
commit | aad76968cd5934ee17f36cd8e817e86ae952b533 (patch) | |
tree | 40eefffb52e8ed3c75747457980630facef783dd /include | |
parent | 8b710ef000c383f3476245b27bacf034532d9786 (diff) | |
download | busybox-aad76968cd5934ee17f36cd8e817e86ae952b533.zip busybox-aad76968cd5934ee17f36cd8e817e86ae952b533.tar.gz |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index daa9672..d256399 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1828,7 +1828,12 @@ struct smaprec { unsigned long stack; unsigned long smap_pss, smap_swap; unsigned long smap_size; - unsigned long smap_start; + // For mixed 32/64 userspace, 32-bit pmap still needs + // 64-bit field here to correctly show 64-bit processes: + unsigned long long smap_start; + // (strictly speaking, other fields need to be wider too, + // but they are in kbytes, not bytes, and they hold sizes, + // not start addresses, sizes tend to be less than 4 terabytes) char smap_mode[5]; char *smap_name; }; |