xref: /kernel/linux/linux-5.10/tools/perf/scripts/python/bin/sctop-report
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/scripts/python/bin/
18c2ecf20Sopenharmony_ci#!/bin/bash
28c2ecf20Sopenharmony_ci# description: syscall top
38c2ecf20Sopenharmony_ci# args: [comm] [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 2 ] ; then
138c2ecf20Sopenharmony_ci    echo "usage: sctop-report [comm] [interval]"
148c2ecf20Sopenharmony_ci    exit
158c2ecf20Sopenharmony_cifi
168c2ecf20Sopenharmony_ciif [ "$n_args" -gt 1 ] ; then
178c2ecf20Sopenharmony_ci    comm=$1
188c2ecf20Sopenharmony_ci    interval=$2
198c2ecf20Sopenharmony_ci    shift 2
208c2ecf20Sopenharmony_cielif [ "$n_args" -gt 0 ] ; then
218c2ecf20Sopenharmony_ci    interval=$1
228c2ecf20Sopenharmony_ci    shift
238c2ecf20Sopenharmony_cifi
248c2ecf20Sopenharmony_ciperf script $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval
25

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