查看进程打开的文件
#获取到进程的pid
ps -aux | grep audio
root 2060 0.0 0.0 0 0 ? S 17:27 0:00 [audio_sblock-1-]
#查看打开的文件
ls /proc/2060 /fd
lrwx------ 1 root root 64 Apr 1 17:31 0 -> /dev/null
lrwx------ 1 root root 64 Apr 1 17:31 1 -> /dev/null
lrwx------ 1 root root 64 Apr 1 17:28 10 -> /dev/pvr_sync
lrwx------ 1 root root 64 Apr 1 17:28 11 -> /dev/hwbinder
lrwx------ 1 root root 64 Apr 1 17:28 12 -> anon_inode:[eventfd]
lrwx------ 1 root root 64 Apr 1 17:28 13 -> anon_inode:[eventfd]
lrwx------ 1 root root 64 Apr 1 17:28 14 -> anon_inode:[eventfd]
lrwx------ 1 root root 64 Apr 1 17:28 15 -> socket:[41558]
lrwx------ 1 root root 64 Apr 1 17:28 16 -> socket:[41559]
#查看加载的库
pmap -x 2060
0000007f9e72e000 424 4 0 0 r-xp /usr/lib64/libtiff.so.5.5.0
0000007f9e798000 60 0 0 0 ---p /usr/lib64/libtiff.so.5.5.0
0000007f9e7a7000 16 16 16 0 r--p /usr/lib64/libtiff.so.5.5.0
0000007f9e7ab000 4 4 4 0 rw-p /usr/lib64/libtiff.so.5.5.0