pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Functions
pe_output.c File Reference
#include <crm_internal.h>
#include <stdint.h>
#include <crm/common/xml_internal.h>
#include <crm/common/output.h>
#include <crm/common/scheduler_internal.h>
#include <crm/cib/util.h>
#include <crm/common/xml.h>
#include <crm/pengine/internal.h>
Include dependency graph for pe_output.c:

Go to the source code of this file.

Macros

#define FILTER_STR
 
#define XPATH_STACK
 
#define XPATH_DC_VERSION
 

Functions

const char * pe__resource_description (const pcmk_resource_t *rsc, uint32_t show_opts)
 
 PCMK__OUTPUT_ARGS ("cluster-summary", "pcmk_scheduler_t *", "enum pcmk_pacemakerd_state", "uint32_t", "uint32_t")
 
char * pe__node_display_name (pcmk_node_t *node, bool print_detail)
 
int pe__name_and_nvpairs_xml (pcmk__output_t *out, bool is_list, const char *tag_name,...)
 
 PCMK__OUTPUT_ARGS ("ban-list", "pcmk_scheduler_t *", "const char *", "GList *", "uint32_t", "bool")
 
 PCMK__OUTPUT_ARGS ("cluster-dc", "pcmk_node_t *", "const char *", "const char *", "char *", "int")
 
 PCMK__OUTPUT_ARGS ("cluster-times", "const char *", "const char *", "const char *", "const char *", "const char *")
 
 PCMK__OUTPUT_ARGS ("failed-action-list", "pcmk_scheduler_t *", "GList *", "GList *", "uint32_t", "bool")
 
 PCMK__OUTPUT_ARGS ("node", "pcmk_node_t *", "uint32_t", "bool", "GList *", "GList *")
 
 PCMK__OUTPUT_ARGS ("node-attribute-list", "pcmk_scheduler_t *", "uint32_t", "bool", "GList *", "GList *")
 
 PCMK__OUTPUT_ARGS ("node-history-list", "pcmk_scheduler_t *", "pcmk_node_t *", "xmlNode *", "GList *", "GList *", "uint32_t", "uint32_t")
 
 PCMK__OUTPUT_ARGS ("node-summary", "pcmk_scheduler_t *", "GList *", "GList *", "uint32_t", "uint32_t", "bool")
 
 PCMK__OUTPUT_ARGS ("node-weight", "const pcmk_resource_t *", "const char *", "const char *", "const char *")
 
 PCMK__OUTPUT_ARGS ("promotion-score", "pcmk_resource_t *", "pcmk_node_t *", "const char *")
 
 PCMK__OUTPUT_ARGS ("resource-history", "pcmk_resource_t *", "const char *", "bool", "int", "time_t", "bool")
 
 PCMK__OUTPUT_ARGS ("resource-list", "pcmk_scheduler_t *", "uint32_t", "bool", "GList *", "GList *", "bool")
 
 PCMK__OUTPUT_ARGS ("resource-operation-list", "pcmk_scheduler_t *", "pcmk_resource_t *", "pcmk_node_t *", "GList *", "uint32_t")
 
 PCMK__OUTPUT_ARGS ("resource-util", "pcmk_resource_t *", "pcmk_node_t *", "const char *")
 
void pe__register_messages (pcmk__output_t *out)
 

Macro Definition Documentation

◆ FILTER_STR

#define FILTER_STR
Value:
PCMK__NODE_ATTR_SHUTDOWN, PCMK_NODE_ATTR_TERMINATE, \
PCMK_NODE_ATTR_STANDBY, "#", NULL }
#define PCMK__LAST_FAILURE_PREFIX
Definition: internal.h:351
#define PCMK__FAIL_COUNT_PREFIX
Definition: internal.h:350
#define PCMK_NODE_ATTR_TERMINATE
Definition: nodes.h:33

Definition at line 33 of file pe_output.c.

◆ XPATH_DC_VERSION

#define XPATH_DC_VERSION
Value:
#define PCMK_XE_NVPAIR
Definition: xml_names.h:144
#define PCMK_XA_NAME
Definition: xml_names.h:330
#define PCMK_OPT_DC_VERSION
Definition: options.h:35

Definition at line 400 of file pe_output.c.

◆ XPATH_STACK

#define XPATH_STACK
Value:
"[@" PCMK_XA_NAME "='" \
PCMK_OPT_CLUSTER_INFRASTRUCTURE "']"
#define PCMK_XE_NVPAIR
Definition: xml_names.h:144
#define PCMK_XA_NAME
Definition: xml_names.h:330

Definition at line 199 of file pe_output.c.

Function Documentation

◆ PCMK__OUTPUT_ARGS() [1/15]

PCMK__OUTPUT_ARGS ( "cluster-summary"  ,
"pcmk_scheduler_t *"  ,
"enum pcmk_pacemakerd_state ,
"uint32_t"  ,
"uint32_t"   
)

Definition at line 403 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [2/15]

PCMK__OUTPUT_ARGS ( "ban-list"  ,
"pcmk_scheduler_t *"  ,
"const char *"  ,
"GList *"  ,
"uint32_t"  ,
"bool"   
)

Definition at line 712 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [3/15]

PCMK__OUTPUT_ARGS ( "cluster-dc"  ,
"pcmk_node_t *"  ,
"const char *"  ,
"const char *"  ,
"char *"  ,
"int"   
)

Definition at line 897 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [4/15]

PCMK__OUTPUT_ARGS ( "cluster-times"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"const char *"   
)

Definition at line 1290 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [5/15]

PCMK__OUTPUT_ARGS ( "failed-action-list"  ,
"pcmk_scheduler_t *"  ,
"GList *"  ,
"GList *"  ,
"uint32_t"  ,
"bool"   
)

Definition at line 1654 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [6/15]

PCMK__OUTPUT_ARGS ( "node"  ,
"pcmk_node_t *"  ,
"uint32_t"  ,
"bool"  ,
"GList *"  ,
"GList *"   
)

Definition at line 1778 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [7/15]

PCMK__OUTPUT_ARGS ( "node-attribute-list"  ,
"pcmk_scheduler_t *"  ,
"uint32_t"  ,
"bool"  ,
"GList *"  ,
"GList *"   
)

Definition at line 2328 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [8/15]

PCMK__OUTPUT_ARGS ( "node-history-list"  ,
"pcmk_scheduler_t *"  ,
"pcmk_node_t *"  ,
"xmlNode *"  ,
"GList *"  ,
"GList *"  ,
"uint32_t"  ,
"uint32_t"   
)

Definition at line 2428 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [9/15]

PCMK__OUTPUT_ARGS ( "node-summary"  ,
"pcmk_scheduler_t *"  ,
"GList *"  ,
"GList *"  ,
"uint32_t"  ,
"uint32_t"  ,
"bool"   
)

Definition at line 2691 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [10/15]

PCMK__OUTPUT_ARGS ( "node-weight"  ,
"const pcmk_resource_t *"  ,
"const char *"  ,
"const char *"  ,
"const char *"   
)

Definition at line 2738 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [11/15]

PCMK__OUTPUT_ARGS ( "promotion-score"  ,
"pcmk_resource_t *"  ,
"pcmk_node_t *"  ,
"const char *"   
)

Definition at line 2855 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [12/15]

PCMK__OUTPUT_ARGS ( "resource-history"  ,
"pcmk_resource_t *"  ,
"const char *"  ,
"bool"  ,
"int"  ,
"time_t"  ,
"bool"   
)

Definition at line 2917 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [13/15]

PCMK__OUTPUT_ARGS ( "resource-list"  ,
"pcmk_scheduler_t *"  ,
"uint32_t"  ,
"bool"  ,
"GList *"  ,
"GList *"  ,
"bool"   
)

Definition at line 3003 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [14/15]

PCMK__OUTPUT_ARGS ( "resource-operation-list"  ,
"pcmk_scheduler_t *"  ,
"pcmk_resource_t *"  ,
"pcmk_node_t *"  ,
"GList *"  ,
"uint32_t"   
)

Definition at line 3112 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [15/15]

PCMK__OUTPUT_ARGS ( "resource-util"  ,
"pcmk_resource_t *"  ,
"pcmk_node_t *"  ,
"const char *"   
)

Definition at line 3167 of file pe_output.c.

◆ pe__name_and_nvpairs_xml()

int pe__name_and_nvpairs_xml ( pcmk__output_t out,
bool  is_list,
const char *  tag_name,
  ... 
)

Definition at line 611 of file pe_output.c.

◆ pe__node_display_name()

char* pe__node_display_name ( pcmk_node_t node,
bool  print_detail 
)

Definition at line 558 of file pe_output.c.

◆ pe__register_messages()

void pe__register_messages ( pcmk__output_t out)

Definition at line 3451 of file pe_output.c.

◆ pe__resource_description()

const char* pe__resource_description ( const pcmk_resource_t rsc,
uint32_t  show_opts 
)

Definition at line 22 of file pe_output.c.