]> Pileus Git - ~andy/linux/commitdiff
tracing: Fix irqs-off tag display in syscall tracing
authorzhangwei(Jovi) <jovi.zhangwei@huawei.com>
Mon, 29 Jul 2013 01:33:58 +0000 (09:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 07:43:32 +0000 (15:43 +0800)
commit 11034ae9c20f4057a6127fc965906417978e69b2 upstream

Initialization of variable irq_flags and pc was missed when backport
11034ae9c to linux-3.0.y and linux-3.4.y, my fault.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_syscalls.c

index 9b7dad894c4cbd722974305e0a1fcb51aba1d347..5819cd5cf7c258404dc42abfcc9385fd6ebe4a73 100644 (file)
@@ -357,6 +357,9 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
        if (!sys_data)
                return;
 
+       local_save_flags(irq_flags);
+       pc = preempt_count();
+
        event = trace_current_buffer_lock_reserve(&buffer,
                        sys_data->exit_event->event.type, sizeof(*entry),
                        irq_flags, pc);