x86_cstate x86_ept
API Reference Manual  /  4 Model-to-Model Interfaces  / 

x86_cstate_notification

Description
Objects registered in the CPU's cstate_listeners attribute will be called via the notification method whenever the CPU's cstate changes. Only changes caused by instruction execution or calls to the x86_cstate.set_cstate function will trigger a notification, not attribute accesses. See the x86_cstate interface for how the C-state is encoded in the parameters.

SIM_INTERFACE(x86_cstate_notification) {
        void (*notification)(conf_object_t *listener, conf_object_t *cpu,
                             uint32 state, uint32 sub_state);
};

#define X86_CSTATE_NOTIFICATION_INTERFACE "x86_cstate_notification"

Execution Context
Cell Context.

x86_cstate x86_ept