xref: /kernel/linux/linux-5.10/tools/perf/scripts/perl/bin/rwtop-report
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/scripts/perl/bin/
18c2ecf20Sopenharmony_ci#!/bin/bash
28c2ecf20Sopenharmony_ci# description: system-wide r/w top
38c2ecf20Sopenharmony_ci# args: [interval]
48c2ecf20Sopenharmony_cin_args=0
58c2ecf20Sopenharmony_cifor i in "$@"
68c2ecf20Sopenharmony_cido
78c2ecf20Sopenharmony_ci    if expr match "$i" "-" > /dev/null ; then
88c2ecf20Sopenharmony_ci	break
98c2ecf20Sopenharmony_ci    fi
108c2ecf20Sopenharmony_ci    n_args=$(( $n_args + 1 ))
118c2ecf20Sopenharmony_cidone
128c2ecf20Sopenharmony_ciif [ "$n_args" -gt 1 ] ; then
138c2ecf20Sopenharmony_ci    echo "usage: rwtop-report [interval]"
148c2ecf20Sopenharmony_ci    exit
158c2ecf20Sopenharmony_cifi
168c2ecf20Sopenharmony_ciif [ "$n_args" -gt 0 ] ; then
178c2ecf20Sopenharmony_ci    interval=$1
188c2ecf20Sopenharmony_ci    shift
198c2ecf20Sopenharmony_cifi
208c2ecf20Sopenharmony_ciperf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval
21

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