mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
13 lines
290 B
Bash
13 lines
290 B
Bash
|
#!/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$*
|