[CRIU] [PATCH 05/32] tools: cpt2 - Add bare entry routine

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 1 06:00:50 EDT 2013


On Mon, Apr 01, 2013 at 01:54:53PM +0400, Pavel Emelyanov wrote:
> On 04/01/2013 01:53 PM, Cyrill Gorcunov wrote:
> > On Mon, Apr 01, 2013 at 01:45:31PM +0400, Pavel Emelyanov wrote:
> >> On 03/31/2013 01:42 AM, Cyrill Gorcunov wrote:
> >>>
> >>> Introduce main() routine which does nothing but
> >>> reports "usage message" if no command line option
> >>> provided.
> >>>
> >>> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> >>> ---
> >>>  tools/cpt2/src/Makefile           |   7 ++
> >>>  tools/cpt2/src/include/compiler.h | 143 ++++++++++++++++++++++++++++++++++++++
> >>>  tools/cpt2/src/include/cpt2.h     |  17 +++++
> >>>  tools/cpt2/src/include/log.h      |  54 ++++++++++++++
> >>
> >> I'm not happy with copying headers from crtools/include.
> > 
> > To be able to use headers outside of crtools we should stop
> > bloating crtools headers (like in case of util.h).
> 
> +1
> 
> > Logging is different in cpt2, 
> 
> Why?

Because I did it simply as printf wrapper, I'll intergrate it with
crtools engine later (actually i would be great to provide cr-log.so
or something so if we would have more tools they could reuse loggin
enging).


More information about the CRIU mailing list