18c2ecf20Sopenharmony_ci#!/bin/bash 28c2ecf20Sopenharmony_ci# description: system-wide failed syscalls, by pid 38c2ecf20Sopenharmony_ci# args: [comm] 48c2ecf20Sopenharmony_ciif [ $# -gt 0 ] ; then 58c2ecf20Sopenharmony_ci if ! expr match "$1" "-" > /dev/null ; then 68c2ecf20Sopenharmony_ci comm=$1 78c2ecf20Sopenharmony_ci shift 88c2ecf20Sopenharmony_ci fi 98c2ecf20Sopenharmony_cifi 108c2ecf20Sopenharmony_ciperf script $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm 11