criu/include
Cyrill Gorcunov 1e7bbd35de restore: Add threads restoration
Now threads restortion (and TLS as well) works.
Threads test reports the following

    2775 (main): Counter value:    3 tls_data =    1
    2775 (main): ( 0) fsgs_base 7f9597aa46f0
    2775 (main): ( 0) fsgs_base        0
    2775 (thr3): Counter value:    4 tls_data =    4
    2775 (thr3): ( 0) fsgs_base 42c57940
    2775 (thr3): ( 0) fsgs_base        0
    2775 (thr2): Counter value:    3 tls_data =    2
    2775 (thr2): ( 0) fsgs_base 42456940
    2775 (thr2): ( 0) fsgs_base        0
    2775 (thr1): Counter value:    4 tls_data =    3
    2775 (thr1): ( 0) fsgs_base 40c62940
    2775 (thr1): ( 0) fsgs_base        0
    2775 (main): Counter value:    4 tls_data =    1
    2775 (main): ( 0) fsgs_base 7f9597aa46f0
    2775 (main): ( 0) fsgs_base        0
    2775 (thr1): Counter value:    5 tls_data =    3
    2775 (thr1): ( 0) fsgs_base 40c62940
    2775 (thr1): ( 0) fsgs_base        0

as expected.

This commits merges all preliminary commits into
the final one (sigreturn branch was always experimental
and forced update).

Still some problems remain:

1) While creating threads with clone() the
   flags are to be revisited. We use some predefined
   set here but it's not really correct.

2) No setup of pids in PCB thread zone.

3) No restore of FPU.

But at least on some basic tasks restore works well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-12 19:26:40 +04:00
..
bitops.h Initial commit 2011-09-23 12:00:45 +04:00
compiler.h restore: Add threads restoration 2011-11-12 19:26:40 +04:00
crtools.h dump: Make VMA parsing to handle absence of map_files 2011-10-26 22:48:10 +04:00
elf.h Initial commit 2011-09-23 12:00:45 +04:00
image.h dump, restore: Add blocked signals mask 2011-11-09 00:29:41 +04:00
list.h Initial commit 2011-09-23 12:00:45 +04:00
parasite-syscall.h dump: Add some more comments on page dumping routines 2011-10-13 16:36:50 +04:00
parasite.h Initial commit 2011-09-23 12:00:45 +04:00
rbtree.h Initial commit 2011-09-23 12:00:45 +04:00
restorer.h restore: Add threads restoration 2011-11-12 19:26:40 +04:00
seize.h Move seize related functions into seize.[ch] 2011-10-13 19:18:43 +04:00
syscall-codes.h restore: Add threads restoration 2011-11-12 19:26:40 +04:00
syscall.h restore: Add threads restoration 2011-11-12 19:26:40 +04:00
types.h restore: Use prctl for vDSO restoration 2011-11-08 17:53:47 +04:00
util.h dump: Make VMA parsing to handle absence of map_files 2011-10-26 22:48:10 +04:00