MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_log_can_log

Function rte_log_can_log

dpdk/lib/log/log.c:124–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124bool
125rte_log_can_log(uint32_t logtype, uint32_t level)
126{
127 int log_level;
128
129 if (level > rte_log_get_global_level())
130 return false;
131
132 log_level = rte_log_get_level(logtype);
133 if (log_level < 0)
134 return false;
135
136 if (level > (uint32_t)log_level)
137 return false;
138
139 return true;
140}
141
142static void
143logtype_set_level(uint32_t type, uint32_t level)

Callers 6

rte_vlogFunction · 0.85
enic_fm_dump_tcam_entryFunction · 0.85
__mlx5_hws_cnt_svcFunction · 0.85
flow_list_createFunction · 0.85
qat_hexdump_logFunction · 0.85
dump_device_listFunction · 0.85

Calls 2

rte_log_get_global_levelFunction · 0.85
rte_log_get_levelFunction · 0.85

Tested by

no test coverage detected