[Crash-utility] [PATCH] add a new command: ipcs

qiaonuohan qiaonuohan at cn.fujitsu.com
Mon Apr 23 07:42:59 UTC 2012


Hello Dave,

I have modified the output of ipcs, please see the attachment. About the 
bugs of SLES, I tried to install a SLES9(2.6.5-7.97-smp) to locate the 
problems. But I failed to get debuginfo. I will continue searching it. 
It will be helpful, if you have some information about it.

At 2012-4-19 21:11, Dave Anderson wrote:
>
>
> ----- Original Message -----
>> At 2012-4-19 3:33, Dave Anderson wrote:
>>>     Usage: ipcs [-smMq] [id | address]
>>>
>>> And you could also allow multiple id and/or address values to be entered,
>>> as is done by most of the other crash commands.
>>
>> Hello Dave,
>>
>> I am not so sure about the output style, so I need to confirm it.
>>
>> With multiple id/address, the output below is OK?
>>
>> crash>  ipcs 0 1
>> VALUE 0:
>> SHMID_KERNEL     KEY      SHMID      UID   PERMS BYTES      NATTCH  STATUS
>> ffff880473b54990 00000000 0          0     666   90000      1
>>
>> SEM_ARRAY        KEY      SEMID      UID   PERMS NSEMS
>> ffff880472037990 00000000 0          0     600   1
>>
>> VALUE 1: (not found)
>
> I would do something similar to all of the commands that can accept
> multiple pid/task-address arguments:
>
>   crash>  ps 1 500 ffff88003ef20040
>   ps: invalid task or pid value: 500
>
>      PID    PPID  CPU       TASK        ST  %MEM     VSZ    RSS  COMM
>         1      0   3  ffff88003ef214c0  IN   0.1   23640   1092  init
>         3      2   0  ffff88003ef20040  IN   0.0       0      0  [migration/0]
>   crash>
>
> So in your example, it would look like:
>
>   crash>  ipcs 0 1
>   ipcs: invalid id or address: 1
>
>   SHMID_KERNEL     KEY      SHMID      UID   PERMS BYTES      NATTCH  STATUS
>   ffff880473b54990 00000000 0          0     666   90000      1
>
>   SEM_ARRAY        KEY      SEMID      UID   PERMS NSEMS
>   ffff880472037990 00000000 0          0     600   1
>
>   crash>
>
> Thanks,
>    Dave
>
>
>
>
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>
>


-- 
--
Regards
Qiao Nuohan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipcs.c
Type: text/x-csrc
Size: 35363 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120423/257940f0/attachment.bin>


More information about the Crash-utility mailing list