cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

perf-iostat.sh (290B)


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