Lines Matching refs:source_id
50 uint16_t source_id; member
68 return (s0.id.source_id == s1.id.source_id) && in source_id_cmp()
121 uint32_t *z_log_link_get_dynamic_filter(uint8_t domain_id, uint32_t source_id) in z_log_link_get_dynamic_filter() argument
131 return &link->ctrl_blk->filters[source_offset + source_id]; in z_log_link_get_dynamic_filter()
212 static const char *link_source_name_get(uint8_t domain_id, uint32_t source_id) in link_source_name_get() argument
219 .source_id = source_id in link_source_name_get()
231 err = log_link_get_source_name(link, rel_domain_id, source_id, in link_source_name_get()
243 const char *log_source_name_get(uint32_t domain_id, uint32_t source_id) in log_source_name_get() argument
249 if (source_id < log_src_cnt_get(domain_id)) { in log_source_name_get()
250 return TYPE_SECTION_START(log_const)[source_id].name; in log_source_name_get()
256 return link_source_name_get(domain_id, source_id); in log_source_name_get()
300 static uint8_t link_compiled_level_get(uint8_t domain_id, uint32_t source_id) in link_compiled_level_get() argument
308 return !log_link_get_levels(link, rel_domain_id, source_id, &level, NULL) ? in link_compiled_level_get()
312 uint8_t log_compiled_level_get(uint8_t domain_id, uint32_t source_id) in log_compiled_level_get() argument
315 if (source_id < log_src_cnt_get(domain_id)) { in log_compiled_level_get()
316 return TYPE_SECTION_START(log_const)[source_id].level; in log_compiled_level_get()
322 return link_compiled_level_get(domain_id, source_id); in log_compiled_level_get()
325 int z_log_link_set_runtime_level(uint8_t domain_id, uint16_t source_id, uint8_t level) in z_log_link_set_runtime_level() argument
332 return log_link_set_runtime_level(link, rel_domain_id, source_id, level); in z_log_link_set_runtime_level()
335 static uint32_t *get_dynamic_filter(uint8_t domain_id, uint32_t source_id) in get_dynamic_filter() argument
338 return &TYPE_SECTION_START(log_dynamic)[source_id].filters; in get_dynamic_filter()
341 return z_log_link_get_dynamic_filter(domain_id, source_id); in get_dynamic_filter()
400 uint32_t source_id, uint32_t level) in set_runtime_filter() argument
404 uint32_t *filters = get_dynamic_filter(domain_id, source_id); in set_runtime_filter()
418 (void)z_log_link_set_runtime_level(domain_id, source_id, level); in set_runtime_filter()
422 static uint32_t filter_get(uint8_t id, uint32_t domain_id, int16_t source_id, bool runtime) in filter_get() argument
424 __ASSERT_NO_MSG(source_id < log_src_cnt_get(domain_id)); in filter_get()
427 if (source_id < 0) { in filter_get()
431 return LOG_FILTER_SLOT_GET(get_dynamic_filter(domain_id, source_id), id); in filter_get()
434 return log_compiled_level_get(domain_id, source_id); in filter_get()
438 uint32_t filter_set(int id, uint32_t domain_id, int16_t source_id, uint32_t level) in filter_set() argument
441 return log_compiled_level_get(domain_id, source_id); in filter_set()
444 __ASSERT_NO_MSG(source_id < log_src_cnt_get(domain_id)); in filter_set()
452 max = filter_set(LOG_FRONTEND_SLOT_ID, domain_id, source_id, level); in filter_set()
461 domain_id, source_id, level); in filter_set()
469 level = MIN(level, MAX(filter_get(id, domain_id, source_id, false), in filter_set()
471 set_runtime_filter(id, domain_id, source_id, level); in filter_set()
477 uint32_t domain_id, int16_t source_id, in z_impl_log_filter_set() argument
482 return filter_set(id, domain_id, source_id, level); in z_impl_log_filter_set()
485 uint32_t z_impl_log_frontend_filter_set(int16_t source_id, uint32_t level) in z_impl_log_frontend_filter_set() argument
487 return filter_set(LOG_FRONTEND_SLOT_ID, Z_LOG_LOCAL_DOMAIN_ID, source_id, level); in z_impl_log_frontend_filter_set()
586 uint32_t domain_id, int16_t source_id, bool runtime) in log_filter_get() argument
590 return filter_get(id, domain_id, source_id, runtime); in log_filter_get()
593 uint32_t log_frontend_filter_get(int16_t source_id, bool runtime) in log_frontend_filter_get() argument
599 return filter_get(LOG_FRONTEND_SLOT_ID, Z_LOG_LOCAL_DOMAIN_ID, source_id, runtime); in log_frontend_filter_get()