metric_expr
struct metric_expr *expr;
pm->metric_expr = (*p == '\0' ? NULL : p);
if (!pm.metric_expr)
const char *metric_expr;
struct metric_expr *mexp;
if (!pm->metric_expr)
struct metric_expr *mexp;
return metric_parse_fake(pm->metric_name, pm->metric_expr);
data_ptr->ref.metric_expr = ref->metric_expr;
ref->metric_name, ref->metric_expr);
if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) {
const char *metric_expr;
if (pm->metric_expr && match_pm_metric_or_groups(pm, data->pmu, data->metric_name)) {
const char *metric_expr;
struct metric_expr *expr;
m->metric_name, m->metric_expr);
expr = malloc(sizeof(struct metric_expr));
expr->metric_expr = m->metric_expr;
struct metric_expr *old_expr, *new_expr;
new_expr->metric_expr = old_expr->metric_expr;
m->metric_expr = pm->metric_expr;
if (!pm->metric_expr || !pm->compat)
root_metric->metric_refs[cnt].metric_expr = pm->metric_expr;
root_metric->metric_refs[cnt+1].metric_expr = NULL;
expr = pm->metric_expr;
struct metric_expr *expr, *tmp;
pr_debug("metric expr %s for %s\n", pm->metric_expr, pm->metric_name);
if (!strstr(pm->metric_expr, "?")) {
const char *metric_expr;
const char *metric_expr;
const char *metric_expr;
me->metric_expr = pm->metric_expr;
me->metric_expr,
struct metric_expr *expr = container_of(pos, struct metric_expr, nd);
static int prepare_metric(const struct metric_expr *mexp,
struct metric_expr *mexp = NULL;
struct metric_expr *e = container_of(pos, struct metric_expr, nd);
if (expr__parse(&result, pctx, mexp->metric_expr))
struct metric_expr *e = container_of(mpos, struct metric_expr, nd);
!add_to_dict(dict, "MetricExpr", pm->metric_expr) ||
struct metric_expr *mexp,
const char *metric_expr = mexp->metric_expr;
if (expr__parse(&ratio, pctx, metric_expr) == 0) {
if (strstr(metric_expr, "?"))
double test_generic_metric(struct metric_expr *mexp, int aggr_idx)
if (expr__parse(&ratio, pctx, mexp->metric_expr))
struct metric_expr *mexp = from;
const struct metric_expr *mexp,
struct metric_expr;
double test_generic_metric(struct metric_expr *mexp, int aggr_idx);