Lines Matching defs:opt_ll
202 struct rte_eal_opt_loglevel *opt_ll = NULL;
204 opt_ll = malloc(sizeof(*opt_ll));
205 if (opt_ll == NULL)
208 opt_ll->level = priority;
211 opt_ll->pattern = NULL;
212 if (regcomp(&opt_ll->re_match, regex, 0) != 0)
215 opt_ll->pattern = strdup(pattern);
216 if (opt_ll->pattern == NULL)
221 TAILQ_INSERT_HEAD(&opt_loglevel_list, opt_ll, next);
224 free(opt_ll);
328 struct rte_eal_opt_loglevel *opt_ll;
331 TAILQ_FOREACH(opt_ll, &opt_loglevel_list, next) {
332 if (opt_ll->level > RTE_LOG_MAX)
335 if (opt_ll->pattern) {
336 if (fnmatch(opt_ll->pattern, name, 0) == 0)
337 level = opt_ll->level;
339 if (regexec(&opt_ll->re_match, name, 0, NULL, 0) == 0)
340 level = opt_ll->level;