Hi Steven, This warning occur from time to time in my tests: [ 593.080133] Testing tracer function: [ 593.149895] ------------[ cut here ]------------ [ 593.149895] WARNING: at /c/kernel-tests/src/stable/kernel/lockdep.c:3545 check_flags+0x1c8/0x1d0() [ 593.149895] Modules linked in: [ 593.149895] Pid: 1, comm: swapper/0 Not tainted 3.7.0-rc1-12129-gee2dd3c #3 [ 593.149895] Call Trace: [ 593.149895] [] warn_slowpath_common+0x8f/0xc0 [ 593.149895] [] warn_slowpath_null+0x1a/0x20 [ 593.149895] [] check_flags+0x1c8/0x1d0 [ 593.149895] [] lock_is_held+0x4d/0xa0 [ 593.149895] [] ? notify_die+0x30/0x30 [ 593.149895] [] ? __local_bh_enable+0x1d3/0x230 [ 593.149895] [] rcu_read_lock_held+0x7f/0x90 [ 593.149895] [] ftrace_ops_no_ops+0x188/0x190 [ 593.149895] [] trace+0x55/0x93 [ 593.149895] [] ? trace+0x55/0x93 [ 593.149895] [] ? _raw_spin_unlock_irq+0x99/0xc0 [ 593.149895] [] ? sub_preempt_count+0x5/0x210 [ 593.149895] [] ? sub_preempt_count+0x5/0x210 [ 593.149895] [] ? __local_bh_enable+0x1d3/0x230 [ 593.149895] [] __do_softirq+0x42a/0x710 [ 593.149895] [] call_softirq+0x1c/0x30 [ 593.149895] [] do_softirq+0x1d5/0x2a0 [ 593.149895] [] irq_exit+0xad/0xc0 [ 593.149895] [] do_IRQ+0x75/0x100 [ 593.149895] [] common_interrupt+0x72/0x72 [ 593.149895] [] ? mark_held_locks+0x9b/0x100 [ 593.149895] [] ? _raw_spin_unlock_irqrestore+0xd3/0x130 [ 593.149895] [] __debug_object_init+0x1b7/0x580 [ 593.149895] [] debug_object_init_on_stack+0x36/0x40 [ 593.149895] [] init_timer_on_stack_key+0x35/0x80 [ 593.149895] [] schedule_timeout+0x8b/0x470 [ 593.149895] [] ? trace+0x55/0x93 [ 593.149895] [] ? __mutex_unlock_slowpath+0x247/0x380 [ 593.149895] [] ? update_ftrace_function+0x17/0x150 [ 593.149895] [] schedule_timeout_uninterruptible+0x1e/0x20 [ 593.149895] [] msleep+0x20/0x30 [ 593.149895] [] trace_selftest_startup_function+0xda/0x2b0 [ 593.149895] [] register_tracer+0x32c/0x430 [ 593.149895] [] ? init_trace_printk_function_export+0x48/0x48 [ 593.149895] [] init_function_trace+0x10/0x12 [ 593.149895] [] do_one_initcall+0x1aa/0x270 [ 593.149895] [] kernel_init+0x11c/0x370 [ 593.149895] [] ? do_early_param+0xc6/0xc6 [ 593.149895] [] ? schedule_tail+0x34/0x110 [ 593.149895] [] ? rest_init+0x170/0x170 [ 593.149895] [] ret_from_fork+0x7c/0xb0 [ 593.149895] [] ? rest_init+0x170/0x170 And it's bisected down to an unbelievable simple commit.. commit 17bb615ad4f8d2d2c0f02794d27d7f83e0009ef4 Author: Steven Rostedt Date: Mon May 23 15:27:46 2011 -0400 tracing: Have event with function tracer check error return Thanks, Fengguang