Skip to content

Commit

Permalink
ftrace: add TRACE_STACK and TRACE_SPECIAL to selftest validation
Browse files Browse the repository at this point in the history
The selftest validation code checks for valid entries in the trace buffer.
TRACE_STACK and TRACE_SPECIAL have been added to the code but not to
the validator. This patch adds the two to prevent them from flagging a
failure in the selftest.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent 4fe8c30 commit 06fa75a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ static inline int trace_valid_entry(struct trace_entry *entry)
case TRACE_FN:
case TRACE_CTX:
case TRACE_WAKE:
case TRACE_STACK:
case TRACE_SPECIAL:
return 1;
}
return 0;
Expand Down Expand Up @@ -180,7 +182,7 @@ int trace_selftest_startup_dynamic_tracing(struct tracer *trace,

/* we should only have one item */
if (!ret && count != 1) {
printk(KERN_CONT ".. filter failed ..");
printk(KERN_CONT ".. filter failed count=%ld ..", count);
ret = -1;
goto out;
}
Expand Down

0 comments on commit 06fa75a

Please sign in to comment.