mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	scripts/who: Add the process id to the output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									61ff1309ca
								
							
						
					
					
						commit
						7ac492aec2
					
				@ -9,5 +9,5 @@
 | 
				
			|||||||
for i in `lsof -t /dev/dri/card0`; do
 | 
					for i in `lsof -t /dev/dri/card0`; do
 | 
				
			||||||
	who=`readlink /proc/$i/exe`
 | 
						who=`readlink /proc/$i/exe`
 | 
				
			||||||
	count=`grep /dev/dri/card0 /proc/$i/maps | wc -l | cut -f1 -d\ `
 | 
						count=`grep /dev/dri/card0 /proc/$i/maps | wc -l | cut -f1 -d\ `
 | 
				
			||||||
	echo "$who: $count"
 | 
						echo "$who [$i]: $count"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user