xref: /kernel/linux/linux-6.6/tools/perf/scripts/perl/bin/rwtop-report
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/perf/scripts/perl/bin/
162306a36Sopenharmony_ci#!/bin/bash
262306a36Sopenharmony_ci# description: system-wide r/w top
362306a36Sopenharmony_ci# args: [interval]
462306a36Sopenharmony_cin_args=0
562306a36Sopenharmony_cifor i in "$@"
662306a36Sopenharmony_cido
762306a36Sopenharmony_ci    if expr match "$i" "-" > /dev/null ; then
862306a36Sopenharmony_ci	break
962306a36Sopenharmony_ci    fi
1062306a36Sopenharmony_ci    n_args=$(( $n_args + 1 ))
1162306a36Sopenharmony_cidone
1262306a36Sopenharmony_ciif [ "$n_args" -gt 1 ] ; then
1362306a36Sopenharmony_ci    echo "usage: rwtop-report [interval]"
1462306a36Sopenharmony_ci    exit
1562306a36Sopenharmony_cifi
1662306a36Sopenharmony_ciif [ "$n_args" -gt 0 ] ; then
1762306a36Sopenharmony_ci    interval=$1
1862306a36Sopenharmony_ci    shift
1962306a36Sopenharmony_cifi
2062306a36Sopenharmony_ciperf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval
21

Indexes created Thu Nov 07 10:32:03 CST 2024