MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | HCIManager |
struct | HCIAction |
Typedefs | |
typedef struct HCIManager | HCIManager |
typedef struct HCIAction | HCIAction |
Enumerations | |
enum | HCIActionType { HCI_NO_ACTION = 0 , HCI_STOP = 1 , HCI_TIMEOUT = 2 , HCI_AUTO_CHECKPOINT = 3 , HCI_CHECKPOINT = 4 , HCI_TERMINATE = 5 , HCI_IOCTL = 6 } |
Functions | |
void | hci_init (HCIManager *manager, char *prefix, double TimeLimitCPU, double AutoCheckPointTime, int FOFEnabled) |
void | hci_action_init (HCIAction *action) |
int | hci_query (HCIManager *manager, HCIAction *action) |
void | hci_override_now (HCIManager *manager, double now) |
typedef struct HCIManager HCIManager |
enum HCIActionType |
void hci_action_init | ( | HCIAction * | action | ) |
Definition at line 38 of file hci.c.
References HCI_NO_ACTION, HCIAction::type, HCIAction::write_fof, and HCIAction::write_snapshot.
Referenced by hci_query(), and run().
void hci_init | ( | HCIManager * | manager, |
char * | prefix, | ||
double | TimeLimitCPU, | ||
double | AutoCheckPointTime, | ||
int | FOFEnabled | ||
) |
Definition at line 25 of file hci.c.
References HCIManager::AutoCheckPointTime, HCIManager::FOFEnabled, hci_now(), HCIManager::LongestTimeBetweenQueries, manager, HCIManager::prefix, prefix, HCIManager::timer_begin, HCIManager::timer_query_begin, and HCIManager::WallClockTimeLimit.
Referenced by run(), test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), and test_hci_timeout().
void hci_override_now | ( | HCIManager * | manager, |
double | now | ||
) |
Definition at line 48 of file hci.c.
References HCIManager::_now, manager, and HCIManager::OVERRIDE_NOW.
Referenced by test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), and test_hci_timeout().
int hci_query | ( | HCIManager * | manager, |
HCIAction * | action | ||
) |
Definition at line 152 of file hci.c.
References HCIManager::FOFEnabled, hci_action_init(), HCI_AUTO_CHECKPOINT, HCI_CHECKPOINT, hci_get_elapsed_time(), hci_query_auto_checkpoint(), hci_query_filesystem(), hci_query_timeout(), HCI_STOP, HCI_TERMINATE, HCI_TIMEOUT, hci_update_query_timer(), manager, message(), myfree, HCIManager::TimeLastCheckPoint, HCIAction::type, HCIAction::write_fof, and HCIAction::write_snapshot.
Referenced by run(), test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), and test_hci_timeout().