summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorEugeniy Meshcheryakov <eugen@debian.org>2009-12-12 00:56:36 +0100
committerEugeniy Meshcheryakov <eugen@debian.org>2009-12-13 18:33:40 +0100
commit958c58e8231563e9349e4d8ea56c04c25e1501c0 (patch)
tree3998fe8025b213db24b1e72e155a067e949f0d48 /runtime
parent81bcf6d6dd9ce44667951bf6212b6b3c8febaf31 (diff)
downloadsystemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.tar.gz
systemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.tar.xz
systemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.zip
Do not use condition_codes() on arm
It does not exist in recent kernels. Use regs->ARM_cpsr instead, this should work with all versions of linux found in git repo (versions >=2.6.12-rc2). Difference between condition_codes() and regs->ARM_cpsr should not matter for systemtap.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/regs.c b/runtime/regs.c
index e963affa..61f2f317 100644
--- a/runtime/regs.c
+++ b/runtime/regs.c
@@ -267,7 +267,7 @@ static const char *processor_modes[]=
static void _stp_print_regs(struct pt_regs * regs)
{
- unsigned long flags = condition_codes(regs);
+ unsigned long flags = regs->ARM_cpsr;
#ifdef CONFIG_SMP
_stp_printf(" CPU: %d", smp_processor_id());