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
This commit is contained in:
Tony Nguyen
2018-05-22 11:51:46 -06:00
committed by Brian Behlendorf
parent a430cef9cd
commit ba863d0be4
9 changed files with 39 additions and 10 deletions
+1
View File
@@ -84,6 +84,7 @@ export SYSTEM_FILES='arp
openssl
parted
pax
perf
pgrep
ping
pkill