 79e653f1bf
			
		
	
	
	79e653f1bf
	
	
	
		
			
			A small fix for the syscall counts by pid script: - silence the match output in the shell script Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> LKML-Reference: <1273466820-9330-9-git-send-email-tzanussi@gmail.com> Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			257 B
			
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			257 B
			
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| # description: system-wide syscall counts, by pid
 | |
| # args: [comm]
 | |
| if [ $# -gt 0 ] ; then
 | |
|     if ! expr match "$1" "-" > /dev/null ; then
 | |
| 	comm=$1
 | |
| 	shift
 | |
|     fi
 | |
| fi
 | |
| perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $comm
 |