injections 105 include/pacemaker.h void pcmk_free_injections(pcmk_injections_t *injections); injections 163 include/pacemaker.h pcmk_injections_t *injections, unsigned int flags, injections 73 include/pcmki/pcmki_sched_utils.h pcmk_injections_t *injections); injections 113 include/pcmki/pcmki_simulate.h pcmk_injections_t *injections, unsigned int flags, injections 392 lib/pacemaker/pcmk_sched_transition.c modify_configuration(pe_working_set_t * data_set, cib_t *cib, pcmk_injections_t *injections) injections 405 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-config", injections->quorum, injections->watchdog); injections 407 lib/pacemaker/pcmk_sched_transition.c if (injections->quorum) { injections 411 lib/pacemaker/pcmk_sched_transition.c crm_xml_add(top, XML_ATTR_HAVE_QUORUM, injections->quorum); injections 417 lib/pacemaker/pcmk_sched_transition.c if (injections->watchdog) { injections 420 lib/pacemaker/pcmk_sched_transition.c XML_ATTR_HAVE_WATCHDOG, injections->watchdog, FALSE, NULL, NULL); injections 425 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->node_up; gIter != NULL; gIter = gIter->next) { injections 439 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->node_down; gIter != NULL; gIter = gIter->next) { injections 464 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->node_fail; gIter != NULL; gIter = gIter->next) { injections 479 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->ticket_grant; gIter != NULL; gIter = gIter->next) { injections 490 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->ticket_revoke; gIter != NULL; gIter = gIter->next) { injections 501 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->ticket_standby; gIter != NULL; gIter = gIter->next) { injections 512 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->ticket_activate; gIter != NULL; gIter = gIter->next) { injections 523 lib/pacemaker/pcmk_sched_transition.c for (gIter = injections->op_inject; gIter != NULL; gIter = gIter->next) { injections 809 lib/pacemaker/pcmk_sched_utils.c pcmk_free_injections(pcmk_injections_t *injections) injections 811 lib/pacemaker/pcmk_sched_utils.c if (injections == NULL) { injections 815 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->node_up, g_free); injections 816 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->node_down, g_free); injections 817 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->node_fail, g_free); injections 818 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->op_fail, g_free); injections 819 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->op_inject, g_free); injections 820 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->ticket_grant, g_free); injections 821 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->ticket_revoke, g_free); injections 822 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->ticket_standby, g_free); injections 823 lib/pacemaker/pcmk_sched_utils.c g_list_free_full(injections->ticket_activate, g_free); injections 824 lib/pacemaker/pcmk_sched_utils.c free(injections->quorum); injections 825 lib/pacemaker/pcmk_sched_utils.c free(injections->watchdog); injections 827 lib/pacemaker/pcmk_sched_utils.c free(injections); injections 358 lib/pacemaker/pcmk_simulate.c pcmk__simulate(pe_working_set_t *data_set, pcmk__output_t *out, pcmk_injections_t *injections, injections 397 lib/pacemaker/pcmk_simulate.c modified = injections->node_down != NULL || injections->node_fail != NULL || injections 398 lib/pacemaker/pcmk_simulate.c injections->node_up != NULL || injections->op_inject != NULL || injections 399 lib/pacemaker/pcmk_simulate.c injections->ticket_activate != NULL || injections->ticket_grant != NULL || injections 400 lib/pacemaker/pcmk_simulate.c injections->ticket_revoke != NULL || injections->ticket_standby != NULL || injections 401 lib/pacemaker/pcmk_simulate.c injections->watchdog != NULL || injections->watchdog != NULL; injections 405 lib/pacemaker/pcmk_simulate.c modify_configuration(data_set, cib, injections); injections 492 lib/pacemaker/pcmk_simulate.c if (run_simulation(data_set, cib, injections->op_fail) != transition_complete) { injections 521 lib/pacemaker/pcmk_simulate.c pcmk_simulate(xmlNodePtr *xml, pe_working_set_t *data_set, pcmk_injections_t *injections, injections 536 lib/pacemaker/pcmk_simulate.c rc = pcmk__simulate(data_set, out, injections, flags, section_opts, injections 40 tools/crm_simulate.c pcmk_injections_t *injections; injections 105 tools/crm_simulate.c options.injections->node_down = g_list_append(options.injections->node_down, g_strdup(optarg)); injections 111 tools/crm_simulate.c options.injections->node_fail = g_list_append(options.injections->node_fail, g_strdup(optarg)); injections 118 tools/crm_simulate.c options.injections->node_up = g_list_append(options.injections->node_up, g_strdup(optarg)); injections 125 tools/crm_simulate.c options.injections->op_fail = g_list_append(options.injections->op_fail, g_strdup(optarg)); injections 131 tools/crm_simulate.c options.injections->op_inject = g_list_append(options.injections->op_inject, g_strdup(optarg)); injections 149 tools/crm_simulate.c if (options.injections->quorum) { injections 150 tools/crm_simulate.c free(options.injections->quorum); injections 153 tools/crm_simulate.c options.injections->quorum = strdup(optarg); injections 193 tools/crm_simulate.c options.injections->ticket_activate = g_list_append(options.injections->ticket_activate, g_strdup(optarg)); injections 199 tools/crm_simulate.c options.injections->ticket_grant = g_list_append(options.injections->ticket_grant, g_strdup(optarg)); injections 205 tools/crm_simulate.c options.injections->ticket_revoke = g_list_append(options.injections->ticket_revoke, g_strdup(optarg)); injections 211 tools/crm_simulate.c options.injections->ticket_standby = g_list_append(options.injections->ticket_standby, g_strdup(optarg)); injections 223 tools/crm_simulate.c if (options.injections->watchdog) { injections 224 tools/crm_simulate.c free(options.injections->watchdog); injections 227 tools/crm_simulate.c options.injections->watchdog = strdup(optarg); injections 487 tools/crm_simulate.c options.injections = calloc(1, sizeof(pcmk_injections_t)); injections 488 tools/crm_simulate.c if (options.injections == NULL) { injections 567 tools/crm_simulate.c rc = pcmk__simulate(data_set, out, options.injections, options.flags, section_opts, injections 583 tools/crm_simulate.c pcmk_free_injections(options.injections);