diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-10-03 16:11:15 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-10-03 16:13:36 -0400 |
commit | feaf0a2cccdc2977b2924fcc9ee779e80ee8c44f (patch) | |
tree | 706ef1cef4ffb944566eabc3e3833be20ac89d8d /trace-plot-task.c | |
parent | 013205a8f9e60998b39c106470957030585b5851 (diff) | |
download | trace-cmd-feaf0a2cccdc2977b2924fcc9ee779e80ee8c44f.tar.gz |
trace-graph: Do not show 'interrupts' if no interrupt event was added
Since showing interrupts for when events are in interrupts can cause the
task plots to be crazy if the interrupt events are not traced, do not do the
"in interrupt" notation unless interrupts were traced.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-plot-task.c')
-rw-r--r-- | trace-plot-task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c index 5aa0af96..d810ebba 100644 --- a/trace-plot-task.c +++ b/trace-plot-task.c @@ -338,6 +338,9 @@ static gboolean record_is_interrupt(struct graph_info *ginfo, { gboolean in_irq; + if (ginfo->no_irqs) + return FALSE; + in_irq = !!(pevent_data_flags(ginfo->pevent, record) & (TRACE_FLAG_HARDIRQ | TRACE_FLAG_SOFTIRQ)); |