diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-07-07 19:07:24 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-07-08 11:05:34 +0200 |
commit | 659b957f20c78fd470083c80af5e79eedfb39e5b (patch) | |
tree | 52e201e03756f55a2877aa2a24e35e9c81dcf8f2 /kernel/trace | |
parent | Merge tag 'perf-urgent-for-mingo-4.12-20170704' of git://git.kernel.org/pub/s... (diff) | |
download | linux-659b957f20c78fd470083c80af5e79eedfb39e5b.tar.xz linux-659b957f20c78fd470083c80af5e79eedfb39e5b.zip |
kprobes: Rename [arch_]function_offset_within_entry() to [arch_]kprobe_on_func_entry()
Rename function_offset_within_entry() to scope it to kprobe namespace by
using kprobe_ prefix, and to also simplify it.
Suggested-by: Ingo Molnar <mingo@kernel.org>
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/3aa6c7e2e4fb6e00f3c24fa306496a66edb558ea.1499443367.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index b53c8d369163..2c5221819be5 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -720,7 +720,7 @@ static int create_trace_kprobe(int argc, char **argv) return ret; } if (offset && is_return && - !function_offset_within_entry(NULL, symbol, offset)) { + !kprobe_on_func_entry(NULL, symbol, offset)) { pr_info("Given offset is not valid for return probe.\n"); return -EINVAL; } |