scripts/who: Add the process id to the output

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-12 20:19:03 +00:00
parent 61ff1309ca
commit 7ac492aec2

View File

@ -9,5 +9,5 @@
for i in `lsof -t /dev/dri/card0`; do
who=`readlink /proc/$i/exe`
count=`grep /dev/dri/card0 /proc/$i/maps | wc -l | cut -f1 -d\ `
echo "$who: $count"
echo "$who [$i]: $count"
done