Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Tuning Drivers

The Oracle Solaris OS provides kernel statistics structures so that you can implement counters for your driver. The trace facility enables you to analyze performance in real time. This section presents the following topics on device performance:

  • Kernel Statistics – The Oracle Solaris OS provides a set of data structures and functions for capturing performance statistics in the kernel. Kernel statistics (called stats) enable your driver to export continuous statistics while the system is running. The stat data is handled pro grammatically by using the stat functions.

  • trace for Dynamic Instrumentation – trace enables you to add instrumentation to your driver dynamically so that you can perform tasks like analyzing the system and measuring performance. trace takes advantage of predefined stat structures.