Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMapPath::Vsys for /SYSV pseudo files #151

Merged
merged 4 commits into from Oct 9, 2021

Conversation

tatref
Copy link
Contributor

@tatref tatref commented Oct 6, 2021

Shared memory segments are displayed as /SYSV<key> (deleted) in /proc/<pid>/maps or smaps, where key is related to the key field in ipcs -m or cat /proc/sysvipc/shm

Examples:

$ sudo cat /proc/*/maps | grep /SYSV
7ff8ac138000-7ff8ac1b8000 rw-s 00000000 00:01 4                          /SYSV00000000 (deleted)
9f800000-9ff47000 rw-s 00000000 00:01 7                                  /SYSV00000000 (deleted)
a0000000-a0006000 rw-s 00000000 00:01 8                                  /SYSVba5bd51c (deleted)
$ ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000000 4          tatref     600        524288     2          dest         
0x00000000 5          oracle     600        9146368    130                     
0x00000000 6          oracle     600        1052770304 65                      
0x00000000 7          oracle     600        7630848    65                      
0xba5bd51c 8          oracle     600        24576      65

This commits adds a variant in the MMapPath enum that contains a i32 (the key parsed from hex)

@eminence
Copy link
Owner

eminence commented Oct 9, 2021

LGTM, thanks!

@eminence eminence merged commit 8e1cc16 into eminence:master Oct 9, 2021
@eminence
Copy link
Owner

Hi @tatref, this new feature has been released in the latest v0.11.0 release

@tatref tatref mentioned this pull request Oct 18, 2021
@eminence eminence added this to the v0.11.0 milestone Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants