[LTP] [PATCH] ftrace_stress_test: check if tracing_enabled is supported

Cyril Hrubis chrubis@suse.cz
Thu Feb 4 16:11:00 CET 2016


Hi!
> > Looking at the commits shouldn't we use tracing_on instead of
> > tracing_enabled on newer kernels?
> > 
> 
> Yes, and you should be using tracing_on even in older kernels.
> tracing_enabled has been deprecated for a long time now.

Also looking at the stress test all it does is writing to various files
(in several background loops) that store tracing parameters. Is that
even reasonable test? I guess that it can find out race conditions
between functions that handle the write for the options...

And it uses the tracing_on file as well. So we can just skip starting
the loop writes to the ftrace_enabled file if it's not present.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list