Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-29gitignore: Ignore top-evel build dir onlyYounes Manton
The entry "build/" will ignore any directory named "build" at any level of the source tree, including our scripts/build directory. We only want to ignore the top-level build directory created by `make install`. As the git manpage suggests, entries with slashes at the start or in the middle will only match at the same level as the .gitignore, hence use build/** instead. Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
2021-09-17gitignore: add build directoryRadostin Stoyanov
The build directory is generated when running make install. build/ was initially added to gitignore with commit 967797a (Add build directory to gitignore) and it was accidentally removed. Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
2021-09-03ci: combine cross compile container definitionsAdrian Reber
The cross compile container definitions for each architecture were almost the same files except for the architecture. This moves the architecture to variables so that all cross compile setups can use the same container definition. Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03criu: add unit testing for config file parserAdrian Reber
This tries to add a unit test for the configuration file parser. Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03.gitignore: Remove qemu-user-staticDmitry Safonov
Not a thing since commit fe668075ad2a ("travis: switch pcp64le and s390x to real hardware"). Signed-off-by: Dmitry Safonov <dima@arista.com>
2020-03-27Add build directory to gitignoreByeonggon Lee
After running make install, build directory is generated but not ignored in gitignore. So this commit add build directory to gitignore. Signed-off-by: Byeonggon Lee <gonny952@gmail.com>
2018-07-09crit: enable python2 or python3 based critAdrian Reber
With this last commit of the crit with python3 series it is possible to either use python2 or python3 with CRIU. Now the basic build system functionality (make and make install) are python2/python3 aware. zdtm.py and criu-coredump are still python2, but as they are not part of 'make install' those parts have not yet been ported from python2 to python3. Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-11-23build: Move generated config.h into include/common/Dmitry Safonov
config.h is a generated file with "build-features" defines. We use it for several purposes: o to check that compiler can do it's job o to complement user-visible API between distributions o to add compile-time options from .config global file It's used in criu and soccr, but compel also needs such thing. Previously, soccr has a link to config.h in criu includes, but it would be much cleaner to move it to other headers, that are shared between sub-projects into include/common. Reported-by: Adrian Reber <areber@redhat.com> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Tested-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-04-02.gitignore: remove a leftoverKir Kolyshkin
This is an addition to commit 3a7e027 ("criu: pie -- Switch to use compel shipped lds scripts"). Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15.gitignore: Add compel and common asm symlinksCyrill Gorcunov
travis-ci: success for .gitignore: Add compel and common asm symlinks Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15compel cli: show includesKir Kolyshkin
1. Add "compel includes" command, to be used for parasite *loading* code compilation. 2. Add includes to output of "compel cflags", which is used for parasite code compilation. Now, this patch looks big and complex, this is mostly because we want compel cli to work for both uninstalled (right from the source tree) and installed cases. The paths to be printed are quite different for these two cases, so I had to introduce a wrapper for a non-installed case. The wrapper sets an environment variable, which compel binary uses as a path to non-installed file. If this env var is not set, it means compel is installed so no tricks are needed. Note the wrapper is only provided for the compel-host binary, as compel (which differs from compel-host in case of cross-compiling) is not executed from within the source tree. Because of the wrapper, the original binary had to be renamed, thus the changes to Makefiles and .gitignore. travis-ci: success for More polishing for compel cli Signed-off-by: Kir Kolyshkin <kir@openvz.org> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15criu/pie: drop second compat parasiteDmitry Safonov
Let's try having one with two entries/exits. travis-ci: success for Rectify 32-bit compatible C/R on x86 Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14Add compel-host to .gitignoreKir Kolyshkin
This is an addition to commit ed5b351. travis-ci: success for Add compel-host to .gitignore Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14.gitignore: update to recent changesDmitry Safonov
Cc: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14pie: generate native and compat parasitesDmitry Safonov
Only parasite should be mode-depended, not restorer, as restorer will just switch to compatible mode with arch_prctl at the end and jump to 32-bit executable with sigreturn. So for parasite there are two targets: "native" and "compat", and one for restorer with the same name "restorer". It will result in parasite-native.o, parasite-compat.o and restorer.o objects. Pie build still may work with piegen or without it (gen-offset.sh). There are many FIXME in this patch, all them are in C code, that should be fixed to use compatible parsite when needed. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14cr-exec: add non-generated sys-exec-tbl for x86Dmitry Safonov
Impact: search sys-exec-tbl-32.c for compatible tasks. Rename task_in_compat_mode to arch_task_compatible and use it in find_syscall for 64-bit to check compatible task's syscall nr. It still will not execute syscall in 32-tasks, as we still do not have 32-bit pie (arch_can_dump_task will return false for these tasks). NOTE: be sure to `make mrproper` on criu directory before applying this patch, as before `criu/arch/x86/sys-exec-tbl.c` was autogenerated, it will make conflict if you try to apply this patch on dirty directory. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14x86/build: generate syscalls-{64,32}.built-in.oDmitry Safonov
After uncommenting FIXME: It will add sc_exec_table_32 for compatible tasks to sys-exec-tbl.c Now it does: - add two different 32/64 syscall tables for cr-exec sys-exec-tbl-{64,32}. - add two different syscall headers syscall-{64,32}.h, that are included from more x86 generic syscall.h depending on -DCONFIG_X86_{32,64} option. - builds two different syscalls-{32,64}.built-in.o - for criu core files, that need SYS_memfd_create and other SYS_* __NR_* defines (currently kerndat.c and shmem.c), create simple syscall-codes.h that includes syscall-codes-64.h [Added after rebase on master] That way after apply, the compatible patch set will be simply able to bisect for regressions. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14.gitignore: add compel/compelDmitry Safonov
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-01-16soccr: Generate config.h dynamicallyCyrill Gorcunov
Otherwise there is a broken symlink which makes tags/etags unhappy. travis-ci: success for soccr: Generate config.h dynamically (rev5) Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> [extended .gitignore, maked link relative to sources] Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-11-03make: Add .config file processing (v3)Pavel Emelyanov
In this file one can add options with which to build CRIU. Each line is (for now) expanded into CONFIG_$(TEXT) macros defined in config.h that can be tested later in the code. v2: Add .config to .gitignore v3: Don't check that make mrproper removes .config https://github.com/xemul/criu/issues/235 travis-ci: success for Don't compile in binfmt_misc dumping code by default (rev3) Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by: Dmirty Safonov <dsafonov@virtuozzo.com>
2016-05-06uninstall: use --record with setup.py, v2Ruslan Kuprieiev
--record option allows us to keep track of files that are being installed by writing them to specified file. We can than use that file to do proper cleanup on uninstall. v2, drop -r, as we shouldn't really care about dirs, because setup.py doesn't report them to us. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-03-16git: ignore scripts/build/qemu-user-static/*Laurent Dufour
Cc: Andrey Vagin <avagin@openvz.org> Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-24.gitignore: re-add Makefile.localKir Kolyshkin
Commit db6cb69 mistakenly removed Makefile.local from .gitignore. Restore it back. See commit 43fb948 for more info. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Kir Kolyshkin <kir@openvz.org> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-15.gitignore -- Add back files to ignoreCyrill Gorcunov
Have been removed while developing criu-2 series, need to check that they are cleaned during "clean" stage. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-15build: Move everything criu related into criu directoryCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2015-11-05build: ignore/clean usr/Tycho Andersen
This directory is generated by the install-crit target, so let's .gitignore it and clean it on `make clean`. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-08-03gitignore: ignore pie/piegen/piegenRuslan Kuprieiev
Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-05-05Makefile: allow optional local rulesKir Kolyshkin
I use Makefile.local to add my own rules for submitting a build to Coverity. As those rules contain login credentials, they should be kept private. Including Makefile.local (if present) seems to be the best way to achieve that. Also, add Makefile.local to .gitignore to make sure it never gets commited into repo. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-04-21make: Rebuild version if git commit id is changedCyrill Gorcunov
Original message from Tycho: This might be a slightly controversial change since it always causes crtools.h to be rebuilt, which may be annoying. However, right now version.h is only generated on the initial git build and never again touched, which is also incorrect. We could potentially do something fancy by monitoring .git/HEAD for changes, but since it may not always exist if building from a tarball, it is a little sticky. CC: Andersen <tycho.andersen@canonical.com> CC: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-01-19crit: add --format hex optionRuslan Kuprieiev
Pavel reported that decimal values for some fields are hard to read, because people used to see hex values in there. Unfortunately, json doesn't support hex representation of integers, so we can only store them as hex strings. Not all field need to be represented as hex strings, so this set introduces a custom field option called "criu" to use in our proto files. One should use [(criu).hex = true] to mark which field should be represented as a hex string. pb2dict module from pycriu package will look into field options and if he finds that criu.hex is set to True, it will convert such field to/from hex string. Though, such behaviour is optional and user can request it by specifying --format hex when calling crit decode("crit encode" in its turn, detects such fields automatically and doesn't require any special cmdline options to be set). We need our proto files to compile with both protoc and protoc-c compilers, which requires creating google/protobuf directory with a symlink to /usr/include/google/protobuf/ descriptor.proto to make protoc-c and generated c files happy. Reported-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-01-14crit: add install-crit target to MakefileRuslan Kuprieiev
install-crit uses scripts/crit-setup.py install --prefix=$(DESTDIR) to act the way the install target expects it too. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-01-14crit: add crit target to Makefile and *.pyc to .gitignoreRuslan Kuprieiev
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-08-04lib: Generate pkgconfig fileTycho Andersen
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-05-14git: update .gitignoreAndrey Vagin
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-29git: Don't track *.so filesCyrill Gorcunov
We're generating library now, lets don't track it. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-23build: Generate most of the pb-desc automaticallyPavel Emelyanov
These contain linkage between number, data type and routines for pb messages we write/read to/from image files. Most of them have simple number-type-routines mapping, so introduce a generating script for that. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-05-24git: Drop include/config.h from monitoringCyrill Gorcunov
It's autogenerated file. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-04-30crtools: rename binary to criuKir Kolyshkin
"Tools" in the context of a binary name doesn't make any sense, because every binary is a tool (lstool, dftool), plus it's one tool. So let's rename the beast to criu, which is short, pretty unique and coincides with the name of the project. Backward-compatible symlink is added for the sake of tests, we can fix them later and remove the link. Packagers beware: our binary is no longer crtools but criu. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-02-18make: pie -- Switch to a new schemeCyrill Gorcunov
Because we need util-net.c for both PIE code and a regular code, just move it to pie/ directory and build with -fpie option, this way we can reuse compiled file in main program without additional compilation pass. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-02-18make: arch -- Switch to a new build schemeCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-02-11make: Generate crtools version from Makefile definitionCyrill Gorcunov
This allows us to have a unique place where version lives and what is more important other subsystems (such as docs generation) may reuse version definitions. At moment EXTRA (which corresponds kernels -rc tag) and NAME is not yet used, but I desided to put them in place for future needs. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-07-09Update .gitignoreCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-04-28gitignore: Add syscall generated filesPavel Emelyanov
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-01-19Update .gitignoreCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-09-29Add crtools into gitignoreCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29git: Ignore swp files as wellCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29Update .gitignoreCyrill Gorcunov
Autogenerated files should be ignored by git. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-23Initial commitinitCyrill Gorcunov
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>