diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-05 14:04:01 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-05 14:21:51 +0200 |
| commit | d16bde623ced3cf113648e0bb977c1befed6d601 (patch) | |
| tree | 08f688dc57a6efbc9e82f6eaa7587849fee68f2c /scripts/mkdiff_obj | |
| parent | 58b2353baaebdfdfd166e0745aea0fe75d1a3d10 (diff) | |
| download | busybox-w32-d16bde623ced3cf113648e0bb977c1befed6d601.tar.gz busybox-w32-d16bde623ced3cf113648e0bb977c1befed6d601.tar.bz2 busybox-w32-d16bde623ced3cf113648e0bb977c1befed6d601.zip | |
top,pmap: do not use common code for reading /proc/PID/smaps
The logic is in fact quite far from common.
While at it, stop accounting "---p" mappings as mapped (e.g. VSZ in top).
Nothing is mapped there (why would kernel waste RAM to map pages
which can't be accessed?).
function old new delta
read_smaps - 562 +562
read_cmdline 315 326 +11
print_smaprec 97 101 +4
procps_scan 1219 1211 -8
.rodata 115541 115533 -8
skip_whitespace_if_prefixed_with 25 - -25
procps_read_smaps 864 577 -287
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/3 up/down: 577/-328) Total: 249 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/mkdiff_obj')
0 files changed, 0 insertions, 0 deletions
