1N/AThis is an example of the errinfo program, which prints details on syscall
1N/Afailures.
1N/A
1N/ABy default it "snoops" syscall failures and prints their details,
1N/A
1N/A # ./errinfo
1N/A EXEC SYSCALL ERR DESC
1N/A wnck-applet read 11 Resource temporarily unavailable
1N/A Xorg read 11 Resource temporarily unavailable
1N/A nautilus read 11 Resource temporarily unavailable
1N/A Xorg read 11 Resource temporarily unavailable
1N/A dsdm read 11 Resource temporarily unavailable
1N/A Xorg read 11 Resource temporarily unavailable
1N/A Xorg pollsys 4 interrupted system call
1N/A mozilla-bin lwp_park 62 timer expired
1N/A gnome-netstatus- ioctl 12 Not enough core
1N/A mozilla-bin lwp_park 62 timer expired
1N/A Xorg read 11 Resource temporarily unavailable
1N/A mozilla-bin lwp_park 62 timer expired
1N/A [...]
1N/A
1N/Awhich is useful to see these events live, but can scroll off the screen
1N/Asomewhat rapidly.. so,
1N/A
1N/A
1N/A
1N/AThe "-c" option will count the number of errors. Hit Ctrl-C to stop the
1N/Asample. For example,
1N/A
1N/A# ./errinfo -c
1N/ATracing... Hit Ctrl-C to end.
1N/A^C
1N/A EXEC SYSCALL ERR COUNT DESC
1N/A nscd fcntl 22 1 Invalid argument
1N/A xscreensaver read 11 1 Resource temporarily unavailable
1N/A inetd lwp_park 62 1 timer expired
1N/A svc.startd lwp_park 62 1 timer expired
1N/A svc.configd lwp_park 62 1 timer expired
1N/A ttymon ioctl 25 1 Inappropriate ioctl for device
1N/Agnome-netstatus- ioctl 12 2 Not enough core
1N/A mozilla-bin lwp_kill 3 2 No such process
1N/A mozilla-bin connect 150 5 operation now in progress
1N/A svc.startd portfs 62 8 timer expired
1N/A java_vm lwp_cond_wait 62 8 timer expired
1N/A soffice.bin read 11 9 Resource temporarily unavailable
1N/A gnome-terminal read 11 23 Resource temporarily unavailable
1N/A mozilla-bin recv 11 26 Resource temporarily unavailable
1N/A nautilus read 11 26 Resource temporarily unavailable
1N/Agnome-settings-d read 11 26 Resource temporarily unavailable
1N/A gnome-smproxy read 11 34 Resource temporarily unavailable
1N/A gnome-panel read 11 42 Resource temporarily unavailable
1N/A dsdm read 11 112 Resource temporarily unavailable
1N/A metacity read 11 128 Resource temporarily unavailable
1N/A mozilla-bin lwp_park 62 133 timer expired
1N/A Xorg pollsys 4 147 interrupted system call
1N/A wnck-applet read 11 179 Resource temporarily unavailable
1N/A mozilla-bin read 11 258 Resource temporarily unavailable
1N/A Xorg read 11 1707 Resource temporarily unavailable
1N/A
1N/AOk, so Xorg has received 1707 of the same type of error for the syscall read().
1N/A
1N/A
1N/A
1N/AThe "-n" option lets us match on one type of process only. In the following
1N/Awe match processes that have the name "mozilla-bin",
1N/A
1N/A# ./errinfo -c -n mozilla-bin
1N/ATracing... Hit Ctrl-C to end.
1N/A^C
1N/A EXEC SYSCALL ERR COUNT DESC
1N/A mozilla-bin getpeername 134 1 Socket is not connected
1N/A mozilla-bin recv 11 2 Resource temporarily unavailable
1N/A mozilla-bin lwp_kill 3 2 No such process
1N/A mozilla-bin connect 150 5 operation now in progress
1N/A mozilla-bin lwp_park 62 207 timer expired
1N/A mozilla-bin read 11 396 Resource temporarily unavailable
1N/A
1N/A
1N/A
1N/AThe "-p" option lets us examine one PID only. The following example examines
1N/APID 1119,
1N/A
1N/A# ./errinfo -c -p 1119
1N/ATracing... Hit Ctrl-C to end.
1N/A^C
1N/A EXEC SYSCALL ERR COUNT DESC
1N/A Xorg pollsys 4 47 interrupted system call
1N/A Xorg read 11 669 Resource temporarily unavailable
1N/A
1N/A