score 722 daemons/fenced/pacemaker-fenced.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); score 724 daemons/fenced/pacemaker-fenced.c crm_info("Device %s has been disabled on %s: score=%s", rsc->id, stonith_our_uname, score); score 725 daemons/fenced/pacemaker-fenced.c free(score); score 55 include/crm/common/util.h int char2score(const char *score); score 56 include/crm/common/util.h char *score2char(int score); score 57 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); score 225 include/crm/pengine/internal.h void common_update_score(pe_resource_t * rsc, const char *id, int score); score 429 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 517 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 48 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 85 lib/common/utils.c pcmk__scan_ll(score, &score_ll, 0LL); score 101 lib/common/utils.c score2char_stack(int score, char *buf, size_t len) score 106 lib/common/utils.c if (score >= CRM_SCORE_INFINITY) { score 108 lib/common/utils.c } else if (score <= -CRM_SCORE_INFINITY) { score 111 lib/common/utils.c snprintf(buf, len, "%d", score); score 117 lib/common/utils.c score2char(int score) score 119 lib/common/utils.c if (score >= CRM_SCORE_INFINITY) { score 122 lib/common/utils.c } else if (score <= -CRM_SCORE_INFINITY) { score 125 lib/common/utils.c return pcmk__itoa(score); score 106 lib/pacemaker/libpacemaker_private.h void pcmk__new_colocation(const char *id, const char *node_attr, int score, score 23 lib/pacemaker/pcmk_output.c char *score = NULL; score 26 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 29 lib/pacemaker/pcmk_output.c rsc->id, score, dependents ? "needs" : "with", score 33 lib/pacemaker/pcmk_output.c rsc->id, score, cons->id); score 36 lib/pacemaker/pcmk_output.c free(score); score 43 lib/pacemaker/pcmk_output.c char *score = NULL; score 46 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 51 lib/pacemaker/pcmk_output.c "score", score, score 68 lib/pacemaker/pcmk_output.c free(score); score 85 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 95 lib/pacemaker/pcmk_output.c "score", score, score 97 lib/pacemaker/pcmk_output.c free(score); score 524 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 528 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); score 529 lib/pacemaker/pcmk_output.c free(score); score 685 lib/pacemaker/pcmk_sched_allocate.c int score; score 688 lib/pacemaker/pcmk_sched_allocate.c score = char2score(value); score 691 lib/pacemaker/pcmk_sched_allocate.c *system_health = pe__add_scores(score, *system_health); 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 1121 lib/pacemaker/pcmk_sched_clone.c constraint->id, dependent->id, primary->id, constraint->score); score 1171 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 1183 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 191 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(const char *id, const char *node_attr, int score, score 198 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 226 lib/pacemaker/pcmk_sched_colocation.c new_con->score = score; score 237 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, node_attr, score); score 248 lib/pacemaker/pcmk_sched_colocation.c if (score <= -INFINITY) { score 286 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, score 296 lib/pacemaker/pcmk_sched_colocation.c int local_score = score; score 386 lib/pacemaker/pcmk_sched_colocation.c colocate_rsc_sets(const char *id, xmlNode *set1, xmlNode *set2, int score, score 399 lib/pacemaker/pcmk_sched_colocation.c if (score == 0) { score 425 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2, score 436 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 445 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 466 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, score 480 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 551 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 552 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 698 lib/pacemaker/pcmk_sched_colocation.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 702 lib/pacemaker/pcmk_sched_colocation.c if (score) { score 703 lib/pacemaker/pcmk_sched_colocation.c score_i = char2score(score); score 809 lib/pacemaker/pcmk_sched_colocation.c if (colocate_with->score == INFINITY) { score 866 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= INFINITY) { score 877 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score <= -CRM_SCORE_INFINITY) { score 890 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) score 901 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) score 912 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) score 920 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) score 959 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score < 0) { score 971 lib/pacemaker/pcmk_sched_colocation.c constraint->score, primary->id); score 972 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(-constraint->score, node->weight); score 976 lib/pacemaker/pcmk_sched_colocation.c if (constraint->score < CRM_SCORE_INFINITY) { score 979 lib/pacemaker/pcmk_sched_colocation.c node->details->uname, constraint->score); score 980 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(constraint->score, node->weight); score 983 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= CRM_SCORE_INFINITY) { score 986 lib/pacemaker/pcmk_sched_colocation.c constraint->score, attribute); score 987 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(-constraint->score, node->weight); score 991 lib/pacemaker/pcmk_sched_colocation.c if (can_run_any(work) || (constraint->score <= -INFINITY) score 992 lib/pacemaker/pcmk_sched_colocation.c || (constraint->score >= INFINITY)) { score 1041 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score == INFINITY) score 1057 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pe__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 190 lib/pacemaker/pcmk_sched_native.c static char score[33]; score 193 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); score 196 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); score 277 lib/pacemaker/pcmk_sched_native.c int score = 0; score 280 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, score 283 lib/pacemaker/pcmk_sched_native.c if ((factor < 0) && (score < 0)) { score 290 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 296 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 300 lib/pacemaker/pcmk_sched_native.c weight_f = factor * score; score 309 lib/pacemaker/pcmk_sched_native.c if ((weight == 0) && (score != 0)) { score 322 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 330 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 336 lib/pacemaker/pcmk_sched_native.c node->weight, factor, score, new_score); score 459 lib/pacemaker/pcmk_sched_native.c multiplier * constraint->score / (float) INFINITY, score 525 lib/pacemaker/pcmk_sched_native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { score 532 lib/pacemaker/pcmk_sched_native.c constraint->score, role2text(constraint->dependent_role)); score 560 lib/pacemaker/pcmk_sched_native.c constraint->node_attribute, constraint->score / (float) INFINITY, score 1664 lib/pacemaker/pcmk_sched_native.c int score; score 1682 lib/pacemaker/pcmk_sched_native.c score = 10000; /* Highly preferred but not essential */ score 1684 lib/pacemaker/pcmk_sched_native.c score = INFINITY; /* Force them to run on the same host */ score 1686 lib/pacemaker/pcmk_sched_native.c pcmk__new_colocation("resource-with-container", NULL, score, rsc, score 1731 lib/pacemaker/pcmk_sched_native.c ((constraint->score > 0)? "Colocating" : "Anti-colocating"), score 1732 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 = pe__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 960 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) score 980 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(node->weight, score); 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 1019 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score >= INFINITY) { score 1032 lib/pacemaker/pcmk_sched_promotable.c if ((primary_instance == NULL) && (constraint->score >= INFINITY)) { score 1039 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 44 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 67 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && score 864 lib/pengine/complex.c common_update_score(pe_resource_t * rsc, const char *id, int score) score 870 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); score 871 lib/pengine/complex.c node->weight = pe__add_scores(node->weight, score); score 880 lib/pengine/complex.c common_update_score(child_rsc, id, score); score 334 lib/pengine/failcounts.c char *score = score2char(failcount); score 337 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 338 lib/pengine/failcounts.c free(score); score 342 lib/pengine/failcounts.c char *score = score2char(failcount); score 345 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 346 lib/pengine/failcounts.c free(score); score 2243 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2247 lib/pengine/pe_output.c prefix, rsc->id, uname, score); score 2249 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); score 2262 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2267 lib/pengine/pe_output.c "score", score, score 2353 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2358 lib/pengine/pe_output.c score); score 2368 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2372 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 390 lib/pengine/unpack.c const char *score, pe_working_set_t * data_set) score 403 lib/pengine/unpack.c new_node->weight = char2score(score); score 536 lib/pengine/unpack.c const char *score = NULL; score 556 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 564 lib/pengine/unpack.c new_node = pe_create_node(id, uname, type, score, data_set); score 2535 lib/pengine/unpack.c int *score = user_data; score 2537 lib/pengine/unpack.c node->weight = *score; score 3099 lib/pengine/unpack.c int score = -INFINITY; score 3121 lib/pengine/unpack.c g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score); score 237 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 245 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 246 lib/pengine/utils.c out->message(out, "node-weight", rsc, comment, node->details->uname, score); score 268 lib/pengine/utils.c char score[128]; // Stack-allocated since this is called frequently score 275 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); score 281 lib/pengine/utils.c node->details->uname, score); score 286 lib/pengine/utils.c score); score 1659 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 1677 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1681 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1687 lib/pengine/utils.c match->weight = pe__add_scores(match->weight, score); score 1691 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 1695 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1703 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1712 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1716 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { score 412 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); score 413 tools/crm_resource_runtime.c if ((cons->score > 0)