![Vermijd spam en ongewenste e-mails met anonieme e-mail doorsturen](/f/306082811fe0b5b3bee62e4e1f5cf154.png?width=100&height=100)
strace is een krachtige opdrachtregeltool voor het debuggen en probleemoplossing van programma's in Unix-achtige besturingssystemen zoals Linux. Het vangt en registreert alle systeemoproepen die door een proces worden gedaan en de signalen die door het proces worden ontvangen.
Lees ook: Hoe het Linux-proces te controleren met 'autrace' op CentOS/RHEL
Het toont de naam van elke systeemaanroep samen met de argumenten tussen haakjes en de retourwaarde naar de standaardfout; je kunt het optioneel ook omleiden naar een bestand.
In dit artikel zullen we 10 voorbeelden van strace-opdrachten uitleggen voor het oplossen van problemen en het debuggen van programma's en processen in een Linux-systeem.
Indien strace niet vooraf op uw Linux-systeem is geïnstalleerd, voert u de onderstaande opdracht voor uw distributie uit om deze te installeren.
$ sudo apt install strace #Debian/Ubuntu # yum install strace #RHEL/CentOS. # dnf install strace #Fedora 22+
In het geval dat een programma crasht of zich gedraagt op een manier die u niet verwacht, kunt u de systeemaanroepen doorlopen om een idee te krijgen van wat er precies is gebeurd tijdens de uitvoering. Zoals we later zullen zien, kunnen systeemoproepen worden gecategoriseerd onder verschillende gebeurtenissen: die met betrekking tot procesbeheer, die die neem een bestand als argument, die betrekking hebben op netwerken, geheugentoewijzing, signalen, IPC en ook bestandsdescriptor gerelateerd systeem belt.
U kunt ofwel een programma/opdracht uitvoeren met strace of er een PID aan doorgeven met behulp van de -P
optie zoals in de volgende voorbeelden.
U kunt eenvoudig een opdracht uitvoeren met strace zoals dit, hier traceren we alle systeemoproepen van de df commando.
$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "7ELF$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...>$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...P\t$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...$ strace df -hexecve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0. brk (NULL) = 0x136e000. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82f78fd000. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet)open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82f78d8000. sluiten (3) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2 \0\0\0\0\0"..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000..."..., 832) = 832. fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f82f7310000...
Uit de bovenstaande uitvoer kunt u verschillende soorten systeemoproepen zien die zijn gemaakt door: df commando, bijvoorbeeld.
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3.
Waar:
Hieronder ziet u een voorbeelduitvoer met de schrijfsysteemaanroepen, die wordt weergegeven: df commando uitvoer op het scherm.
mmap (NULL, 26258, PROT_READ, MAP_SHARED, 3, 0) = 0x7f82f78f5000. sluiten (3) = 0. fstat (1, {st_mode=S_IFCHR|0620, st_rdev=makedev (136, 1), ...}) = 0. write (1, "Bestandssysteemgrootte gebruikt Avail"..., 49Bestandssysteemgrootte gebruikt Beschikbaar Gebruik% Gekoppeld aan. ) = 49. schrijven (1, "udev 3.9G 0 3.9G"..., 43udev 3.9G 0 3.9G 0% /dev. ) = 43. schrijven (1, "tmpfs 788M 9.6M 779M"..., 43tmpfs 788M 9.6M 779M 2% /run. ) = 43. schrijven (1, "/dev/sda10 324G 252G 56G"..., 40/dev/sda10 324G 252G 56G 82% / ) = 40. schrijven (1, "tmpfs 3.9G 104M 3.8G"..., 47tmpfs 3.9G 104M 3.8G 3% /dev/shm. ) = 47. schrijven (1, "tmpfs 5.0M 4.0K 5.0M"..., 48tmpfs 5.0M 4.0K 5.0M 1% /run/lock. ) = 48. schrijven (1, "tmpfs 3.9G 0 3.9G"..., 53tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup. ) = 53. schrijven (1, "cgmfs 100K 0 100K"..., 56cgmfs 100K 0 100K 0% /run/cgmanager/fs. ) = 56. schrijven (1, "tmpfs 788M 36K 788M"..., 53tmpfs 788M 36K 788M 1% /run/user/1000. ) = 53. sluiten (1) = 0. sluiten (2) = 0. exit_groep (0) =? +++ afgesloten met 0 +++
Als er al een proces loopt, kun je het traceren door simpelweg zijn PID als volgt; dit zal je scherm vullen met continue uitvoer die systeemoproepen laat zien die door het proces worden gedaan, om het te beëindigen, druk op [Ctrl+C]
.
$ sudo strace -p 3569 Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U0!70$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...%$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...$ sudo strace -p 3569Strace: Proces 3569 bijgevoegd. herstart_syscall(<... onderbroken peiling hervatten ...>) = 1. recvmsg (4, {msg_name (0)=NULL, msg_iov (1)=[{"U\2\24\300!\247\330\0\3\24\4\0\20\0\0\0 \0\0\0\24\24\24\24\24\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "\372", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32. recvmsg (4, 0x7ffee4dbf870, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, -1) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "2", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 1 ([{fd=31, revents=POLLIN}]) lezen (31, "2", 1) = 1. recvmsg (4, 0x7ffee4dbf850, 0) = -1 EAGAIN (Bron tijdelijk niet beschikbaar) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=30, events= POLLIN}, {fd=31, events=POLLIN}], 6, 0) = 0 (Time-out) mprotect (0x207faa20000, 8192, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa20000, 8192, PROT_READ|PROT_EXEC) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_WRITE) = 0. mprotect (0x207faa21000, 4096, PROT_READ|PROT_EXEC) = 0...
De... gebruiken -C
flag, kunt u als volgt een rapport genereren met de totale tijd, oproepen en fouten voor elke systeemaanroep.
$ sudo strace -c -p 3569 strace: Proces 3569 bevestigd ^Cstrace: Proces 3569 losgemaakt. % tijd seconden usecs/call calls errors syscall. 99,73 0,016000 8 1971 poll 0,16 0,000025 0 509 75 futex 0,06 0,000010 0 1985 1966 recvmsg 0,06 0,000009 0 2336 mprotect 0,00 0,00000 0 478 lezen 0,00 0.000000 0 13 schrijven 0.00 0.000000 0 29 mmap 0.00 0.000000 0 9 munmap 0.00 0.000000 0 18 writev 0.00 0.000000 0 351 madvise 0.00 0.000000 0 1 herstart_syscall. 100,00 0,016044 7700 2041 totaal.
De -I
optie geeft de instructieaanwijzer weer op het moment van elke systeemaanroep die door het programma wordt gedaan.
$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] lezen (3, "7ELF$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...>$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...P\t$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...$ sudo strace -i df -h[00007f0d7534c777] execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. [00007faf9cafa4b9] brk (NULL) = 0x12f0000. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb47a] mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf9cd03000. [00007faf9cafb387] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Zo'n bestand of map bestaat niet) [00007faf9cafb327] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf9ccde000. [00007faf9cafb427] sluiten (3) = 0. [00007faf9cafb387] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) [00007faf9cafb327] open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. [00007faf9cafb347] gelezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\ t\2\0\0\0\0\0"..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0..."..., 832) = 832. [00007faf9cafb2b4] fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. [00007faf9cafb47a] mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faf9c716000. [00007faf9cafb517] mprotect (0x7faf9c8d6000, 2097152, PROT_NONE) = 0...
U kunt ook de tijd van de dag voor elke regel in de traceeruitvoer afdrukken door de -t
vlag.
$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "7ELF$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...>$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...P\t$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...$ sudo strace -t df -h15:19:25 execve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. 15:19:25 brk (NULL) = 0x234c000. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c7f1d9000. 15:19:25 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) 15:19:25 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0. 15:19:25 mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8c7f1b4000. 15:19:25 sluiten (3) = 0. 15:19:25 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Zo'n bestand of directory bestaat niet) 15:19:25 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. 15:19:25 lezen (3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\ 0P\t\2\0\0\0\0\0"..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0..."..., 832) = 832. 15:19:25 fstat (3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0. 15:19:25 mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8c7ebec000. 15:19:25 mprotect (0x7f8c7edac000, 2097152, PROT_NONE) = 0...
Om het tijdsverschil tussen het begin en het einde van elke systeemoproep door een programma weer te geven, gebruikt u de -T
keuze.
$ sudo strace -T df -hexecve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0 <0.000287> brk (NULL) = 0xeca000 <0.000035> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) <0.000028> mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9aff2b1000 <0.000020> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of map niet aanwezig) <0.000019> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000022> fstat (3, {st_mode=S_IFREG|0644, st_size=147662, ...}) = 0 <0.000015> mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9aff28c000 <0.000019> sluiten (3) = 0 <0.000014>...
In de onderstaande opdracht, traceren = schrijven
staat bekend als een kwalificerende uitdrukking, waarbij: spoor is een kwalificatie (andere omvatten signaal, afkorting, uitgebreid, onbewerkt, lezen of schrijven). Hier, schrijven is de waarde van de kwalificatie.
De volgende opdracht toont de systeemaanroepen om af te drukken: df uitvoer op standaarduitvoer.
$ sudo strace -e trace=schrijf df -hwrite (1, "Bestandssysteemgrootte gebruikt Avail"..., 49Bestandssysteemgrootte gebruikt Beschikbaar Gebruik% Gekoppeld aan. ) = 49. schrijven (1, "udev 3.9G 0 3.9G"..., 43udev 3.9G 0 3.9G 0% /dev. ) = 43. schrijven (1, "tmpfs 788M 9.6M 779M"..., 43tmpfs 788M 9.6M 779M 2% /run. ) = 43. schrijven (1, "/dev/sda10 324G 252G 56G"..., 40/dev/sda10 324G 252G 56G 82% / ) = 40. schrijven (1, "tmpfs 3.9G 104M 3.8G"..., 47tmpfs 3.9G 104M 3.8G 3% /dev/shm. ) = 47. schrijven (1, "tmpfs 5.0M 4.0K 5.0M"..., 48tmpfs 5.0M 4.0K 5.0M 1% /run/lock. ) = 48. schrijven (1, "tmpfs 3.9G 0 3.9G"..., 53tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup. ) = 53. schrijven (1, "cgmfs 100K 0 100K"..., 56cgmfs 100K 0 100K 0% /run/cgmanager/fs. ) = 56. schrijven (1, "tmpfs 788M 28K 788M"..., 53tmpfs 788M 28K 788M 1% /run/user/1000. ) = 53. +++ afgesloten met 0 +++
Hier zijn enkele aanvullende opdrachten over de traceerkwalificatie.
$ sudo strace -e trace=open, sluit df -h. $ sudo strace -e trace=open, sluit, lees, schrijf df -h. $ sudo strace -e trace=alle df -h
Laten we eens kijken hoe we systeemaanroepen kunnen traceren die betrekking hebben op een bepaalde klasse van gebeurtenissen. Dit commando kan worden gebruikt om alle systeemaanroepen met procesbeheer te traceren.
$ sudo strace -q -e trace=proces df -hexecve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. arch_prctl (ARCH_SET_FS, 0x7fe2222ff700) = 0. Bestandssysteem Grootte Gebruikt Beschikbaar Gebruik% Gekoppeld aan. udev 3.9G 0 3.9G 0% /dev. tmpfs 788M 9,6M 779M 2% /run. /dev/sda10 324G 252G 56G 82% / tmpfs 3.9G 104M 3.8G 3% /dev/shm. tmpfs 5.0M 4.0K 5.0M 1% /run/lock. tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup. cgmfs 100K 0 100K 0% /run/cgmanager/fs. tmpfs 788M 28K 788M 1% /run/gebruiker/1000. exit_groep (0) =? +++ afgesloten met 0 +++
Voer vervolgens deze opdracht uit om alle systeemaanroepen te traceren die een bestandsnaam als argument hebben.
$ sudo strace -q -e trace=bestand df -hexecve("/bin/df", ["df", "-h"], [/* 17 vars */]) = 0. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (Bestand of directory bestaat niet) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3. open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3. open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3...
Typ om alle systeemaanroepen met geheugentoewijzing te traceren.
$ sudo strace -q -e trace=geheugen df -hbrk (NULL) = 0x77a000. mmap (NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8f4658000. mmap (NULL, 147662, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe8f4633000. mmap (NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fe8f406b000. mprotect (0x7fe8f422b000, 2097152, PROT_NONE) = 0. mmap (0x7fe8f442b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c0000) = 0x7fe8f442b000. mmap (0x7fe8f4431000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fe8f4431000. mmap (NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8f4632000. mmap (NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8f4631000. mmap (NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8f4630000. mprotect (0x7fe8f442b000, 16384, PROT_READ) = 0. mprotect (0x616000, 4096, PROT_READ) = 0. mprotect (0x7fe8f465a000, 4096, PROT_READ) = 0. munmap (0x7fe8f4633000, 147662) = 0. mmap (NULL, 2981280, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe8f3d93000. brk (NULL) = 0x77a000. brk (0x79b000) = 0x79b000. mmap (NULL, 619, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe8f4657000. mmap (NULL, 26258, PROT_READ, MAP_SHARED, 3, 0) = 0x7fe8f4650000. Bestandssysteem Grootte Gebruikt Beschikbaar Gebruik% Gekoppeld aan. udev 3.9G 0 3.9G 0% /dev. tmpfs 788M 9,6M 779M 2% /run. /dev/sda10 324G 252G 56G 82% / tmpfs 3.9G 104M 3.8G 3% /dev/shm. tmpfs 5.0M 4.0K 5.0M 1% /run/lock. tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup. cgmfs 100K 0 100K 0% /run/cgmanager/fs. tmpfs 788M 28K 788M 1% /run/gebruiker/1000. +++ afgesloten met 0 +++
U kunt alle netwerk- en signaalgerelateerde systeemoproepen traceren.
$ sudo strace -e trace=netwerk df -h. $ sudo strace -e trace=signaal df -h.
Om de traceerberichten die naar de standaardfout zijn verzonden naar een bestand te schrijven, gebruikt u de -O
keuze. Dit betekent dat alleen de uitvoer van de opdracht op het scherm wordt afgedrukt, zoals hieronder weergegeven.
$ sudo strace -o df_debug.txt df -hBestandssysteem Grootte Gebruikt Beschikbaar Gebruik% Gekoppeld aan. udev 3.9G 0 3.9G 0% /dev. tmpfs 788M 9,6M 779M 2% /run. /dev/sda10 324G 252G 56G 82% / tmpfs 3.9G 104M 3.8G 3% /dev/shm. tmpfs 5.0M 4.0K 5.0M 1% /run/lock. tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup. cgmfs 100K 0 100K 0% /run/cgmanager/fs. tmpfs 788M 28K 788M 1% /run/gebruiker/1000.
Om door het bestand te kijken, gebruik kat commando.
$ cat df_debug.txt
Om foutopsporingsinformatie voor strace-tool weer te geven, gebruikt u de -NS
vlag.
$ strace -d df -h
Zie de man-pagina van strace voor meer informatie.
$ mannenspoor.
Lees ook deze handige gerelateerde artikelen:
Tot slot, strace is een opmerkelijk hulpmiddel voor het diagnosticeren van oorzaak (en) van programmafouten: het is een krachtige debugging en probleemoplossing. Het is praktisch bruikbaar voor ervaren systeembeheerders, programmeurs en hackers. Gebruik het onderstaande feedbackformulier om uw mening over dit artikel te delen.