diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-03-03 15:26:56 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-03-07 14:53:54 +1100 |
commit | 336a7b5dd80a2a7b463dc8ede4862425940edeb5 (patch) | |
tree | 8c221344265a0f569343bef9fe86db30fa506c4a /virt | |
parent | f17c4e01e906c568fb03a2e6c2b99e4ee4587fbf (diff) | |
download | lwn-336a7b5dd80a2a7b463dc8ede4862425940edeb5.tar.gz lwn-336a7b5dd80a2a7b463dc8ede4862425940edeb5.zip |
powerpc/module: Create a special stub for ftrace_caller()
In order to support the new -mprofile-kernel ABI, we need to be able to
call from the module back to ftrace_caller() (in the kernel) without
using the module's r2. That is because the function in this module which
is calling ftrace_caller() may not have setup r2, if it doesn't
otherwise need it (ie. it accesses no globals).
To make that work we add a new stub which is used for calling
ftrace_caller(), which uses the kernel toc instead of the module toc.
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions