pub enum FrameworkErrorKind {
Show 17 variants
None,
InvalidArgument,
OutOfMemory,
Io,
BufferTooSmall,
CurrentSystemUnknown,
DatabasePathInvalid,
DatabaseNotFound,
DatabaseArchitectureUnsupported,
DatabaseVersionUnsupported,
DatabaseCorrupt,
EventNotFound,
ConflictingEvents,
AllCountersMustBeForced,
EventUnavailable,
CheckErrno,
Other(c_int),
}Expand description
Categorizes a kpep_config_error_code into a semantic variant.
The variants mirror the KPEP_CONFIG_ERROR_* constants from kperfdata.framework.
Other captures any unrecognized code returned by a future OS
revision.
Variants§
None
The operation completed successfully (KPEP_CONFIG_ERROR_NONE, code 0).
InvalidArgument
A required argument was null or otherwise invalid.
OutOfMemory
Memory allocation failed inside the framework.
Io
An I/O error occurred while reading the PMC database plist.
BufferTooSmall
A caller-supplied buffer was too small to receive the result.
CurrentSystemUnknown
The current CPU could not be identified in the PMC database.
DatabasePathInvalid
The path to the PMC database plist is invalid.
DatabaseNotFound
No PMC database plist was found for the requested CPU.
DatabaseArchitectureUnsupported
The PMC database exists but targets an unsupported architecture.
DatabaseVersionUnsupported
The PMC database version is not supported by this framework build.
DatabaseCorrupt
The PMC database plist is malformed or corrupt.
EventNotFound
The requested event name was not found in the PMC database.
ConflictingEvents
Two or more events conflict and cannot be measured simultaneously.
AllCountersMustBeForced
Counters must be force-acquired via kpc_force_all_ctrs_set(1) before configuring.
The requested event exists in the database but is unavailable on this hardware.
CheckErrno
A POSIX error occurred; check errno for details.
Other(c_int)
An error code not covered by any known variant.
Trait Implementations§
Source§impl Clone for FrameworkErrorKind
impl Clone for FrameworkErrorKind
Source§fn clone(&self) -> FrameworkErrorKind
fn clone(&self) -> FrameworkErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more