diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-08-13 16:29:08 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2018-10-30 19:27:57 +0300 |
commit | 5f99c560826dec6f0d871a253087939967ad77f1 (patch) | |
tree | d93f0aac65c270cc57aca5888c390c9c8eec374e /compel/src | |
parent | 72194f06705567e34284930c0003224f21687cb5 (diff) |
compel: add APIs to get stack pointers
We need to know what are stack pointers of every thread to ensure that the
current stack page will not be treated as lazy.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: Alice Frosi <alice@linux.vnet.ibm.com>
Reviewed-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Diffstat (limited to 'compel/src')
-rw-r--r-- | compel/src/lib/infect.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compel/src/lib/infect.c b/compel/src/lib/infect.c index d51b8aa88..4648e39b3 100644 --- a/compel/src/lib/infect.c +++ b/compel/src/lib/infect.c @@ -1585,3 +1585,13 @@ struct parasite_blob_desc *compel_parasite_blob_desc(struct parasite_ctl *ctl) { return &ctl->pblob; } + +uint64_t compel_get_leader_sp(struct parasite_ctl *ctl) +{ + return REG_SP(ctl->orig.regs); +} + +uint64_t compel_get_thread_sp(struct parasite_thread_ctl *tctl) +{ + return REG_SP(tctl->th.regs); +} |