cs 194 cib/messages.c static struct qb_log_callsite *cs = NULL; cs 203 cib/messages.c if (cs == NULL) { cs 204 cib/messages.c cs = qb_log_callsite_get(__func__, __FILE__, __FUNCTION__, LOG_TRACE, __LINE__, crm_trace_nonlog); cs 206 cib/messages.c if (cs && cs->targets) { cs 226 cib/messages.c cs && cs->targets); cs 100 include/crm/common/logging.h gboolean crm_is_callsite_active(struct qb_log_callsite *cs, uint8_t level, uint32_t tags); cs 354 lib/common/logging.c blackbox_logger(int32_t t, struct qb_log_callsite *cs, time_t timestamp, const char *msg) cs 356 lib/common/logging.c if(cs && cs->priority < LOG_ERR) { cs 357 lib/common/logging.c crm_write_blackbox(SIGTRAP, cs); /* Bypass the over-dumping logic */ cs 359 lib/common/logging.c crm_write_blackbox(0, cs); cs 426 lib/common/logging.c crm_write_blackbox(int nsig, struct qb_log_callsite *cs) cs 452 lib/common/logging.c } else if (cs) { cs 455 lib/common/logging.c cs->function, cs->lineno, cs->filename, buffer); cs 502 lib/common/logging.c struct qb_log_callsite *cs) cs 506 lib/common/logging.c } else if (cs->tags != crm_trace_nonlog && source == QB_LOG_BLACKBOX) { cs 508 lib/common/logging.c qb_bit_set(cs->targets, source); cs 512 lib/common/logging.c if (cs->priority <= LOG_ERR) { cs 513 lib/common/logging.c qb_bit_set(cs->targets, source); cs 516 lib/common/logging.c char *key = crm_strdup_printf("%s:%d", cs->function, cs->lineno); cs 519 lib/common/logging.c qb_bit_set(cs->targets, source); cs 525 lib/common/logging.c if (cs->priority <= crm_log_priority && cs->priority <= crm_log_level) { cs 526 lib/common/logging.c qb_bit_set(cs->targets, source); cs 529 lib/common/logging.c } else if (cs->priority <= crm_log_level) { cs 530 lib/common/logging.c qb_bit_set(cs->targets, source); cs 531 lib/common/logging.c } else if (trace_files && strstr(trace_files, cs->filename) != NULL) { cs 532 lib/common/logging.c qb_bit_set(cs->targets, source); cs 533 lib/common/logging.c } else if (trace_fns && strstr(trace_fns, cs->function) != NULL) { cs 534 lib/common/logging.c qb_bit_set(cs->targets, source); cs 535 lib/common/logging.c } else if (trace_fmts && strstr(trace_fmts, cs->format) != NULL) { cs 536 lib/common/logging.c qb_bit_set(cs->targets, source); cs 538 lib/common/logging.c && cs->tags != 0 cs 539 lib/common/logging.c && cs->tags != crm_trace_nonlog && g_quark_to_string(cs->tags) != NULL) { cs 540 lib/common/logging.c qb_bit_set(cs->targets, source); cs 545 lib/common/logging.c crm_log_filter(struct qb_log_callsite *cs) cs 585 lib/common/logging.c cs->targets = 0; /* Reset then find targets to enable */ cs 588 lib/common/logging.c cs); cs 593 lib/common/logging.c crm_is_callsite_active(struct qb_log_callsite *cs, uint8_t level, uint32_t tags) cs 597 lib/common/logging.c if (cs == NULL) { cs 601 lib/common/logging.c if (cs->priority != level) { cs 602 lib/common/logging.c cs->priority = level; cs 606 lib/common/logging.c if (cs->tags != tags) { cs 607 lib/common/logging.c cs->tags = tags; cs 612 lib/common/logging.c crm_log_filter(cs); cs 615 lib/common/logging.c if (cs->targets == 0) {