perf-iostat.sh 290 B

123456789101112
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-2.0
  3. # perf iostat
  4. # Alexander Antonov <[email protected]>
  5. if [[ "$1" == "list" ]] || [[ "$1" =~ ([a-f0-9A-F]{1,}):([a-f0-9A-F]{1,2})(,)? ]]; then
  6. DELIMITER="="
  7. else
  8. DELIMITER=" "
  9. fi
  10. perf stat --iostat$DELIMITER$*