summaryrefslogtreecommitdiff
path: root/src/sim/process.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-09-03 02:04:25 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-09-03 02:04:25 -0400
commit96dabdc9b0fbffbdf6fb7099f21924f4702d6f91 (patch)
tree1b39602f62d8ea769a46370969f05f1657190324 /src/sim/process.cc
parent14cc9baba59a7f93187933efd15f9cd1b94c25ed (diff)
downloadgem5-96dabdc9b0fbffbdf6fb7099f21924f4702d6f91.tar.xz
Added uid, euid, gid, egid, pid and ppid parameters to a live process.
--HG-- extra : convert_revision : 2101be8000bcdaf683730cfc079b4b78e34365d0
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r--src/sim/process.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc
index 081a25976..20f7fec2d 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -460,6 +460,12 @@ BEGIN_DECLARE_SIM_OBJECT_PARAMS(LiveProcess)
Param<string> output;
VectorParam<string> env;
SimObjectParam<System *> system;
+ Param<uint64_t> uid;
+ Param<uint64_t> euid;
+ Param<uint64_t> gid;
+ Param<uint64_t> egid;
+ Param<uint64_t> pid;
+ Param<uint64_t> ppid;
END_DECLARE_SIM_OBJECT_PARAMS(LiveProcess)
@@ -471,7 +477,13 @@ BEGIN_INIT_SIM_OBJECT_PARAMS(LiveProcess)
INIT_PARAM(input, "filename for stdin (dflt: use sim stdin)"),
INIT_PARAM(output, "filename for stdout/stderr (dflt: use sim stdout)"),
INIT_PARAM(env, "environment settings"),
- INIT_PARAM(system, "system")
+ INIT_PARAM(system, "system"),
+ INIT_PARAM(uid, "user id"),
+ INIT_PARAM(euid, "effective user id"),
+ INIT_PARAM(gid, "group id"),
+ INIT_PARAM(egid, "effective group id"),
+ INIT_PARAM(pid, "process id"),
+ INIT_PARAM(ppid, "parent process id")
END_INIT_SIM_OBJECT_PARAMS(LiveProcess)