[CRIU] [PATCH 11/12] cpuinfo: Add "cpuinfo [dump|check]" commands

Pavel Emelyanov xemul at parallels.com
Wed Oct 1 06:51:09 PDT 2014


On 10/01/2014 04:58 PM, Cyrill Gorcunov wrote:
> On Wed, Oct 01, 2014 at 04:57:09PM +0400, Pavel Emelyanov wrote:
>>
>>> diff --git a/crtools.c b/crtools.c
>>> index 87f442c72120..d297abc59713 100644
>>> --- a/crtools.c
>>> +++ b/crtools.c
>>> @@ -545,6 +545,8 @@ usage:
>>>  "  page-server    launch page server\n"
>>>  "  service        launch service\n"
>>>  "  dedup          remove duplicates in memory dump\n"
>>> +"  cpuinfo dump   writes cpu information into image file\n"
>>> +"  cpuinfo check  validates cpu information read from image file\n"
>>>  	);
>>>  
>>>  	if (usage_error) {
>>
>> Is this all?
> 
> Yes, what you've been expecting?

if (!strcmp(argv[optind]))
	return cpu_cap_check()

or smth like this.



More information about the CRIU mailing list