mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
On Wed, Oct 01, 2014 at 05:51:09PM +0400, Pavel Emelyanov wrote: > > Yes, what you've been expecting? > > if (!strcmp(argv[optind])) > return cpu_cap_check() > > or smth like this. updated. So if it become confusing -- feel free to merge [1;9] and ping me to resend the rest, or pick up from attachements. >From 6af96ff63ac82f9566c3cba9c116dc67698c9797 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov <gorcunov@openvz.org> Date: Tue, 30 Sep 2014 18:33:40 +0400 Subject: [PATCH] cpuinfo: Add "cpuinfo [dump|check]" commands They allow to validate cpuinfo information without running complete dump/restore actions. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
14 lines
307 B
C
14 lines
307 B
C
#ifndef __CR_CPU_H__
|
|
#define __CR_CPU_H__
|
|
|
|
#include "asm/cpu.h"
|
|
|
|
extern bool cpu_has_feature(unsigned int feature);
|
|
extern int cpu_init(void);
|
|
extern int cpu_dump_cpuinfo(void);
|
|
extern int cpu_validate_cpuinfo(void);
|
|
extern int cpuinfo_dump(void);
|
|
extern int cpuinfo_check(void);
|
|
|
|
#endif /* __CR_CPU_H__ */
|