Adaptation on pmap output from OpenSUSE 12.3#3
Open
JanKovis wants to merge 1 commit intomilianw:masterfrom
Open
Adaptation on pmap output from OpenSUSE 12.3#3JanKovis wants to merge 1 commit intomilianw:masterfrom
JanKovis wants to merge 1 commit intomilianw:masterfrom
Conversation
On my machine the pmap output is like this START SIZE RSS PSS DIRTY SWAP PERM MAPPING 0000000000400000 92K 68K 68K 0K 0K r-xp /usr/lib64/firefox/firefox 0000000000616000 4K 4K 4K 4K 0K r--p /usr/lib64/firefox/firefox 0000000000617000 4K 4K 4K 4K 0K rw-p /usr/lib64/firefox/firefox 00007fffb59ff000 4K 4K 0K 0K 0K r-xp [vdso] ffffffffff600000 4K 0K 0K 0K 0K r-xp [vsyscall] Total: 2631292K 1220324K 1200619K 1177580K 2536K 1888736K writable-private, 605780K readonly-private, 136776K shared, and 1149368K referenced
Owner
|
This would then break compatibility with the pmap output I have on my machine. Please add a conditional around to check for the distro and adapt accordingly. Or maybe look at pmap --version. I get there: "pmap from procps-ng 3.3.8" - maybe you have some other pmap implementation and we could base the format on that. I did something similar in the system-wide version of this script, to also support the busybox version of pmap there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On my machine the pmap output is like this
START SIZE RSS PSS DIRTY SWAP PERM MAPPING
0000000000400000 92K 68K 68K 0K 0K r-xp /usr/lib64/firefox/firefox
0000000000616000 4K 4K 4K 4K 0K r--p /usr/lib64/firefox/firefox
0000000000617000 4K 4K 4K 4K 0K rw-p /usr/lib64/firefox/firefox
00007fffb59ff000 4K 4K 0K 0K 0K r-xp [vdso]
ffffffffff600000 4K 0K 0K 0K 0K r-xp [vsyscall]
Total: 2631292K 1220324K 1200619K 1177580K 2536K
1888736K writable-private, 605780K readonly-private, 136776K shared, and 1149368K referenced