Lines Matching full:modifier

125 	/** Modifier on the metric such as "u" or NULL for none. */
126 const char *modifier; member
189 free((char *)m->modifier); in metric__free()
195 const char *modifier, in metric__new() argument
212 m->modifier = NULL; in metric__new()
213 if (modifier) { in metric__new()
214 m->modifier = strdup(modifier); in metric__new()
215 if (!m->modifier) in metric__new()
694 static int decode_all_metric_ids(struct evlist *perf_evlist, const char *modifier) in decode_all_metric_ids() argument
732 if (modifier) { in decode_all_metric_ids()
738 ret = strbuf_addstr(&sb, modifier); in decode_all_metric_ids()
755 const char *modifier, in metricgroup__build_event_string() argument
830 if (modifier) { in metricgroup__build_event_string()
831 ret = strbuf_addstr(events, modifier); in metricgroup__build_event_string()
876 const char *modifier; member
893 const char *modifier,
905 * @modifier: if non-null event modifiers like "u".
920 const char *modifier, in resolve_metric() argument
969 ret = add_metric(metric_list, &pending[i].pe, modifier, metric_no_group, in resolve_metric()
984 * @modifier: if non-null event modifiers like "u".
1001 const char *modifier, in __add_metric() argument
1030 root_metric = metric__new(pe, modifier, metric_no_group, runtime, in __add_metric()
1080 ret = resolve_metric(metric_list, modifier, metric_no_group, in __add_metric()
1128 const char *modifier, in add_metric() argument
1141 ret = __add_metric(metric_list, pe, modifier, metric_no_group, 0, in add_metric()
1155 ret = __add_metric(metric_list, pe, modifier, metric_no_group, j, in add_metric()
1173 ret = add_metric(d->metric_list, pe, d->modifier, d->metric_no_group, in metricgroup__add_metric_sys_event_iter()
1216 const char *modifier; member
1235 ret = add_metric(data->list, pe, data->modifier, data->metric_no_group, in metricgroup__add_metric_callback()
1247 * @modifier: if non-null event modifiers like "u".
1257 static int metricgroup__add_metric(const char *metric_name, const char *modifier, in metricgroup__add_metric() argument
1272 .modifier = modifier, in metricgroup__add_metric()
1295 .modifier = modifier, in metricgroup__add_metric()
1340 char *list_itr, *list_copy, *metric_name, *modifier; in metricgroup__add_metric_list() local
1349 modifier = strchr(metric_name, ':'); in metricgroup__add_metric_list()
1350 if (modifier) in metricgroup__add_metric_list()
1351 *modifier++ = '\0'; in metricgroup__add_metric_list()
1353 ret = metricgroup__add_metric(metric_name, modifier, in metricgroup__add_metric_list()
1434 if (m->has_constraint && !m->modifier) { in build_combined_expr_ctx()
1460 * @modifier: any modifiers added to the events.
1467 struct expr_parse_ctx *ids, const char *modifier, in parse_ids() argument
1511 ret = metricgroup__build_event_string(&events, ids, modifier, in parse_ids()
1528 ret = decode_all_metric_ids(parsed_evlist, modifier); in parse_ids()
1576 /*modifier=*/NULL, in parse_groups()
1609 if ((!m->modifier && n->modifier) || in parse_groups()
1610 (m->modifier && !n->modifier) || in parse_groups()
1611 (m->modifier && n->modifier && in parse_groups()
1612 strcmp(m->modifier, n->modifier))) in parse_groups()
1625 ret = parse_ids(metric_no_merge, fake_pmu, m->pctx, m->modifier, in parse_groups()
1651 if (m->modifier) { in parse_groups()
1654 if (asprintf(&tmp, "%s:%s", m->metric_name, m->modifier) < 0) in parse_groups()