• Cyrill Gorcunov's avatar
    pstree: Bind CoreEntry to pstree and fill it with registers early · 0772e475
    Cyrill Gorcunov authored
    When parasite daemon mode will be implemented we get deprived of ability
    to fetch registers at the late moment of dumping as we were, thus just
    bind CoreEntry to pstree item and allocate CoreEntry'ies for every
    thread found, once process tree is in seized state.
    
    Then immediately fill CoreEntry'ies with registers. We use prctl
    opcode for that but fetch a complete set of registers including
    FPU state, and convert them into protobuf format.
    
    Zombie tasks remains untouched, we allocate CoreEntry for them
    right at moment of dumping becuase we don't need registers there
    to be written on disk.
    
    This way get_task_regs no longer need parasite_ctl argument
    and it's zapped.
    
    Still parasite_ctl has own copy of general registers set but
    this is because we need them to be in cpu native format unlike
    ones kept in CoreEntry.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    0772e475
Name
Last commit
Last update
..
arm Loading commit data...
x86 Loading commit data...