diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-06-29 12:08:13 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-08-18 19:29:35 -0400 |
commit | c1a65932fd7216fdc9a0db8bbffe1d47842f862c (patch) | |
tree | 5c7b3c616f850ba549abdd645cfa9d4121eb8623 /arch/arm/kernel/perf_event.c | |
parent | 4694153c252a6ae19704b5bb66466050256395a4 (diff) |
perf: Drop unappropriate tests on arch callchains
Drop the TASK_RUNNING test on user tasks for callchains as
this check doesn't seem to make any sense.
Also remove the tests for !current that is not supposed to
happen and current->pid as this should be handled at the
generic level, with exclude_idle attribute.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: David Miller <davem@davemloft.net>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Borislav Petkov <bp@amd64.org>
Diffstat (limited to 'arch/arm/kernel/perf_event.c')
-rw-r--r-- | arch/arm/kernel/perf_event.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c index 417c392ddf1c..fdcb0be47df1 100644 --- a/arch/arm/kernel/perf_event.c +++ b/arch/arm/kernel/perf_event.c | |||
@@ -3107,12 +3107,6 @@ perf_do_callchain(struct pt_regs *regs, | |||
3107 | 3107 | ||
3108 | is_user = user_mode(regs); | 3108 | is_user = user_mode(regs); |
3109 | 3109 | ||
3110 | if (!current || !current->pid) | ||
3111 | return; | ||
3112 | |||
3113 | if (is_user && current->state != TASK_RUNNING) | ||
3114 | return; | ||
3115 | |||
3116 | if (!is_user) | 3110 | if (!is_user) |
3117 | perf_callchain_kernel(regs, entry); | 3111 | perf_callchain_kernel(regs, entry); |
3118 | 3112 | ||