aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <[email protected]>2012-05-31 16:26:45 -0700
committerLinus Torvalds <[email protected]>2012-05-31 17:49:32 -0700
commitfe8c7f5cbf91124987106faa3bdf0c8b955c4cf7 (patch)
tree3ddb0013465d7cd09ef6bc2fab18cb59055a309b /tools/perf/util/scripting-engines/trace-event-python.c
parent5b172087f99189416d5f47fd7ab5e6fb762a9ba3 (diff)
c/r: prctl: extend PR_SET_MM to set up more mm_struct entries
During checkpoint we dump whole process memory to a file and the dump includes process stack memory. But among stack data itself, the stack carries additional parameters such as command line arguments, environment data and auxiliary vector. So when we do restore procedure and once we've restored stack data itself we need to setup mm_struct::arg_start/end, env_start/end, so restored process would be able to find command line arguments and environment data it had at checkpoint time. The same applies to auxiliary vector. For this reason additional PR_SET_MM_(ARG_START | ARG_END | ENV_START | ENV_END | AUXV) codes are introduced. Signed-off-by: Cyrill Gorcunov <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Andrew Vagin <[email protected]> Cc: Serge Hallyn <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Vasiliy Kulikov <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions