|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "utils.h"#include "hci.h"Go to the source code of this file.
Functions | |
| static double | hci_now (HCIManager *manager) |
| void | hci_init (HCIManager *manager, char *prefix, double WallClockTimeLimit, double AutoCheckPointTime, int FOFEnabled) |
| void | hci_action_init (HCIAction *action) |
| void | hci_override_now (HCIManager *manager, double now) |
| static double | hci_get_elapsed_time (HCIManager *manager) |
| static void | hci_update_query_timer (HCIManager *manager) |
| int | hci_query_filesystem (HCIManager *manager, const char *filename, char **request) |
| static int | hci_query_timeout (HCIManager *manager, char **request) |
| static int | hci_query_auto_checkpoint (HCIManager *manager, char **request) |
| int | hci_query (HCIManager *manager, HCIAction *action) |
| 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().
|
static |
Definition at line 55 of file hci.c.
References hci_now(), manager, and HCIManager::timer_begin.
Referenced by hci_query(), hci_query_auto_checkpoint(), and hci_query_timeout().
| void hci_init | ( | HCIManager * | manager, |
| char * | prefix, | ||
| double | WallClockTimeLimit, | ||
| 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().
|
static |
Definition at line 11 of file hci.c.
References HCIManager::_now, manager, and HCIManager::OVERRIDE_NOW.
Referenced by hci_get_elapsed_time(), hci_init(), and hci_update_query_timer().
| 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().
|
static |
Definition at line 134 of file hci.c.
References HCIManager::AutoCheckPointTime, hci_get_elapsed_time(), manager, and HCIManager::TimeLastCheckPoint.
Referenced by hci_query().
| int hci_query_filesystem | ( | HCIManager * | manager, |
| const char * | filename, | ||
| char ** | request | ||
| ) |
Definition at line 77 of file hci.c.
References fastpm_file_get_content(), fastpm_strdup_printf(), manager, myfree, NTask, HCIManager::prefix, ta_malloc, and ThisTask.
Referenced by hci_query().
|
static |
Definition at line 112 of file hci.c.
References hci_get_elapsed_time(), HCIManager::LongestTimeBetweenQueries, manager, and HCIManager::WallClockTimeLimit.
Referenced by hci_query().
|
static |
Definition at line 62 of file hci.c.
References hci_now(), HCIManager::LongestTimeBetweenQueries, manager, and HCIManager::timer_query_begin.
Referenced by hci_query().