aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ptrace.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-01-30 07:31:20 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:20 -0500
commit3c68904fee1459b6d51040864e15d19098eedef7 (patch)
tree5891ac83e6f09d1ef722629a7c0be56a3b1c0a0e /arch/x86/kernel/ptrace.c
parent2f4aaf53c21e644ba0f581ce62b985d767388c64 (diff)
x86, ptrace: use jiffies for BTS timestamps
Replace sched_clock() with jiffies for BTS timestamps. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r--arch/x86/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 8d0dd8b5effe..ec86abaab530 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -616,7 +616,7 @@ void ptrace_bts_take_timestamp(struct task_struct *tsk,
616{ 616{
617 struct bts_struct rec = { 617 struct bts_struct rec = {
618 .qualifier = qualifier, 618 .qualifier = qualifier,
619 .variant.timestamp = sched_clock() 619 .variant.jiffies = jiffies
620 }; 620 };
621 621
622 if (ptrace_bts_get_buffer_size(tsk) <= 0) 622 if (ptrace_bts_get_buffer_size(tsk) <= 0)