aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/perf-iostat.sh
blob: e562f252d56ffa838028bed2e4afa891b2406aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# perf iostat
# Alexander Antonov <alexander.antonov@linux.intel.com>

if [[ "$1" == "list" ]] || [[ "$1" =~ ([a-f0-9A-F]{1,}):([a-f0-9A-F]{1,2})(,)? ]]; then
        DELIMITER="="
else
        DELIMITER=" "
fi

perf stat --iostat$DELIMITER$*