tracing: Add proper check for irq_depth routines
authorJiri Olsa <jolsa@redhat.com>
Fri, 24 Sep 2010 15:41:02 +0000 (17:41 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 18 Oct 2010 14:53:25 +0000 (10:53 -0400)
commita9d61173dc1cb63e660ae89e874e51ba4fd2f991
treee1ca3badfc9604199670d049e26871bd69d8932f
parent907f27840985fe6a0c62e43cd4702c6e04b4bcc7
tracing: Add proper check for irq_depth routines

The check_irq_entry and check_irq_return could be called
from graph event context. In such case there's no graph
private data allocated. Adding checks to handle this case.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
LKML-Reference: <20100924154102.GB1818@jolsa.brq.redhat.com>

[ Fixed some grammar in the comments ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions_graph.c