[Crash-utility] [PATCH 2/2] Move NAME column in "kmem -s" output to the last of line

2018-07-30 Thread Kazuhito Hagio
For readability, move NAME column in "kmem -s" output to the last of line. --- help.c | 136 +++ memory.c | 44 + 2 files changed, 78 insertions(+), 102 deletions(-) diff --git a/help.c b/help.c index

[Crash-utility] [PATCH 1/2] Unify the three functions printing "kmem -s" line into one function

2018-07-30 Thread Kazuhito Hagio
In preparation for moving NAME column in "kmem -s" line, unify the three functions printing it into one function. --- memory.c | 124 --- 1 file changed, 39 insertions(+), 85 deletions(-) diff --git a/memory.c b/memory.c index

[Crash-utility] [PATCH 0/2] Move NAME column in "kmem -s" output to the last of line

2018-07-30 Thread Kazuhito Hagio
Nowadays, "kmem -s" output can have long lines due to cache name with memcg name, and I don't think that it's human-readable as it is. crash> kmem -s CACHENAME OBJSIZE ALLOCATED TOTAL SLABS SSIZE 8a1522c15380 kmalloc-128(12536:session-11.scope) 128 111

Re: [Crash-utility] [PATCH 0/2] Move NAME column in "kmem -s" output to the last of line

2018-07-30 Thread anderson
Hi Kazu, I'll be back from vacation next week, and I'll take a look at the patch then.  Sounds like a reasonable idea, and I have plenty of "old" sample vmcores. Thanks,  Dave Sent from my Verizon, Samsung Galaxy smartphone Original message From: Kazuhito Hagio Date:

[Crash-utility] [PATCH] fix open fds display when process using large amount of file descriptors

2018-07-30 Thread Tan Hu
Usually, structure fd_set only has 1024 bits size, when a process using large amount of file descriptors that exceed the size of fd_set, then the display of files and net sockets would mistake caused by the out of bounds reading in loop. Signed-off-by: Tan Hu --- filesys.c | 24