score 746 daemons/fenced/pacemaker-fenced.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); score 748 daemons/fenced/pacemaker-fenced.c crm_info("Device %s has been disabled on %s: score=%s", rsc->id, stonith_our_uname, score); score 749 daemons/fenced/pacemaker-fenced.c free(score); score 49 include/crm/common/util.h int char2score(const char *score); score 50 include/crm/common/util.h char *score2char(int score); score 51 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); score 227 include/crm/pengine/internal.h void common_update_score(pe_resource_t * rsc, const char *id, int score); score 431 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 519 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 41 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 85 lib/common/scores.c score2char_stack(int score, char *buf, size_t len) score 90 lib/common/scores.c if (score >= CRM_SCORE_INFINITY) { score 92 lib/common/scores.c } else if (score <= -CRM_SCORE_INFINITY) { score 95 lib/common/scores.c snprintf(buf, len, "%d", score); score 114 lib/common/scores.c score2char(int score) score 118 lib/common/scores.c if (score >= CRM_SCORE_INFINITY) { score 122 lib/common/scores.c } else if (score <= -CRM_SCORE_INFINITY) { score 127 lib/common/scores.c result = pcmk__itoa(score); score 163 lib/pacemaker/libpacemaker_private.h void pcmk__new_colocation(const char *id, const char *node_attr, int score, score 25 lib/pacemaker/pcmk_output.c char *score = NULL; score 28 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 31 lib/pacemaker/pcmk_output.c rsc->id, score, dependents ? "needs" : "with", score 35 lib/pacemaker/pcmk_output.c rsc->id, score, cons->id); score 38 lib/pacemaker/pcmk_output.c free(score); score 45 lib/pacemaker/pcmk_output.c char *score = NULL; score 48 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 53 lib/pacemaker/pcmk_output.c "score", score, score 70 lib/pacemaker/pcmk_output.c free(score); score 87 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 97 lib/pacemaker/pcmk_output.c "score", score, score 99 lib/pacemaker/pcmk_output.c free(score); score 526 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 530 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); score 531 lib/pacemaker/pcmk_output.c free(score); score 494 lib/pacemaker/pcmk_sched_bundle.c } else if (constraint->score >= INFINITY) { score 509 lib/pacemaker/pcmk_sched_bundle.c constraint->id, dependent->id, primary->id, constraint->score); score 515 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score < INFINITY) { score 544 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score >= INFINITY) { score 131 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 147 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 161 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 177 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 551 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { score 563 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { score 722 lib/pacemaker/pcmk_sched_clone.c constraint->node_attribute, (float)constraint->score / INFINITY, score 1101 lib/pacemaker/pcmk_sched_clone.c constraint->id, dependent->id, primary->id, constraint->score); score 1151 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 1163 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 194 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(const char *id, const char *node_attr, int score, score 201 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 229 lib/pacemaker/pcmk_sched_colocation.c new_con->score = score; score 240 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, node_attr, score); score 251 lib/pacemaker/pcmk_sched_colocation.c if (score <= -INFINITY) { score 289 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, score 298 lib/pacemaker/pcmk_sched_colocation.c int local_score = score; score 389 lib/pacemaker/pcmk_sched_colocation.c colocate_rsc_sets(const char *id, xmlNode *set1, xmlNode *set2, int score, score 402 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 431 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2, score 442 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 451 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 472 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, score 486 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 556 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 557 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 703 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 707 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 708 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 814 lib/pacemaker/pcmk_sched_colocation.c if (colocate_with->score == INFINITY) { score 871 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= INFINITY) { score 882 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score <= -CRM_SCORE_INFINITY) { score 895 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) score 906 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) score 917 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) score 925 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) score 964 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score < 0) { score 976 lib/pacemaker/pcmk_sched_colocation.c constraint->score, primary->id); score 977 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(-constraint->score, node->weight); score 981 lib/pacemaker/pcmk_sched_colocation.c if (constraint->score < CRM_SCORE_INFINITY) { score 984 lib/pacemaker/pcmk_sched_colocation.c node->details->uname, constraint->score); score 985 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(constraint->score, score 989 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= CRM_SCORE_INFINITY) { score 992 lib/pacemaker/pcmk_sched_colocation.c constraint->score, attribute); score 993 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(-constraint->score, node->weight); score 997 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score <= -INFINITY) || (constraint->score >= INFINITY) score 1047 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score == INFINITY) score 1063 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pcmk__add_scores(score_multiplier * constraint->score, score 66 lib/pacemaker/pcmk_sched_group.c if (constraint->score == INFINITY) { score 386 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 419 lib/pacemaker/pcmk_sched_group.c if (constraint->score >= INFINITY) { score 435 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 591 lib/pacemaker/pcmk_sched_group.c constraint->score / (float) 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, node->details->uname, score); score 43 lib/pacemaker/pcmk_sched_location.c rule, node->details->uname, 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 189 lib/pacemaker/pcmk_sched_native.c static char score[33]; score 192 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); score 195 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); score 276 lib/pacemaker/pcmk_sched_native.c int score = 0; score 279 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, score 282 lib/pacemaker/pcmk_sched_native.c if ((factor < 0) && (score < 0)) { score 289 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 295 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 299 lib/pacemaker/pcmk_sched_native.c weight_f = factor * score; score 308 lib/pacemaker/pcmk_sched_native.c if ((weight == 0) && (score != 0)) { score 321 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 329 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 335 lib/pacemaker/pcmk_sched_native.c node->weight, factor, score, new_score); score 458 lib/pacemaker/pcmk_sched_native.c multiplier * constraint->score / (float) INFINITY, score 524 lib/pacemaker/pcmk_sched_native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { score 531 lib/pacemaker/pcmk_sched_native.c constraint->score, role2text(constraint->dependent_role)); score 559 lib/pacemaker/pcmk_sched_native.c constraint->node_attribute, constraint->score / (float) INFINITY, score 1658 lib/pacemaker/pcmk_sched_native.c int score; score 1676 lib/pacemaker/pcmk_sched_native.c score = 10000; /* Highly preferred but not essential */ score 1678 lib/pacemaker/pcmk_sched_native.c score = INFINITY; /* Force them to run on the same host */ score 1680 lib/pacemaker/pcmk_sched_native.c pcmk__new_colocation("resource-with-container", NULL, score, rsc, score 1725 lib/pacemaker/pcmk_sched_native.c ((constraint->score > 0)? "Colocating" : "Anti-colocating"), score 1726 lib/pacemaker/pcmk_sched_native.c dependent->id, primary->id, constraint->id, constraint->score, score 77 lib/pacemaker/pcmk_sched_ordering.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 81 lib/pacemaker/pcmk_sched_ordering.c if (score) { score 83 lib/pacemaker/pcmk_sched_ordering.c int score_i = char2score(score); score 297 lib/pacemaker/pcmk_sched_promotable.c char score[33]; score 298 lib/pacemaker/pcmk_sched_promotable.c size_t len = sizeof(score); score 329 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child->sort_index, score, len); score 330 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Adding %s to %s from %s", score, score 345 lib/pacemaker/pcmk_sched_promotable.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; score 349 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 353 lib/pacemaker/pcmk_sched_promotable.c constraint->score / (float) INFINITY, flags); score 371 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 375 lib/pacemaker/pcmk_sched_promotable.c constraint->score / (float) INFINITY, score 491 lib/pacemaker/pcmk_sched_promotable.c int score = not_set_value; score 503 lib/pacemaker/pcmk_sched_promotable.c if (score == not_set_value) { score 504 lib/pacemaker/pcmk_sched_promotable.c score = c_score; score 506 lib/pacemaker/pcmk_sched_promotable.c score += c_score; score 509 lib/pacemaker/pcmk_sched_promotable.c return score; score 530 lib/pacemaker/pcmk_sched_promotable.c return score; score 536 lib/pacemaker/pcmk_sched_promotable.c return score; score 541 lib/pacemaker/pcmk_sched_promotable.c return score; score 570 lib/pacemaker/pcmk_sched_promotable.c score = char2score(attr_value); score 573 lib/pacemaker/pcmk_sched_promotable.c return score; score 579 lib/pacemaker/pcmk_sched_promotable.c int score, new_score; score 606 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, 0); score 607 lib/pacemaker/pcmk_sched_promotable.c if (score > 0) { score 608 lib/pacemaker/pcmk_sched_promotable.c new_score = pcmk__add_scores(node->weight, score); score 616 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 761 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child_rsc->sort_index, score, len); score 767 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", child_rsc, chosen, score); score 772 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); score 967 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) score 987 lib/pacemaker/pcmk_sched_promotable.c node->weight = pcmk__add_scores(node->weight, score); score 1010 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); score 1011 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score < INFINITY) { score 1013 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint->score); score 1026 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score >= INFINITY) { score 1039 lib/pacemaker/pcmk_sched_promotable.c if ((primary_instance == NULL) && (constraint->score >= INFINITY)) { score 1046 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 242 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 265 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 874 lib/pengine/complex.c common_update_score(pe_resource_t * rsc, const char *id, int score) score 880 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); score 881 lib/pengine/complex.c node->weight = pcmk__add_scores(node->weight, score); score 890 lib/pengine/complex.c common_update_score(child_rsc, id, score); score 334 lib/pengine/failcounts.c char *score = score2char(failcount); score 338 lib/pengine/failcounts.c rsc->id, score, pcmk__plural_s(failcount), score 340 lib/pengine/failcounts.c free(score); score 344 lib/pengine/failcounts.c char *score = score2char(failcount); score 347 lib/pengine/failcounts.c rsc->id, score, pcmk__plural_s(failcount), score 349 lib/pengine/failcounts.c free(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 2318 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2322 lib/pengine/pe_output.c prefix, rsc->id, uname, score); score 2324 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); score 2337 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2342 lib/pengine/pe_output.c "score", score, score 2426 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2431 lib/pengine/pe_output.c score); score 2441 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2445 lib/pengine/pe_output.c "score", score, score 320 lib/pengine/rules.c int score; // This block's score for sorting score 347 lib/pengine/rules.c if (pair_a->score < pair_b->score) { score 349 lib/pengine/rules.c } else if (pair_a->score > pair_b->score) { score 501 lib/pengine/rules.c pair->name, pair->score, score 545 lib/pengine/rules.c const char *score = NULL; score 559 lib/pengine/rules.c score = crm_element_value(expanded_attr_set, XML_RULE_ATTR_SCORE); score 560 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 543 lib/pengine/unpack.c const char *score = NULL; score 563 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 571 lib/pengine/unpack.c new_node = pe_create_node(id, uname, type, score, data_set); score 2544 lib/pengine/unpack.c int *score = user_data; score 2546 lib/pengine/unpack.c node->weight = *score; score 3104 lib/pengine/unpack.c int score = -INFINITY; score 3126 lib/pengine/unpack.c g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score); score 236 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 244 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 245 lib/pengine/utils.c out->message(out, "node-weight", rsc, comment, node->details->uname, score); score 267 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 274 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 280 lib/pengine/utils.c node->details->uname, score); score 285 lib/pengine/utils.c score); score 1660 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 1678 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1682 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1688 lib/pengine/utils.c match->weight = pcmk__add_scores(match->weight, score); score 1692 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 1696 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1704 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1713 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1717 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { score 415 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); score 416 tools/crm_resource_runtime.c if ((cons->score > 0)