]> granicus.if.org Git - zfs/commit
Profiling for perf tests
authorTony Nguyen <tony.nguyen@delphix.com>
Tue, 22 May 2018 17:51:46 +0000 (11:51 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 May 2018 17:51:46 +0000 (10:51 -0700)
commitba863d0be4cbfbea938b10e49fb6ff459ac9ec20
tree3d48bc91284779ea78158728d19dd36cd8ca2f3a
parenta430cef9cd6cbff7d9827b37c1cb322aaa1bf9dc
Profiling for perf tests

Stack profiling is quite useful and Linux ZFS test suite does not
current collect that data.

Linux perf is a common tool for this purpose though the perf record
data file can be quite large. With this change, Linux ZFS perf tests
capture perf record data if perf is installed on the system and
PERF_DO_PROFILING environment variable is set.

Reviewed by: John Wren Kennedy <jwk404@gmail.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tony Nguyen <tony.nguyen@delphix.com>
External-issue: LX-971
Closes #7549
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/tests/perf/regression/random_reads.ksh
tests/zfs-tests/tests/perf/regression/random_readwrite.ksh
tests/zfs-tests/tests/perf/regression/random_writes.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_arc_cached.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_arc_cached_clone.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_dbuf_cached.ksh
tests/zfs-tests/tests/perf/regression/sequential_writes.ksh