On Wed, 13 Jun 2018 20:15:54 +0800 Leo Yan leo.yan@linaro.org wrote:
On Wed, Jun 13, 2018 at 12:11:40PM +0100, Robert Walker wrote:
Are there any automated regression tests run for perf? It would be useful to have a set of trace captures that can be run through perf inject/report/script and the output checked for expected behaviours.
Adding record to that list would be good, too.
Good question and I also have same question for this, usually I need to manually run 'perf script' command at my side.
I search a bit, perf command has one sub command 'perf test' for sanity testing; and in the kernel source code tools/perf/tests there have some testing cases. But I don't really dig into the testing code. Let's see if others have better suggestion for this.
There aren't any existing AUXTRACE driver tests, AFAICS. OTOH, tools/perf/tests/shell/record+script_probe_vfs_getname.sh does a record and script. I'm not sure how acceptable it would be to add an ARCH-and-PMU-specific test there. It would at least have to 'skip' itself if the appropriate CoreSight resources weren't available.
Kim