Lines Matching defs:logtype
74 uint32_t logtype; /**< log type - see rte_log.h */
124 rte_log_can_log(uint32_t logtype, uint32_t level)
131 log_level = rte_log_get_level(logtype);
266 /* get the current logtype for the message being processed */
269 return RTE_PER_LCORE(log_cur_msg).logtype;
347 struct logtype {
349 const char *logtype;
352 static const struct logtype logtype_strings[] = {
380 strdup(logtype_strings[i].logtype);
419 /* Dump name of each logtype, one per line. */
471 rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
476 if (logtype >= rte_logs.dynamic_types_len)
478 if (!rte_log_can_log(logtype, level))
481 /* save loglevel and logtype in a global per-lcore variable */
483 RTE_PER_LCORE(log_cur_msg).logtype = logtype;
496 rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
502 ret = rte_vlog(level, logtype, format, ap);