expr 150 include/crm/common/logging.h # define CRM_LOG_ASSERT(expr) do { \ expr 151 include/crm/common/logging.h if(__unlikely((expr) == FALSE)) { \ expr 156 include/crm/common/logging.h crm_abort(__FILE__, __FUNCTION__, __LINE__, #expr, \ expr 164 include/crm/common/logging.h # define CRM_CHECK(expr, failure_action) do { \ expr 165 include/crm/common/logging.h if(__unlikely((expr) == FALSE)) { \ expr 170 include/crm/common/logging.h crm_abort(__FILE__, __FUNCTION__, __LINE__, #expr, \ expr 46 include/crm/crm.h # define __builtin_expect(expr, result) (expr) expr 50 include/crm/crm.h # define __likely(expr) __builtin_expect(expr, 1) expr 51 include/crm/crm.h # define __unlikely(expr) __builtin_expect(expr, 0) expr 35 include/crm/error.h # define CRM_ASSERT(expr) do { \ expr 36 include/crm/error.h if(__unlikely((expr) == FALSE)) { \ expr 37 include/crm/error.h crm_abort(__FILE__, __FUNCTION__, __LINE__, #expr, TRUE, FALSE); \ expr 50 include/crm/pengine/rules.h enum expression_type find_expression_type(xmlNode * expr); expr 62 include/crm/pengine/rules.h gboolean test_expression(xmlNode * expr, GHashTable * node_hash, expr 65 include/crm/pengine/rules.h gboolean pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, expr 68 include/crm/pengine/rules.h gboolean pe_test_expression_full(xmlNode * expr, GHashTable * node_hash, expr 183 lib/ais/utils.h # define AIS_ASSERT(expr) if((expr) == FALSE) { \ expr 184 lib/ais/utils.h ais_crit("Assertion failure line %d: %s", __LINE__, #expr); \ expr 188 lib/ais/utils.h # define AIS_CHECK(expr, failure_action) if((expr) == FALSE) { \ expr 191 lib/ais/utils.h ais_err("Child %d spawned to record non-fatal assertion failure line %d: %s", p, __LINE__, #expr); \ expr 39 lib/pengine/rules.c gboolean test_attr_expression(xmlNode * expr, GHashTable * hash, crm_time_t * now); expr 40 lib/pengine/rules.c gboolean pe_test_attr_expression_full(xmlNode * expr, GHashTable * hash, crm_time_t * now, pe_match_data_t * match_data); expr 41 lib/pengine/rules.c gboolean test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now); expr 81 lib/pengine/rules.c xmlNode *expr = NULL; expr 96 lib/pengine/rules.c for (expr = __xml_first_child(rule); expr != NULL; expr = __xml_next_element(expr)) { expr 97 lib/pengine/rules.c test = pe_test_expression_full(expr, node_hash, role, now, match_data); expr 101 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); expr 105 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); expr 119 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) expr 121 lib/pengine/rules.c return pe_test_expression_full(expr, node_hash, role, now, NULL); expr 125 lib/pengine/rules.c pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) expr 132 lib/pengine/rules.c return pe_test_expression_full(expr, node_hash, role, now, &match_data); expr 136 lib/pengine/rules.c pe_test_expression_full(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_match_data_t * match_data) expr 141 lib/pengine/rules.c switch (find_expression_type(expr)) { expr 143 lib/pengine/rules.c accept = pe_test_rule_full(expr, node_hash, role, now, match_data); expr 151 lib/pengine/rules.c accept = pe_test_attr_expression_full(expr, node_hash, now, match_data); expr 156 lib/pengine/rules.c accept = test_date_expression(expr, now); expr 160 lib/pengine/rules.c accept = test_role_expression(expr, role, now); expr 168 lib/pengine/rules.c accept = test_attr_expression(expr, node_hash, now); expr 185 lib/pengine/rules.c ID(expr), accept ? "passed" : "failed", uname ? uname : "all nodes"); expr 190 lib/pengine/rules.c find_expression_type(xmlNode * expr) expr 195 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 196 lib/pengine/rules.c tag = crm_element_name(expr); expr 225 lib/pengine/rules.c test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now) expr 235 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 236 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 266 lib/pengine/rules.c test_attr_expression(xmlNode * expr, GHashTable * hash, crm_time_t * now) expr 268 lib/pengine/rules.c return pe_test_attr_expression_full(expr, hash, now, NULL); expr 272 lib/pengine/rules.c pe_test_attr_expression_full(xmlNode * expr, GHashTable * hash, crm_time_t * now, pe_match_data_t * match_data) expr 286 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 287 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 288 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 289 lib/pengine/rules.c type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 290 lib/pengine/rules.c value_source = crm_element_value(expr, XML_EXPR_ATTR_VALUE_SOURCE); expr 770 lib/pengine/rules.c xmlNode * expr = NULL; expr 774 lib/pengine/rules.c for (expr = __xml_first_child(rule); expr != NULL; expr = __xml_next_element(expr)) { expr 775 lib/pengine/rules.c if (find_expression_type(expr) == version_expr) { expr 790 lib/pengine/rules.c xmlNode *expr = NULL; expr 804 lib/pengine/rules.c expr = __xml_first_child(rule); expr 805 lib/pengine/rules.c while (expr != NULL) { expr 806 lib/pengine/rules.c if (find_expression_type(expr) != version_expr) { expr 807 lib/pengine/rules.c xmlNode *node = expr; expr 809 lib/pengine/rules.c expr = __xml_next_element(expr); expr 812 lib/pengine/rules.c expr = __xml_next_element(expr); expr 115 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 121 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-expr", rsc_id, host); expr 122 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 123 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 124 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 125 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 127 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 128 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-lifetime", rsc_id, host); expr 129 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 130 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s); expr 178 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 184 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-expr-%s", rsc_id); expr 185 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 186 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 187 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 188 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 190 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 191 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-lifetime-end-%s", rsc_id); expr 192 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 193 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s);