Appendix C. A Sample Procfs Utility

$ msacct ls -lR .: total 3012 drwxrwxrwx 9 jmauro tech 2560 Oct 22 13:02 2.X [a LOT of output snipped] .... -rwxrwxrwx 1 jmauro staff 5166 Feb 12 18:11 msacct.c -r--r--r-- 1 jmauro staff 4401 Feb 6 22:02 ptime.c *** Usage Counters *** Minor Faults:.................0 Major Faults:.................0 Swaps:........................0 Input Blocks:.................0 Output Blocks:................0 STREAMS Messages Sent:........0 STREAMS Messages Received:....0 Signals:......................0 Voluntary Context Switches:...1684 Involuntary Context Switches:.25 System Calls:.................3693 Read/Write Characters:........53305 *** State Times *** Total Elapsed Time:...........11.065 Total User Time:..............0.403 ...

Get Solaris™ Internals: Core Kernel Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.