score 634 daemons/fenced/pacemaker-fenced.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); score 636 daemons/fenced/pacemaker-fenced.c crm_info("Device %s has been disabled on %s: score=%s", rsc->id, stonith_our_uname, score); score 637 daemons/fenced/pacemaker-fenced.c free(score); score 116 include/crm/common/util.h int char2score(const char *score); score 117 include/crm/common/util.h char *score2char(int score); score 118 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); score 224 include/crm/pengine/internal.h void common_update_score(pe_resource_t * rsc, const char *id, int score); score 469 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 553 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 31 include/pcmki/pcmki_sched_utils.h extern gboolean rsc_colocation_new(const char *id, const char *node_attr, int score, score 49 include/pcmki/pcmki_scheduler.h int score; score 61 lib/common/utils.c char2score(const char *score) score 65 lib/common/utils.c if (score == NULL) { score 67 lib/common/utils.c } else if (pcmk_str_is_minus_infinity(score)) { score 70 lib/common/utils.c } else if (pcmk_str_is_infinity(score)) { score 73 lib/common/utils.c } else if (pcmk__str_eq(score, "red", pcmk__str_casei)) { score 76 lib/common/utils.c } else if (pcmk__str_eq(score, "yellow", pcmk__str_casei)) { score 79 lib/common/utils.c } else if (pcmk__str_eq(score, "green", pcmk__str_casei)) { score 83 lib/common/utils.c score_f = crm_parse_int(score, NULL); score 96 lib/common/utils.c score2char_stack(int score, char *buf, size_t len) score 98 lib/common/utils.c if (score >= CRM_SCORE_INFINITY) { score 100 lib/common/utils.c } else if (score <= -CRM_SCORE_INFINITY) { score 103 lib/common/utils.c return crm_itoa_stack(score, buf, len); score 110 lib/common/utils.c score2char(int score) score 112 lib/common/utils.c if (score >= CRM_SCORE_INFINITY) { score 115 lib/common/utils.c } else if (score <= -CRM_SCORE_INFINITY) { score 118 lib/common/utils.c return crm_itoa(score); score 793 lib/pacemaker/pcmk_sched_allocate.c int score; score 796 lib/pacemaker/pcmk_sched_allocate.c score = char2score(value); score 799 lib/pacemaker/pcmk_sched_allocate.c *system_health = pe__add_scores(score, *system_health); score 483 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score == 0) { score 500 lib/pacemaker/pcmk_sched_bundle.c } else if (constraint->score >= INFINITY) { score 513 lib/pacemaker/pcmk_sched_bundle.c constraint->id, rsc_lh->id, rsc->id, constraint->score); score 519 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score < INFINITY) { score 546 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score >= INFINITY) { score 242 lib/pacemaker/pcmk_sched_clone.c if (constraint->score == 0) { score 250 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 257 lib/pacemaker/pcmk_sched_clone.c if (constraint->score == 0) { score 265 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 279 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 291 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 504 lib/pacemaker/pcmk_sched_clone.c if (cons->score == 0) { score 507 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { score 516 lib/pacemaker/pcmk_sched_clone.c if (cons->score == 0) { score 519 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { score 650 lib/pacemaker/pcmk_sched_clone.c if (constraint->score == 0) { score 661 lib/pacemaker/pcmk_sched_clone.c if (constraint->score == 0) { score 667 lib/pacemaker/pcmk_sched_clone.c (float)constraint->score / INFINITY, score 1082 lib/pacemaker/pcmk_sched_clone.c if (constraint->score == 0) { score 1086 lib/pacemaker/pcmk_sched_clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); score 1129 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 1139 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 156 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 160 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 162 lib/pacemaker/pcmk_sched_constraints.c int score_i = char2score(score); score 713 lib/pacemaker/pcmk_sched_constraints.c const char * score, pe_working_set_t * data_set, pe_match_data_t * match_data); score 796 lib/pacemaker/pcmk_sched_constraints.c const char * score, pe_working_set_t * data_set, pe_match_data_t * match_data) score 810 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 811 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 814 lib/pacemaker/pcmk_sched_constraints.c if (node != NULL && score != NULL) { score 815 lib/pacemaker/pcmk_sched_constraints.c int score_i = char2score(score); score 1041 lib/pacemaker/pcmk_sched_constraints.c get_node_score(const char *rule, const char *score, gboolean raw, pe_node_t * node, pe_resource_t *rsc) score 1045 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1049 lib/pacemaker/pcmk_sched_constraints.c score_f = char2score(score); score 1052 lib/pacemaker/pcmk_sched_constraints.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); score 1056 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); score 1061 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, attr_score, score); score 1074 lib/pacemaker/pcmk_sched_constraints.c const char *score = NULL; score 1100 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE); score 1101 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1102 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE); score 1103 lib/pacemaker/pcmk_sched_constraints.c if (score != NULL) { score 1119 lib/pacemaker/pcmk_sched_constraints.c char *result = pe_expand_re_matches(score, match_data->re); score 1122 lib/pacemaker/pcmk_sched_constraints.c score = (const char *) result; score 1145 lib/pacemaker/pcmk_sched_constraints.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); score 1159 lib/pacemaker/pcmk_sched_constraints.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); score 1193 lib/pacemaker/pcmk_sched_constraints.c free((char *)score); score 1345 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(const char *id, const char *node_attr, int score, score 1373 lib/pacemaker/pcmk_sched_constraints.c new_con->score = score; score 1382 lib/pacemaker/pcmk_sched_constraints.c pe_rsc_trace(rsc_lh, "%s ==> %s (%s %d)", rsc_lh->id, rsc_rh->id, node_attr, score); score 1391 lib/pacemaker/pcmk_sched_constraints.c if (score <= -INFINITY) { score 2283 lib/pacemaker/pcmk_sched_constraints.c unpack_colocation_set(xmlNode * set, int score, pe_working_set_t * data_set) score 2292 lib/pacemaker/pcmk_sched_constraints.c int local_score = score; score 2377 lib/pacemaker/pcmk_sched_constraints.c colocate_rsc_sets(const char *id, xmlNode * set1, xmlNode * set2, int score, score 2417 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2425 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2435 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2454 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2470 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2535 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2536 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 2672 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2676 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2677 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 514 lib/pacemaker/pcmk_sched_graph.c if (colocate_with->score == INFINITY) { score 299 lib/pacemaker/pcmk_sched_group.c if (constraint->score == 0) { score 314 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 340 lib/pacemaker/pcmk_sched_group.c if (constraint->score == 0) { score 350 lib/pacemaker/pcmk_sched_group.c if (constraint->score >= INFINITY) { score 366 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 519 lib/pacemaker/pcmk_sched_group.c if (constraint->score == 0) { score 524 lib/pacemaker/pcmk_sched_group.c constraint->score / (float) INFINITY, score 184 lib/pacemaker/pcmk_sched_native.c static char score[33]; score 187 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); score 190 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); score 271 lib/pacemaker/pcmk_sched_native.c int score = 0; score 274 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, score 277 lib/pacemaker/pcmk_sched_native.c if ((factor < 0) && (score < 0)) { score 284 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 290 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 294 lib/pacemaker/pcmk_sched_native.c weight_f = factor * score; score 303 lib/pacemaker/pcmk_sched_native.c if ((weight == 0) && (score != 0)) { score 316 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 324 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 330 lib/pacemaker/pcmk_sched_native.c node->weight, factor, score, new_score); score 439 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 454 lib/pacemaker/pcmk_sched_native.c multiplier * constraint->score / (float) INFINITY, score 534 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 539 lib/pacemaker/pcmk_sched_native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { score 546 lib/pacemaker/pcmk_sched_native.c constraint->score, role2text(constraint->role_lh)); score 565 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 574 lib/pacemaker/pcmk_sched_native.c (float)constraint->score / INFINITY, score 1676 lib/pacemaker/pcmk_sched_native.c int score; score 1694 lib/pacemaker/pcmk_sched_native.c score = 10000; /* Highly preferred but not essential */ score 1696 lib/pacemaker/pcmk_sched_native.c score = INFINITY; /* Force them to run on the same host */ score 1698 lib/pacemaker/pcmk_sched_native.c rsc_colocation_new("resource-with-container", NULL, score, rsc, score 1725 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 1738 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 1765 lib/pacemaker/pcmk_sched_native.c if (constraint->score >= INFINITY) { score 1776 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score <= -INFINITY) { score 1789 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1796 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1802 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1809 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1827 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 1842 lib/pacemaker/pcmk_sched_native.c if(constraint->score == INFINITY && constraint->role_lh == RSC_ROLE_MASTER) { score 1856 lib/pacemaker/pcmk_sched_native.c rsc_lh->priority = pe__add_scores(score_multiplier * constraint->score, score 1869 lib/pacemaker/pcmk_sched_native.c if (constraint->score == 0) { score 1879 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score < 0) { score 1891 lib/pacemaker/pcmk_sched_native.c constraint->score, rsc_rh->id); score 1892 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); score 1895 lib/pacemaker/pcmk_sched_native.c if (constraint->score < CRM_SCORE_INFINITY) { score 1898 lib/pacemaker/pcmk_sched_native.c node->details->uname, constraint->score); score 1899 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(constraint->score, node->weight); score 1902 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score >= CRM_SCORE_INFINITY) { score 1905 lib/pacemaker/pcmk_sched_native.c constraint->score, attribute); score 1906 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); score 1911 lib/pacemaker/pcmk_sched_native.c || constraint->score <= -INFINITY || constraint->score >= INFINITY) { score 1938 lib/pacemaker/pcmk_sched_native.c ((constraint->score >= 0)? "Colocating" : "Anti-colocating"), score 1939 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); score 280 lib/pacemaker/pcmk_sched_promotable.c char score[33]; score 281 lib/pacemaker/pcmk_sched_promotable.c size_t len = sizeof(score); score 312 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child->sort_index, score, len); score 313 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Adding %s to %s from %s", score, score 324 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score == 0) { score 332 lib/pacemaker/pcmk_sched_promotable.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; score 335 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 340 lib/pacemaker/pcmk_sched_promotable.c (float)constraint->score / INFINITY, flags); score 348 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score == 0) { score 357 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 362 lib/pacemaker/pcmk_sched_promotable.c (float)constraint->score / INFINITY, score 479 lib/pacemaker/pcmk_sched_promotable.c int score = not_set_value; score 491 lib/pacemaker/pcmk_sched_promotable.c if (score == not_set_value) { score 492 lib/pacemaker/pcmk_sched_promotable.c score = c_score; score 494 lib/pacemaker/pcmk_sched_promotable.c score += c_score; score 497 lib/pacemaker/pcmk_sched_promotable.c return score; score 518 lib/pacemaker/pcmk_sched_promotable.c return score; score 524 lib/pacemaker/pcmk_sched_promotable.c return score; score 529 lib/pacemaker/pcmk_sched_promotable.c return score; score 558 lib/pacemaker/pcmk_sched_promotable.c score = char2score(attr_value); score 561 lib/pacemaker/pcmk_sched_promotable.c return score; score 567 lib/pacemaker/pcmk_sched_promotable.c int score, new_score; score 595 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, 0); score 596 lib/pacemaker/pcmk_sched_promotable.c if (score > 0) { score 597 lib/pacemaker/pcmk_sched_promotable.c new_score = pe__add_scores(node->weight, score); score 605 lib/pacemaker/pcmk_sched_promotable.c new_score = QB_MAX(child_rsc->priority, score); score 672 lib/pacemaker/pcmk_sched_promotable.c char score[33]; score 673 lib/pacemaker/pcmk_sched_promotable.c size_t len = sizeof(score); score 743 lib/pacemaker/pcmk_sched_promotable.c if (cons->score == 0) { score 765 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child_rsc->sort_index, score, len); score 772 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); score 777 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); score 957 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) score 977 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(node->weight, score); score 989 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score == 0) { score 1003 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); score 1004 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score < INFINITY) { score 1006 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint->score); score 1016 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score >= INFINITY) { score 1027 lib/pacemaker/pcmk_sched_promotable.c if (rh_child == NULL && constraint->score >= INFINITY) { score 1033 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 287 lib/pacemaker/pcmk_sched_utilization.c if (constraint->score == INFINITY score 314 lib/pacemaker/pcmk_sched_utilization.c if (constraint->score == INFINITY score 760 lib/pengine/complex.c common_update_score(pe_resource_t * rsc, const char *id, int score) score 766 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); score 767 lib/pengine/complex.c node->weight = pe__add_scores(node->weight, score); score 776 lib/pengine/complex.c common_update_score(child_rsc, id, score); score 330 lib/pengine/failcounts.c char *score = score2char(failcount); score 333 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 334 lib/pengine/failcounts.c free(score); score 338 lib/pengine/failcounts.c char *score = score2char(failcount); score 341 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 342 lib/pengine/failcounts.c free(score); score 405 lib/pengine/rules.c int score; // This block's score for sorting score 432 lib/pengine/rules.c if (pair_a->score < pair_b->score) { score 434 lib/pengine/rules.c } else if (pair_a->score > pair_b->score) { score 586 lib/pengine/rules.c pair->name, pair->score, score 621 lib/pengine/rules.c const char *score = NULL; score 644 lib/pengine/rules.c score = crm_element_value(attr_set, XML_RULE_ATTR_SCORE); score 645 lib/pengine/rules.c pair->score = char2score(score); score 397 lib/pengine/unpack.c const char *score, pe_working_set_t * data_set) score 410 lib/pengine/unpack.c new_node->weight = char2score(score); score 545 lib/pengine/unpack.c const char *score = NULL; score 565 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 573 lib/pengine/unpack.c new_node = pe_create_node(id, uname, type, score, data_set); score 2455 lib/pengine/unpack.c int *score = user_data; score 2457 lib/pengine/unpack.c node->weight = *score; score 3018 lib/pengine/unpack.c int score = -INFINITY; score 3040 lib/pengine/unpack.c g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score); score 233 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 241 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 244 lib/pengine/utils.c comment, rsc->id, node->details->uname, score); score 246 lib/pengine/utils.c printf("%s: %s = %s\n", comment, node->details->uname, score); score 269 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 276 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 282 lib/pengine/utils.c node->details->uname, score); score 287 lib/pengine/utils.c score); score 1637 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 1655 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1659 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1665 lib/pengine/utils.c match->weight = pe__add_scores(match->weight, score); score 1669 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 1673 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1681 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1690 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1694 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { score 192 tools/crm_resource_print.c char *score = score2char(node->weight); score 195 tools/crm_resource_print.c prefix ? prefix : " ", 71 - offset, node->details->uname, score, cons->id); score 196 tools/crm_resource_print.c free(score); score 226 tools/crm_resource_print.c char *score = NULL; score 245 tools/crm_resource_print.c score = score2char(cons->score); score 248 tools/crm_resource_print.c peer->id, score, dependents ? "needs" : "with", role2text(cons->role_rh), score 252 tools/crm_resource_print.c peer->id, score, cons->id); score 255 tools/crm_resource_print.c free(score); score 386 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); score 387 tools/crm_resource_runtime.c if (cons->score > 0 && !pcmk_is_set(peer->flags, pe_rsc_allocating)) {