brintos

brintos / linux-shallow public Read only

0
0
Text · 398 B · 83e11ec Raw
21 lines · plain
1#!/bin/bash2# description: system-wide r/w top3# args: [interval]4n_args=05for i in "$@"6do7    if expr match "$i" "-" > /dev/null ; then8	break9    fi10    n_args=$(( $n_args + 1 ))11done12if [ "$n_args" -gt 1 ] ; then13    echo "usage: rwtop-report [interval]"14    exit15fi16if [ "$n_args" -gt 0 ] ; then17    interval=$118    shift19fi20perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval21