aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitrev.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2019-11-08 13:07:06 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-11-13 09:36:41 -0500
commit763e34e74bb7d5c316015e2e39fcc8520bfd071c (patch)
tree0fc9886f242a9c91c3ab0d1234db71a6da2a010a /lib/bitrev.c
parentftrace: Separate out functionality from ftrace_location_range() (diff)
downloadlinux-dev-763e34e74bb7d5c316015e2e39fcc8520bfd071c.tar.xz
linux-dev-763e34e74bb7d5c316015e2e39fcc8520bfd071c.zip
ftrace: Add register_ftrace_direct()
Add the start of the functionality to allow other trampolines to use the ftrace mcount/fentry/nop location. This adds two new functions: register_ftrace_direct() and unregister_ftrace_direct() Both take two parameters: the first is the instruction address of where the mcount/fentry/nop exists, and the second is the trampoline to have that location called. This will handle cases where ftrace is already used on that same location, and will make it still work, where the registered direct called trampoline will get called after all the registered ftrace callers are handled. Currently, it will not allow for IP_MODIFY functions to be called at the same locations, which include some kprobes and live kernel patching. At this point, no architecture supports this. This is only the start of implementing the framework. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'lib/bitrev.c')
0 files changed, 0 insertions, 0 deletions