From 6d467f7b54ba9dd014108ed219f73e908c5a35bb Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Mon, 22 Jul 2013 08:19:29 -0400 Subject: [PATCH] Make old_rsp available to kernel modules. In order to get access to the RSP value during system call and trap processing, code needs access to the old_rsp per-cpu variable. Since we use this from a kernel module, it needs to be exported (it is only accessible through macros - there isn't an accessor function exported anywhere for it). Signed-off-by: Kris Van Hees --- dtrace/dtrace_isa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtrace/dtrace_isa.c b/dtrace/dtrace_isa.c index c611aab6e3ad..698904f9faa9 100644 --- a/dtrace/dtrace_isa.c +++ b/dtrace/dtrace_isa.c @@ -314,7 +314,7 @@ void dtrace_getufpstack(uint64_t *pcstack, uint64_t *fpstack, int pcstack_limit) { struct task_struct *p = current; - unsigned long *sp = (unsigned long *)p->thread.usersp; + unsigned long *sp = (unsigned long *)this_cpu_read(old_rsp); unsigned long *bos = (unsigned long *)p->mm->start_stack; struct vm_area_struct *stack_vma = find_vma(p->mm, p->thread.usersp); -- 2.50.1