A small fix for the syscall counts by pid script: - silence the match output in the shell script
Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all
Unified · Split
| @@ -2,7 +2,7 @@ · 1 unmodified line | |||
| 2 | # description: system-wide syscall counts, by pid | 2 | # description: system-wide syscall counts, by pid |
| 3 | # args: [comm] | 3 | # args: [comm] |
| 4 | if [ $# -gt 0 ] ; then | 4 | if [ $# -gt 0 ] ; then |
| 5 | if ! expr match "$1" "-" ; then | 5 | if ! expr match "$1" "-" > /dev/null ; then |
| 6 | comm=$1 | 6 | comm=$1 |
| 7 | shift | 7 | shift |
| 8 | fi | 8 | fi |