162306a36Sopenharmony_ci#!/bin/bash 262306a36Sopenharmony_ci# description: system-wide failed syscalls, by pid 362306a36Sopenharmony_ci# args: [comm] 462306a36Sopenharmony_ciif [ $# -gt 0 ] ; then 562306a36Sopenharmony_ci if ! expr match "$1" "-" > /dev/null ; then 662306a36Sopenharmony_ci comm=$1 762306a36Sopenharmony_ci shift 862306a36Sopenharmony_ci fi 962306a36Sopenharmony_cifi 1062306a36Sopenharmony_ciperf script $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm 11