/* Get source offset used for getting runtime filter. 
Runtime filters for each link are dynamically allocated as an array of filters for all domains in the link. In order to fetch link associated with given source an index in the array must be retrieved.  */
static uint32_t get_source_offset(const struct log_link *link, uint8_t rel_domain_id)
/* Get source offset used for getting runtime filter. 
Runtime filters for each link are dynamically allocated as an array of filters for all domains in the link. In order to fetch link associated with given source an index in the array must be retrieved.  */
static uint32_t get_source_offset(const struct log_link *link, uint8_t rel_domain_id)
{
	uint32_t offset = 0;
	for (uint8_t i = 0; i < rel_domain_id; i++) {
		offset += log_link_sources_count(link, i);
	}
	return offset;
}