1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| [root@VM-80-27-centos ~]# strace -o /tmp/pingstrace.txt -tttT -s 1000 ping baidu.com ping: baidu.com: 域名解析暂时失败 [root@VM-80-27-centos ~]# [root@VM-80-27-centos ~]# grep open /tmp/pingstrace.txt 1659803039.797457 open("/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3 <0.000010> 1659803039.797816 open("/lib64/libonion.so", O_RDONLY|O_CLOEXEC) = 3 <0.000023> 1659803039.798298 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000020> 1659803039.798506 open("/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3 <0.000021> 1659803039.798907 open("/lib64/libidn.so.11", O_RDONLY|O_CLOEXEC) = 3 <0.000022> 1659803039.799334 open("/lib64/libcrypto.so.10", O_RDONLY|O_CLOEXEC) = 3 <0.000022> 1659803039.799789 open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 <0.000023> 1659803039.800226 open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000022> 1659803039.800664 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000021> 1659803039.801120 open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 <0.000021> 1659803039.801494 open("/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3 <0.000021> 1659803039.801959 open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 <0.000021> 1659803039.804175 open("/etc/pki/tls/legacy-settings", O_RDONLY) = -1 ENOENT (没有那个文件或目录) <0.000021> 1659803039.804847 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 <0.000022> 1659803039.805883 open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = -1 EACCES (权限不够) <0.000019> 1659803039.806002 open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = -1 EACCES (权限不够) <0.000020> 1659803039.806054 open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = -1 EACCES (权限不够) <0.000019> 1659803039.806169 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 EACCES (权限不够) <0.000019> 1659803039.806221 open("/lib64/tls/x86_64/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (没有那个文件或目录) <0.000021> 1659803039.806324 open("/lib64/tls/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (没有那个文件或目录) <0.000020> 1659803039.806429 open("/lib64/x86_64/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (没有那个文件或目录) <0.000020> 1659803039.806536 open("/lib64/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000021> 1659803039.807975 open("/lib64/tls/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (没有那个文件或目录) <0.000023> 1659803039.808038 open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000023> 1659803039.808654 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = -1 EACCES (权限不够) <0.000021> 1659803039.808719 open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4 <0.000031> 1659803039.809155 open("/usr/share/locale/zh_CN.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (没有那个文件或目录) <0.000022> 1659803039.809210 open("/usr/share/locale/zh_CN.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (没有那个文件或目录) <0.000021> 1659803039.809264 open("/usr/share/locale/zh_CN/LC_MESSAGES/libc.mo", O_RDONLY) = 4 <0.000023> 1659803039.809494 open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 4 <0.000023> [root@VM-80-27-centos ~]#
|