Modifier and Type | Interface and Description |
---|---|
static class |
LibKstat.Kstat
The kernel maintains a linked list of statistics structures, or kstats.
|
static class |
LibKstat.KstatCtl
A kstat control structure.
|
static class |
LibKstat.KstatIntr
Interrupt statistics.
|
static class |
LibKstat.KstatIO
IO Statistics.
|
static class |
LibKstat.KstatNamed
A list of arbitrary name=value statistics.
|
static class |
LibKstat.KstatTimer
Event timer statistics.
|
Library.Handler
Modifier and Type | Field and Description |
---|---|
static int |
EAGAIN |
static LibKstat |
INSTANCE |
static byte |
KSTAT_DATA_CHAR |
static byte |
KSTAT_DATA_INT32 |
static byte |
KSTAT_DATA_INT64 |
static byte |
KSTAT_DATA_STRING |
static byte |
KSTAT_DATA_UINT32 |
static byte |
KSTAT_DATA_UINT64 |
static int |
KSTAT_INTR_HARD |
static int |
KSTAT_INTR_MULTSVC |
static int |
KSTAT_INTR_SOFT |
static int |
KSTAT_INTR_SPURIOUS |
static int |
KSTAT_INTR_WATCHDOG |
static int |
KSTAT_NUM_INTRS |
static int |
KSTAT_STRLEN |
static byte |
KSTAT_TYPE_INTR |
static byte |
KSTAT_TYPE_IO |
static byte |
KSTAT_TYPE_NAMED |
static byte |
KSTAT_TYPE_RAW |
static byte |
KSTAT_TYPE_TIMER |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
kstat_chain_update(LibKstat.KstatCtl kc)
The kstat_chain_update() function brings the user's kstat header chain in
sync with that of the kernel.
|
int |
kstat_close(LibKstat.KstatCtl kc)
The kstat_close() function frees all resources that were associated with
kc.
|
Pointer |
kstat_data_lookup(LibKstat.Kstat ksp,
java.lang.String name)
The kstat_data_lookup() function searches the kstat's data section for
the record with the specified name .
|
LibKstat.Kstat |
kstat_lookup(LibKstat.KstatCtl kc,
java.lang.String ks_module,
int ks_instance,
java.lang.String ks_name)
The kstat_lookup() function traverses the kstat chain, kc.kc_chain,
searching for a kstat with the same ks_module, ks_instance, and ks_name
fields; this triplet uniquely identifies a kstat.
|
LibKstat.KstatCtl |
kstat_open()
The kstat_open() function initializes a kstat control structure, which
provides access to the kernel statistics library.
|
int |
kstat_read(LibKstat.KstatCtl kc,
LibKstat.Kstat ksp,
Pointer p)
kstat_read() gets data from the kernel for the kstat pointed to by ksp.
|
int |
kstat_write(LibKstat.KstatCtl kc,
LibKstat.Kstat ksp,
Pointer buf)
kstat_write() writes data from buf, or from ksp.ks_data if buf is NULL,
to the corresponding kstat in the kernel.
|
static final LibKstat INSTANCE
static final byte KSTAT_TYPE_RAW
static final byte KSTAT_TYPE_NAMED
static final byte KSTAT_TYPE_INTR
static final byte KSTAT_TYPE_IO
static final byte KSTAT_TYPE_TIMER
static final byte KSTAT_DATA_CHAR
static final byte KSTAT_DATA_INT32
static final byte KSTAT_DATA_UINT32
static final byte KSTAT_DATA_INT64
static final byte KSTAT_DATA_UINT64
static final byte KSTAT_DATA_STRING
static final int KSTAT_INTR_HARD
static final int KSTAT_INTR_SOFT
static final int KSTAT_INTR_WATCHDOG
static final int KSTAT_INTR_SPURIOUS
static final int KSTAT_INTR_MULTSVC
static final int KSTAT_NUM_INTRS
static final int KSTAT_STRLEN
static final int EAGAIN
LibKstat.KstatCtl kstat_open()
int kstat_close(LibKstat.KstatCtl kc)
kc
- a kstat control structureint kstat_chain_update(LibKstat.KstatCtl kc)
kc
- a kstat control structureint kstat_read(LibKstat.KstatCtl kc, LibKstat.Kstat ksp, Pointer p)
kc
- The kstat control structureksp
- The kstat from which to retrieve datap
- If buf is non-NULL , the data is copied from ksp.ks_data into
buf.int kstat_write(LibKstat.KstatCtl kc, LibKstat.Kstat ksp, Pointer buf)
kc
- The kstat control structureksp
- The kstat on which to set databuf
- If buf is non-NULL, the data is copied from buf into
ksp.ks_data.LibKstat.Kstat kstat_lookup(LibKstat.KstatCtl kc, java.lang.String ks_module, int ks_instance, java.lang.String ks_name)
kc
- The kstat control structureks_module
- The kstat module to searchks_instance
- The kstat instance numberks_name
- The kstat name to searchPointer kstat_data_lookup(LibKstat.Kstat ksp, java.lang.String name)
ksp
- The kstat to searchname
- The key for the name-value pair, or name of the timer as
applicable