Re: [PATCH 2/2 v3] ftracetest: Add a couple of ftrace test cases

From: Namhyung Kim
Date: Wed Nov 05 2014 - 02:52:40 EST


Hi Steve,

On Tue, 04 Nov 2014 10:28:47 -0500, Steven Rostedt wrote:
> +count=`cat trace | grep '()' | grep -v schedule | wc -l`
> +
> +if [ $count -ne 0 ]; then
> + echo "Graph filtering not working after stack tracer disabled?"
> + exit -1
> +fi
> +
> +count=`cat trace | grep 'schedule()' | wc -l`
> +if [ $count -eq 0 ]; then
> + echo "No schedule traces found?"
> + exit -1

Hmm.. in this case don't we need to call do_reset especially for the
last testcase? Maybe we could define a simple function like:

fail() { # msg
do_reset
echo $1
exit -1
}

Thanks,
Namhyung


> +fi
> +
> +do_reset
> +
> +exit 0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/