score 743 daemons/fenced/pacemaker-fenced.c int score = (node->weight < 0)? node->weight : parent->weight; score 746 daemons/fenced/pacemaker-fenced.c rsc->id, stonith_our_uname, pcmk_readable_score(score)); score 49 include/crm/common/util.h const char *pcmk_readable_score(int score); score 50 include/crm/common/util.h int char2score(const char *score); score 155 include/crm/common/util_compat.h char *score2char(int score); score 158 include/crm/common/util_compat.h char *score2char_stack(int score, char *buf, size_t len); score 251 include/crm/pengine/internal.h void common_update_score(pe_resource_t * rsc, const char *id, int score); score 466 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 558 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 31 include/pcmki/pcmki_scheduler.h int score; score 36 lib/common/scores.c char2score(const char *score) score 38 lib/common/scores.c if (score == NULL) { score 41 lib/common/scores.c } else if (pcmk_str_is_minus_infinity(score)) { score 44 lib/common/scores.c } else if (pcmk_str_is_infinity(score)) { score 47 lib/common/scores.c } else if (pcmk__str_eq(score, PCMK__VALUE_RED, pcmk__str_casei)) { score 50 lib/common/scores.c } else if (pcmk__str_eq(score, PCMK__VALUE_YELLOW, pcmk__str_casei)) { score 53 lib/common/scores.c } else if (pcmk__str_eq(score, PCMK__VALUE_GREEN, pcmk__str_casei)) { score 59 lib/common/scores.c pcmk__scan_ll(score, &score_ll, 0LL); score 86 lib/common/scores.c pcmk_readable_score(int score) score 91 lib/common/scores.c if (score >= CRM_SCORE_INFINITY) { score 94 lib/common/scores.c } else if (score <= -CRM_SCORE_INFINITY) { score 99 lib/common/scores.c snprintf(score_s, sizeof(score_s), "%d", score); score 181 lib/common/scores.c score2char(int score) score 183 lib/common/scores.c char *result = strdup(pcmk_readable_score(score)); score 190 lib/common/scores.c score2char_stack(int score, char *buf, size_t len) score 194 lib/common/scores.c strcpy(buf, pcmk_readable_score(score)); score 407 lib/pacemaker/libpacemaker_private.h void pcmk__new_colocation(const char *id, const char *node_attr, int score, score 29 lib/pacemaker/pcmk_output.c rsc->id, pcmk_readable_score(cons->score), score 34 lib/pacemaker/pcmk_output.c rsc->id, pcmk_readable_score(cons->score), score 49 lib/pacemaker/pcmk_output.c "score", pcmk_readable_score(cons->score), score 489 lib/pacemaker/pcmk_sched_bundle.c } else if (colocation->score >= INFINITY) { score 504 lib/pacemaker/pcmk_sched_bundle.c colocation->id, dependent->id, primary->id, colocation->score); score 510 lib/pacemaker/pcmk_sched_bundle.c if (colocation->score < INFINITY) { score 538 lib/pacemaker/pcmk_sched_bundle.c if (colocation->score >= INFINITY) { score 155 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { score 167 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { score 330 lib/pacemaker/pcmk_sched_clone.c const float factor = constraint->score / (float) INFINITY; score 719 lib/pacemaker/pcmk_sched_clone.c colocation->id, dependent->id, primary->id, colocation->score); score 780 lib/pacemaker/pcmk_sched_clone.c } else if (colocation->score >= INFINITY) { score 792 lib/pacemaker/pcmk_sched_clone.c } else if (colocation->score >= INFINITY) { score 225 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(const char *id, const char *node_attr, int score, score 232 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 260 lib/pacemaker/pcmk_sched_colocation.c new_con->score = score; score 271 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, node_attr, score); score 279 lib/pacemaker/pcmk_sched_colocation.c if (score <= -INFINITY) { score 317 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, score 326 lib/pacemaker/pcmk_sched_colocation.c int local_score = score; score 417 lib/pacemaker/pcmk_sched_colocation.c colocate_rsc_sets(const char *id, xmlNode *set1, xmlNode *set2, int score, score 430 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 459 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2, score 470 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 479 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 500 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, score 514 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 597 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 598 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 744 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 748 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 749 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 889 lib/pacemaker/pcmk_sched_colocation.c if (colocation->score < INFINITY) { score 965 lib/pacemaker/pcmk_sched_colocation.c } else if (colocation->score >= INFINITY) { score 976 lib/pacemaker/pcmk_sched_colocation.c } else if (colocation->score <= -CRM_SCORE_INFINITY) { score 989 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score > 0) score 1000 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score > 0) score 1011 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score < 0) score 1019 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score < 0) score 1059 lib/pacemaker/pcmk_sched_colocation.c } else if (colocation->score < 0) { score 1071 lib/pacemaker/pcmk_sched_colocation.c colocation->score, primary->id); score 1072 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(-colocation->score, node->weight); score 1076 lib/pacemaker/pcmk_sched_colocation.c if (colocation->score < CRM_SCORE_INFINITY) { score 1079 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(node), colocation->score); score 1080 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(colocation->score, score 1084 lib/pacemaker/pcmk_sched_colocation.c } else if (colocation->score >= CRM_SCORE_INFINITY) { score 1087 lib/pacemaker/pcmk_sched_colocation.c colocation->score, attribute); score 1088 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(-colocation->score, node->weight); score 1092 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score <= -INFINITY) || (colocation->score >= INFINITY) score 1143 lib/pacemaker/pcmk_sched_colocation.c if ((colocation->score == INFINITY) score 1159 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pcmk__add_scores(score_multiplier * colocation->score, score 1236 lib/pacemaker/pcmk_sched_colocation.c int score = 0; score 1239 lib/pacemaker/pcmk_sched_colocation.c score = best_node_score_matching_attr(rsc, attr, score 1242 lib/pacemaker/pcmk_sched_colocation.c if ((factor < 0) && (score < 0)) { score 1249 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(node), node->weight, factor, score); score 1255 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(node), node->weight, factor, score); score 1259 lib/pacemaker/pcmk_sched_colocation.c weight_f = factor * score; score 1268 lib/pacemaker/pcmk_sched_colocation.c if ((weight == 0) && (score != 0)) { score 1281 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(node), node->weight, factor, score, score 1289 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(node), node->weight, factor, score, score 1295 lib/pacemaker/pcmk_sched_colocation.c node->weight, factor, score, new_score); score 1483 lib/pacemaker/pcmk_sched_colocation.c factor = multiplier * constraint->score / (float) INFINITY; score 66 lib/pacemaker/pcmk_sched_group.c if (constraint->score == INFINITY) { score 391 lib/pacemaker/pcmk_sched_group.c if (colocation->score >= INFINITY) { score 433 lib/pacemaker/pcmk_sched_group.c if (colocation->score >= INFINITY) { score 454 lib/pacemaker/pcmk_sched_group.c if (colocation->score >= INFINITY) { score 22 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw, score 27 lib/pacemaker/pcmk_sched_location.c if (score == NULL) { score 31 lib/pacemaker/pcmk_sched_location.c score_f = char2score(score); score 34 lib/pacemaker/pcmk_sched_location.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); score 38 lib/pacemaker/pcmk_sched_location.c rule, pe__node_name(node), score); score 43 lib/pacemaker/pcmk_sched_location.c rule, pe__node_name(node), attr_score, score); score 57 lib/pacemaker/pcmk_sched_location.c const char *score = NULL; score 87 lib/pacemaker/pcmk_sched_location.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE); score 88 lib/pacemaker/pcmk_sched_location.c if (score == NULL) { score 89 lib/pacemaker/pcmk_sched_location.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE); score 90 lib/pacemaker/pcmk_sched_location.c if (score != NULL) { score 108 lib/pacemaker/pcmk_sched_location.c char *result = pe_expand_re_matches(score, re_match_data); score 111 lib/pacemaker/pcmk_sched_location.c score = result; score 134 lib/pacemaker/pcmk_sched_location.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); score 153 lib/pacemaker/pcmk_sched_location.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); score 185 lib/pacemaker/pcmk_sched_location.c free((char *)score); score 201 lib/pacemaker/pcmk_sched_location.c const char *score, pe_working_set_t *data_set, score 216 lib/pacemaker/pcmk_sched_location.c if (score == NULL) { score 217 lib/pacemaker/pcmk_sched_location.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 220 lib/pacemaker/pcmk_sched_location.c if ((node != NULL) && (score != NULL)) { score 221 lib/pacemaker/pcmk_sched_location.c int score_i = char2score(score); score 78 lib/pacemaker/pcmk_sched_ordering.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 82 lib/pacemaker/pcmk_sched_ordering.c if (score) { score 84 lib/pacemaker/pcmk_sched_ordering.c int score_i = char2score(score); score 286 lib/pacemaker/pcmk_sched_primitive.c || ((colocation->score < 0) && (colocation->score > -INFINITY))) { score 294 lib/pacemaker/pcmk_sched_primitive.c colocation->score, role2text(colocation->dependent_role)); score 328 lib/pacemaker/pcmk_sched_primitive.c const float factor = colocation->score / (float) INFINITY; score 964 lib/pacemaker/pcmk_sched_primitive.c int score; score 982 lib/pacemaker/pcmk_sched_primitive.c score = 10000; /* Highly preferred but not essential */ score 984 lib/pacemaker/pcmk_sched_primitive.c score = INFINITY; /* Force them to run on the same host */ score 986 lib/pacemaker/pcmk_sched_primitive.c pcmk__new_colocation("resource-with-container", NULL, score, rsc, score 1034 lib/pacemaker/pcmk_sched_primitive.c ((colocation->score > 0)? "Colocating" : "Anti-colocating"), score 1035 lib/pacemaker/pcmk_sched_primitive.c dependent->id, primary->id, colocation->id, colocation->score, score 340 lib/pacemaker/pcmk_sched_promotable.c float factor = constraint->score / (float) INFINITY; score 345 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score < INFINITY) { score 351 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(constraint->score)); score 369 lib/pacemaker/pcmk_sched_promotable.c const float factor = constraint->score / (float) INFINITY; score 381 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(constraint->score)); score 671 lib/pacemaker/pcmk_sched_promotable.c int score = 0; score 681 lib/pacemaker/pcmk_sched_promotable.c score += child_score; score 683 lib/pacemaker/pcmk_sched_promotable.c return score; score 743 lib/pacemaker/pcmk_sched_promotable.c int score, new_score; score 754 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, NULL); score 755 lib/pacemaker/pcmk_sched_promotable.c if (score > 0) { score 756 lib/pacemaker/pcmk_sched_promotable.c new_score = pcmk__add_scores(node->weight, score); score 767 lib/pacemaker/pcmk_sched_promotable.c if (score > child_rsc->priority) { score 770 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, child_rsc->priority, score); score 771 lib/pacemaker/pcmk_sched_promotable.c child_rsc->priority = score; score 1142 lib/pacemaker/pcmk_sched_promotable.c if (colocation->score >= INFINITY) { score 1157 lib/pacemaker/pcmk_sched_promotable.c colocation->score, dependent->id); score 1165 lib/pacemaker/pcmk_sched_promotable.c pe__node_name(node), node->weight, colocation->score); score 1166 lib/pacemaker/pcmk_sched_promotable.c node->weight = pcmk__add_scores(node->weight, colocation->score); score 1209 lib/pacemaker/pcmk_sched_promotable.c if ((colocation->score >= INFINITY) score 1245 lib/pacemaker/pcmk_sched_promotable.c colocation->score); score 1252 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(colocation->score), score 1256 lib/pacemaker/pcmk_sched_promotable.c } else if (colocation->score >= INFINITY) { score 237 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 260 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 745 lib/pacemaker/pcmk_sched_resource.c colocation->score / (float) INFINITY, score 755 lib/pacemaker/pcmk_sched_resource.c colocation->score / (float) INFINITY, score 873 lib/pengine/complex.c common_update_score(pe_resource_t * rsc, const char *id, int score) score 879 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); score 880 lib/pengine/complex.c node->weight = pcmk__add_scores(node->weight, score); score 889 lib/pengine/complex.c common_update_score(child_rsc, id, score); score 77 lib/pengine/pe_health.c int score = char2score((const char *) value); score 80 lib/pengine/pe_health.c *health = pcmk__add_scores(score, *health); score 118 lib/pengine/pe_health.c int score = 0; score 145 lib/pengine/pe_health.c score = char2score(value); score 146 lib/pengine/pe_health.c if (score <= pcmk__score_red) { score 148 lib/pengine/pe_health.c } else if ((score <= pcmk__score_yellow) score 2396 lib/pengine/pe_output.c const char *score = va_arg(args, const char *); score 2400 lib/pengine/pe_output.c prefix, rsc->id, uname, score); score 2402 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); score 2415 lib/pengine/pe_output.c const char *score = va_arg(args, const char *); score 2420 lib/pengine/pe_output.c "score", score, score 2504 lib/pengine/pe_output.c const char *score = va_arg(args, const char *); score 2509 lib/pengine/pe_output.c score); score 2519 lib/pengine/pe_output.c const char *score = va_arg(args, const char *); score 2523 lib/pengine/pe_output.c "score", score, score 313 lib/pengine/rules.c int score; // This block's score for sorting score 340 lib/pengine/rules.c if (pair_a->score < pair_b->score) { score 342 lib/pengine/rules.c } else if (pair_a->score > pair_b->score) { score 425 lib/pengine/rules.c pair->name, pair->score, score 455 lib/pengine/rules.c const char *score = NULL; score 469 lib/pengine/rules.c score = crm_element_value(expanded_attr_set, XML_RULE_ATTR_SCORE); score 470 lib/pengine/rules.c pair->score = char2score(score); score 382 lib/pengine/unpack.c const char *score, pe_working_set_t * data_set) score 395 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 2575 lib/pengine/unpack.c int *score = user_data; score 2577 lib/pengine/unpack.c node->weight = *score; score 3306 lib/pengine/unpack.c int score = -INFINITY; score 3328 lib/pengine/unpack.c g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score); score 352 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 370 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 375 lib/pengine/utils.c tag, rsc->id, pe__node_name(node), score); score 381 lib/pengine/utils.c match->weight = pcmk__add_scores(match->weight, score); score 385 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 389 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 397 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 406 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 410 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { score 383 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); score 384 tools/crm_resource_runtime.c if ((cons->score > 0)