pacemaker  2.1.7-0f7f88312f
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/msg_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 bv(flag)   pcmk__btoa(pcmk_is_set(scheduler->flags, (flag)))
 

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, size_t pairs_count,...)
 
 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 *", "xmlNodePtr", "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

◆ bv

#define bv (   flag)    pcmk__btoa(pcmk_is_set(scheduler->flags, (flag)))

Definition at line 1099 of file pe_output.c.

◆ FILTER_STR

#define FILTER_STR
Value:
"shutdown", PCMK_NODE_ATTR_TERMINATE, "standby", "#", \
NULL }
#define PCMK__LAST_FAILURE_PREFIX
Definition: internal.h:297
#define PCMK__FAIL_COUNT_PREFIX
Definition: internal.h:296
#define PCMK_NODE_ATTR_TERMINATE
Definition: nodes.h:29

Definition at line 33 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 389 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 704 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 874 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 1209 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 1544 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 1646 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 2136 of file pe_output.c.

◆ PCMK__OUTPUT_ARGS() [8/15]

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

Definition at line 2235 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 2480 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 2524 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 2637 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 2703 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 2787 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 2896 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 2951 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,
size_t  pairs_count,
  ... 
)

Definition at line 597 of file pe_output.c.

◆ pe__node_display_name()

char* pe__node_display_name ( pcmk_node_t node,
bool  print_detail 
)

Definition at line 544 of file pe_output.c.

◆ pe__register_messages()

void pe__register_messages ( pcmk__output_t out)

Definition at line 3162 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.