diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-02-08 00:04:02 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 10:51:38 +0100 |
commit | 3861a17bcc0af815f684c6178bc9ec2d790c350e (patch) | |
tree | e5ab19215ea802a0c57279cd6dd89f68347b53b4 /kernel/extable.c | |
parent | 1292211058aaf872eeb2a0e2677d237916b4501f (diff) | |
download | linux-stable-3861a17bcc0af815f684c6178bc9ec2d790c350e.tar.gz linux-stable-3861a17bcc0af815f684c6178bc9ec2d790c350e.tar.bz2 linux-stable-3861a17bcc0af815f684c6178bc9ec2d790c350e.zip |
tracing/function-graph-tracer: drop the kernel_text_address check
When the function graph tracer picks a return address, it ensures this address
is really a kernel text one by calling __kernel_text_address()
Actually this path has never been taken.Its role was more likely to debug the tracer
on the beginning of its development but this function is wasteful since it is called
for every traced function.
The fault check is already sufficient.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/extable.c')
-rw-r--r-- | kernel/extable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/extable.c b/kernel/extable.c index e136ed8d82ba..0df6253730be 100644 --- a/kernel/extable.c +++ b/kernel/extable.c @@ -41,7 +41,7 @@ const struct exception_table_entry *search_exception_tables(unsigned long addr) return e; } -__notrace_funcgraph int core_kernel_text(unsigned long addr) +int core_kernel_text(unsigned long addr) { if (addr >= (unsigned long)_stext && addr <= (unsigned long)_etext) @@ -54,7 +54,7 @@ __notrace_funcgraph int core_kernel_text(unsigned long addr) return 0; } -__notrace_funcgraph int __kernel_text_address(unsigned long addr) +int __kernel_text_address(unsigned long addr) { if (core_kernel_text(addr)) return 1; |