score 700 daemons/fenced/pacemaker-fenced.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); score 702 daemons/fenced/pacemaker-fenced.c crm_info("Device %s has been disabled on %s: score=%s", rsc->id, stonith_our_uname, score); score 703 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 524 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 30 include/pcmki/pcmki_sched_utils.h void pcmk__new_colocation(const char *id, const char *node_attr, int score, 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 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 66 lib/pacemaker/pcmk_output.c free(score); score 83 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 93 lib/pacemaker/pcmk_output.c "score", score, score 95 lib/pacemaker/pcmk_output.c free(score); score 516 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 520 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); score 521 lib/pacemaker/pcmk_output.c free(score); score 769 lib/pacemaker/pcmk_sched_allocate.c int score; score 772 lib/pacemaker/pcmk_sched_allocate.c score = char2score(value); score 775 lib/pacemaker/pcmk_sched_allocate.c *system_health = pe__add_scores(score, *system_health); score 510 lib/pacemaker/pcmk_sched_bundle.c } else if (constraint->score >= INFINITY) { score 523 lib/pacemaker/pcmk_sched_bundle.c constraint->id, rsc_lh->id, rsc->id, constraint->score); score 529 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score < INFINITY) { score 556 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score >= INFINITY) { score 129 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 145 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 159 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 175 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, score 549 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { score 561 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { score 720 lib/pacemaker/pcmk_sched_clone.c (float)constraint->score / INFINITY, score 1136 lib/pacemaker/pcmk_sched_clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); score 1179 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 1189 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 159 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 163 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 165 lib/pacemaker/pcmk_sched_constraints.c int score_i = char2score(score); score 715 lib/pacemaker/pcmk_sched_constraints.c const char *role, const char *score, score 794 lib/pacemaker/pcmk_sched_constraints.c const char *score, pe_working_set_t *data_set, score 809 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 810 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 813 lib/pacemaker/pcmk_sched_constraints.c if (node != NULL && score != NULL) { score 814 lib/pacemaker/pcmk_sched_constraints.c int score_i = char2score(score); score 1036 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 1040 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1044 lib/pacemaker/pcmk_sched_constraints.c score_f = char2score(score); score 1047 lib/pacemaker/pcmk_sched_constraints.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); score 1051 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); score 1056 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, attr_score, score); score 1070 lib/pacemaker/pcmk_sched_constraints.c const char *score = NULL; score 1096 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE); score 1097 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1098 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE); score 1099 lib/pacemaker/pcmk_sched_constraints.c if (score != NULL) { score 1116 lib/pacemaker/pcmk_sched_constraints.c char *result = pe_expand_re_matches(score, re_match_data); score 1119 lib/pacemaker/pcmk_sched_constraints.c score = result; score 1142 lib/pacemaker/pcmk_sched_constraints.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); score 1161 lib/pacemaker/pcmk_sched_constraints.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); score 1195 lib/pacemaker/pcmk_sched_constraints.c free((char *)score); score 1347 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(const char *id, const char *node_attr, int score, score 1354 lib/pacemaker/pcmk_sched_constraints.c if (score == 0) { score 1380 lib/pacemaker/pcmk_sched_constraints.c new_con->score = score; score 1390 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 1399 lib/pacemaker/pcmk_sched_constraints.c if (score <= -INFINITY) { score 2317 lib/pacemaker/pcmk_sched_constraints.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, score 2327 lib/pacemaker/pcmk_sched_constraints.c int local_score = score; score 2426 lib/pacemaker/pcmk_sched_constraints.c colocate_rsc_sets(const char *id, xmlNode * set1, xmlNode * set2, int score, score 2439 lib/pacemaker/pcmk_sched_constraints.c if (score == 0) { score 2471 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2, score 2483 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 2494 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 2518 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, score 2536 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2600 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2601 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 2737 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2741 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2742 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 520 lib/pacemaker/pcmk_sched_graph.c if (colocate_with->score == INFINITY) { score 63 lib/pacemaker/pcmk_sched_group.c if (constraint->score == INFINITY) { score 361 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 394 lib/pacemaker/pcmk_sched_group.c if (constraint->score >= INFINITY) { score 410 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { score 565 lib/pacemaker/pcmk_sched_group.c constraint->score / (float) INFINITY, score 188 lib/pacemaker/pcmk_sched_native.c static char score[33]; score 191 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); score 194 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); score 275 lib/pacemaker/pcmk_sched_native.c int score = 0; score 278 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, score 281 lib/pacemaker/pcmk_sched_native.c if ((factor < 0) && (score < 0)) { score 288 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 294 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); score 298 lib/pacemaker/pcmk_sched_native.c weight_f = factor * score; score 307 lib/pacemaker/pcmk_sched_native.c if ((weight == 0) && (score != 0)) { score 320 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 328 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, score 334 lib/pacemaker/pcmk_sched_native.c node->weight, factor, score, new_score); score 456 lib/pacemaker/pcmk_sched_native.c multiplier * constraint->score / (float) INFINITY, score 537 lib/pacemaker/pcmk_sched_native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { score 544 lib/pacemaker/pcmk_sched_native.c constraint->score, role2text(constraint->role_lh)); score 572 lib/pacemaker/pcmk_sched_native.c (float)constraint->score / INFINITY, score 1674 lib/pacemaker/pcmk_sched_native.c int score; score 1692 lib/pacemaker/pcmk_sched_native.c score = 10000; /* Highly preferred but not essential */ score 1694 lib/pacemaker/pcmk_sched_native.c score = INFINITY; /* Force them to run on the same host */ score 1696 lib/pacemaker/pcmk_sched_native.c pcmk__new_colocation("resource-with-container", NULL, score, rsc, score 1756 lib/pacemaker/pcmk_sched_native.c if (constraint->score >= INFINITY) { score 1767 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score <= -INFINITY) { score 1780 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1787 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1793 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1800 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1831 lib/pacemaker/pcmk_sched_native.c if ((constraint->score == INFINITY) score 1846 lib/pacemaker/pcmk_sched_native.c rsc_lh->priority = pe__add_scores(score_multiplier * constraint->score, score 1867 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score < 0) { score 1879 lib/pacemaker/pcmk_sched_native.c constraint->score, rsc_rh->id); score 1880 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); score 1883 lib/pacemaker/pcmk_sched_native.c if (constraint->score < CRM_SCORE_INFINITY) { score 1886 lib/pacemaker/pcmk_sched_native.c node->details->uname, constraint->score); score 1887 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(constraint->score, node->weight); score 1890 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score >= CRM_SCORE_INFINITY) { score 1893 lib/pacemaker/pcmk_sched_native.c constraint->score, attribute); score 1894 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); score 1899 lib/pacemaker/pcmk_sched_native.c || constraint->score <= -INFINITY || constraint->score >= INFINITY) { score 1926 lib/pacemaker/pcmk_sched_native.c ((constraint->score > 0)? "Colocating" : "Anti-colocating"), score 1927 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); score 286 lib/pacemaker/pcmk_sched_promotable.c char score[33]; score 287 lib/pacemaker/pcmk_sched_promotable.c size_t len = sizeof(score); score 318 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child->sort_index, score, len); score 319 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Adding %s to %s from %s", score, score 334 lib/pacemaker/pcmk_sched_promotable.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; score 337 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 342 lib/pacemaker/pcmk_sched_promotable.c (float)constraint->score / INFINITY, flags); score 359 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 364 lib/pacemaker/pcmk_sched_promotable.c (float)constraint->score / INFINITY, score 481 lib/pacemaker/pcmk_sched_promotable.c int score = not_set_value; score 493 lib/pacemaker/pcmk_sched_promotable.c if (score == not_set_value) { score 494 lib/pacemaker/pcmk_sched_promotable.c score = c_score; score 496 lib/pacemaker/pcmk_sched_promotable.c score += c_score; score 499 lib/pacemaker/pcmk_sched_promotable.c return score; score 520 lib/pacemaker/pcmk_sched_promotable.c return score; score 526 lib/pacemaker/pcmk_sched_promotable.c return score; score 531 lib/pacemaker/pcmk_sched_promotable.c return score; score 560 lib/pacemaker/pcmk_sched_promotable.c score = char2score(attr_value); score 563 lib/pacemaker/pcmk_sched_promotable.c return score; score 569 lib/pacemaker/pcmk_sched_promotable.c int score, new_score; score 596 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, 0); score 597 lib/pacemaker/pcmk_sched_promotable.c if (score > 0) { score 598 lib/pacemaker/pcmk_sched_promotable.c new_score = pe__add_scores(node->weight, score); score 606 lib/pacemaker/pcmk_sched_promotable.c new_score = QB_MAX(child_rsc->priority, score); score 668 lib/pacemaker/pcmk_sched_promotable.c char score[33]; score 669 lib/pacemaker/pcmk_sched_promotable.c size_t len = sizeof(score); score 757 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child_rsc->sort_index, score, len); score 763 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", child_rsc, chosen, score); score 768 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); score 948 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) score 968 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(node->weight, score); score 991 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); score 992 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score < INFINITY) { score 994 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint->score); score 1007 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score >= INFINITY) { score 1018 lib/pacemaker/pcmk_sched_promotable.c if (rh_child == NULL && constraint->score >= INFINITY) { score 1024 lib/pacemaker/pcmk_sched_promotable.c constraint->score); score 302 lib/pacemaker/pcmk_sched_utilization.c if (constraint->score == INFINITY score 329 lib/pacemaker/pcmk_sched_utilization.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 2125 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2129 lib/pengine/pe_output.c prefix, rsc->id, uname, score); score 2131 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); score 2144 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2149 lib/pengine/pe_output.c "score", score, score 2235 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2240 lib/pengine/pe_output.c score); score 2250 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2254 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 391 lib/pengine/unpack.c const char *score, pe_working_set_t * data_set) score 404 lib/pengine/unpack.c new_node->weight = char2score(score); score 537 lib/pengine/unpack.c const char *score = NULL; score 557 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 565 lib/pengine/unpack.c new_node = pe_create_node(id, uname, type, score, data_set); score 2538 lib/pengine/unpack.c int *score = user_data; score 2540 lib/pengine/unpack.c node->weight = *score; score 3102 lib/pengine/unpack.c int score = -INFINITY; score 3124 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 1562 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 1580 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1584 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1590 lib/pengine/utils.c match->weight = pe__add_scores(match->weight, score); score 1594 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 1598 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1606 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1615 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1619 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 && !pcmk_is_set(peer->flags, pe_rsc_allocating)) {