pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Enumerations | Variables
scheduler_internal.h File Reference
#include <crm/common/action_relation_internal.h>
#include <crm/common/actions_internal.h>
#include <crm/common/attrs_internal.h>
#include <crm/common/bundles_internal.h>
#include <crm/common/clone_internal.h>
#include <crm/common/digests_internal.h>
#include <crm/common/failcounts_internal.h>
#include <crm/common/group_internal.h>
#include <crm/common/history_internal.h>
#include <crm/common/location_internal.h>
#include <crm/common/nodes_internal.h>
#include <crm/common/primitive_internal.h>
#include <crm/common/remote_internal.h>
#include <crm/common/resources_internal.h>
#include <crm/common/roles_internal.h>
#include <crm/common/rules_internal.h>
Include dependency graph for scheduler_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define pcmk__rsc_info(rsc, fmt, args...)   crm_log_tag(LOG_INFO, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)
 
#define pcmk__rsc_debug(rsc, fmt, args...)   crm_log_tag(LOG_DEBUG, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)
 
#define pcmk__rsc_trace(rsc, fmt, args...)   crm_log_tag(LOG_TRACE, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)
 
#define pcmk__sched_err(fmt...)
 
#define pcmk__sched_warn(fmt...)
 
#define pcmk__set_scheduler_flags(scheduler, flags_to_set)
 
#define pcmk__clear_scheduler_flags(scheduler, flags_to_clear)
 

Enumerations

enum  pcmk__check_parameters { pcmk__check_last_failure, pcmk__check_active }
 

Variables

uint32_t pcmk__warnings
 

Macro Definition Documentation

◆ pcmk__clear_scheduler_flags

#define pcmk__clear_scheduler_flags (   scheduler,
  flags_to_clear 
)
Value:
do { \
(scheduler)->flags = pcmk__clear_flags_as(__func__, __LINE__, \
LOG_TRACE, "Scheduler", crm_system_name, \
(scheduler)->flags, (flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
char * crm_system_name
Definition: utils.c:48
pcmk_scheduler_t * scheduler
uint64_t flags
Definition: remote.c:215

Definition at line 121 of file scheduler_internal.h.

◆ pcmk__rsc_debug

#define pcmk__rsc_debug (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_DEBUG, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)

Definition at line 66 of file scheduler_internal.h.

◆ pcmk__rsc_info

#define pcmk__rsc_info (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_INFO, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)

Definition at line 56 of file scheduler_internal.h.

◆ pcmk__rsc_trace

#define pcmk__rsc_trace (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_TRACE, ((rsc) == NULL)? "<NULL>" : (rsc)->id, (fmt), ##args)

Definition at line 76 of file scheduler_internal.h.

◆ pcmk__sched_err

#define pcmk__sched_err (   fmt...)
Value:
do { \
was_processing_error = TRUE; \
crm_err(fmt); \
} while (0)

Definition at line 85 of file scheduler_internal.h.

◆ pcmk__sched_warn

#define pcmk__sched_warn (   fmt...)
Value:
do { \
was_processing_warning = TRUE; \
crm_warn(fmt); \
} while (0)

Definition at line 96 of file scheduler_internal.h.

◆ pcmk__set_scheduler_flags

#define pcmk__set_scheduler_flags (   scheduler,
  flags_to_set 
)
Value:
do { \
(scheduler)->flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Scheduler", crm_system_name, \
(scheduler)->flags, (flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
char * crm_system_name
Definition: utils.c:48
pcmk_scheduler_t * scheduler
uint64_t flags
Definition: remote.c:215

Definition at line 108 of file scheduler_internal.h.

Enumeration Type Documentation

◆ pcmk__check_parameters

Enumerator
pcmk__check_last_failure 
pcmk__check_active 

Definition at line 34 of file scheduler_internal.h.

Variable Documentation

◆ pcmk__warnings

uint32_t pcmk__warnings

Definition at line 19 of file scheduler.c.