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 447 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 542 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 22 lib/pacemaker/pcmk_output.c char *score = NULL; score 25 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 28 lib/pacemaker/pcmk_output.c rsc->id, score, dependents ? "needs" : "with", score 32 lib/pacemaker/pcmk_output.c rsc->id, score, cons->id); score 35 lib/pacemaker/pcmk_output.c free(score); score 42 lib/pacemaker/pcmk_output.c char *score = NULL; score 45 lib/pacemaker/pcmk_output.c score = score2char(cons->score); score 50 lib/pacemaker/pcmk_output.c "score", score, score 65 lib/pacemaker/pcmk_output.c free(score); score 82 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 92 lib/pacemaker/pcmk_output.c "score", score, score 94 lib/pacemaker/pcmk_output.c free(score); score 515 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); score 519 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); score 520 lib/pacemaker/pcmk_output.c free(score); score 797 lib/pacemaker/pcmk_sched_allocate.c int score; score 800 lib/pacemaker/pcmk_sched_allocate.c score = char2score(value); score 803 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 1137 lib/pacemaker/pcmk_sched_clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); score 1180 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { score 1190 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 716 lib/pacemaker/pcmk_sched_constraints.c const char *role, const char *score, score 795 lib/pacemaker/pcmk_sched_constraints.c const char *score, pe_working_set_t *data_set, 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 1037 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 1041 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1045 lib/pacemaker/pcmk_sched_constraints.c score_f = char2score(score); score 1048 lib/pacemaker/pcmk_sched_constraints.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); score 1052 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); score 1057 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, attr_score, score); score 1071 lib/pacemaker/pcmk_sched_constraints.c const char *score = NULL; score 1097 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE); score 1098 lib/pacemaker/pcmk_sched_constraints.c if (score == NULL) { score 1099 lib/pacemaker/pcmk_sched_constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE); score 1100 lib/pacemaker/pcmk_sched_constraints.c if (score != NULL) { score 1117 lib/pacemaker/pcmk_sched_constraints.c char *result = pe_expand_re_matches(score, re_match_data); score 1120 lib/pacemaker/pcmk_sched_constraints.c score = result; score 1143 lib/pacemaker/pcmk_sched_constraints.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); score 1162 lib/pacemaker/pcmk_sched_constraints.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); score 1196 lib/pacemaker/pcmk_sched_constraints.c free((char *)score); score 1348 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(const char *id, const char *node_attr, int score, score 1355 lib/pacemaker/pcmk_sched_constraints.c if (score == 0) { score 1381 lib/pacemaker/pcmk_sched_constraints.c new_con->score = score; score 1391 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 1400 lib/pacemaker/pcmk_sched_constraints.c if (score <= -INFINITY) { score 2319 lib/pacemaker/pcmk_sched_constraints.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, score 2329 lib/pacemaker/pcmk_sched_constraints.c int local_score = score; score 2428 lib/pacemaker/pcmk_sched_constraints.c colocate_rsc_sets(const char *id, xmlNode * set1, xmlNode * set2, int score, score 2441 lib/pacemaker/pcmk_sched_constraints.c if (score == 0) { score 2473 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2, score 2485 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 2496 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, score 2520 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, score 2538 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2602 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2603 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 2739 lib/pacemaker/pcmk_sched_constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2743 lib/pacemaker/pcmk_sched_constraints.c if (score) { score 2744 lib/pacemaker/pcmk_sched_constraints.c score_i = char2score(score); score 515 lib/pacemaker/pcmk_sched_graph.c if (colocate_with->score == INFINITY) { score 317 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { 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 521 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 1681 lib/pacemaker/pcmk_sched_native.c int score; score 1699 lib/pacemaker/pcmk_sched_native.c score = 10000; /* Highly preferred but not essential */ score 1701 lib/pacemaker/pcmk_sched_native.c score = INFINITY; /* Force them to run on the same host */ score 1703 lib/pacemaker/pcmk_sched_native.c pcmk__new_colocation("resource-with-container", NULL, score, rsc, score 1763 lib/pacemaker/pcmk_sched_native.c if (constraint->score >= INFINITY) { score 1774 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score <= -INFINITY) { score 1787 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1794 lib/pacemaker/pcmk_sched_native.c if (constraint->score > 0 score 1800 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1807 lib/pacemaker/pcmk_sched_native.c if (constraint->score < 0 score 1838 lib/pacemaker/pcmk_sched_native.c if ((constraint->score == INFINITY) score 1853 lib/pacemaker/pcmk_sched_native.c rsc_lh->priority = pe__add_scores(score_multiplier * constraint->score, score 1874 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score < 0) { score 1886 lib/pacemaker/pcmk_sched_native.c constraint->score, rsc_rh->id); 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 if (constraint->score < CRM_SCORE_INFINITY) { score 1893 lib/pacemaker/pcmk_sched_native.c node->details->uname, constraint->score); score 1894 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(constraint->score, node->weight); score 1897 lib/pacemaker/pcmk_sched_native.c } else if (constraint->score >= CRM_SCORE_INFINITY) { score 1900 lib/pacemaker/pcmk_sched_native.c constraint->score, attribute); score 1901 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); score 1906 lib/pacemaker/pcmk_sched_native.c || constraint->score <= -INFINITY || constraint->score >= INFINITY) { score 1933 lib/pacemaker/pcmk_sched_native.c ((constraint->score > 0)? "Colocating" : "Anti-colocating"), score 1934 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 2145 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2149 lib/pengine/pe_output.c prefix, rsc->id, uname, score); score 2151 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); score 2164 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2169 lib/pengine/pe_output.c "score", score, score 2252 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2257 lib/pengine/pe_output.c score); score 2267 lib/pengine/pe_output.c char *score = va_arg(args, char *); score 2271 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 1556 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) score 1574 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1578 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1584 lib/pengine/utils.c match->weight = pe__add_scores(match->weight, score); score 1588 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, score 1592 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1600 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1609 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1613 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)) {