[CRIU] [RFC][PATCH 0/3] Add crit x (explore) action

Pavel Emelyanov xemul at parallels.com
Mon Dec 14 03:36:39 PST 2015


On 12/14/2015 01:39 PM, Cyrill Gorcunov wrote:
> On Mon, Dec 14, 2015 at 01:18:27PM +0300, Pavel Emelyanov wrote:
>> Today's crit can only show contents of images in json, but it's
>> still not extremely convenient to explore what's going on in the
>> images with it.
>>
>> Here's the suggestion how to improve the situation.
>>
>> The x action (syntax: crit x dir_name what_to_explore) would show
>> various compound information get from the directory with images.
>>
>> E.g. the very first useful thing asked by avagin@ is to show the
>> ps-like output of processes sitting in the image (this is patch #2).
>> Another tempting thing from xemul@ is to show what files are opened
>> by each process (crit show fdinfo would only show type:id pairs,
>> one need to manually decode and grep other images for info) (this
>> is in patch #3).
>>
>> More stuff can be eventually added.
> 
> Maybe it worth to look into curses library?

The curses is to draw nice ascii-windows, get keyboard events from
user and alike. What explore does is just prints some simple tables
with cumulative info get from images. How do you suggest to use
curses for this?

-- Pavel



More information about the CRIU mailing list