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

tools/shmsnoop: Print shmctl command string #5082

Merged
merged 1 commit into from
Aug 21, 2024

Commits on Aug 21, 2024

  1. tools/shmsnoop: Print shmctl command string

    Print shmctl command:
    
        $ sudo ./shmsnoop.py
        PID    COMM        SYS           RET ARGs
        16413  writer   SHMGET            31 key: 0xd2032983, size: 4194304, shmflg: 0x3a4 (IPC_CREAT|0644)
        16413  writer    SHMAT  7f7f572b8000 shmid: 0x31, shmaddr: 0x0, shmflg: 0x0
        16413  writer    SHMDT             0 shmaddr: 0x7f7f572b8000
        16418  reader   SHMGET            31 key: 0xd2032983, size: 4194304, shmflg: 0x1a4 (0644)
        16418  reader    SHMAT  7f28e81a4000 shmid: 0x31, shmaddr: 0x0, shmflg: 0x0
        16418  reader    SHMDT             0 shmaddr: 0x7f28e81a4000
        16418  reader   SHMCTL             0 shmid: 0x31, cmd: 0 (IPC_RMID), buf: 0x0
                                                                 ^^^^^^^^^^
    
    Signed-off-by: Rong Tao <[email protected]>
    Rtoax committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    521a0a8 View commit details
    Browse the repository at this point in the history