Lines Matching defs:ref
42 } ref;
183 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref)
194 name = strdup(ref->metric_name);
206 data_ptr->ref.metric_name = ref->metric_name;
207 data_ptr->ref.metric_expr = ref->metric_expr;
214 pr_debug2("adding ref metric %s: %s\n",
215 ref->metric_name, ref->metric_expr);
260 pr_debug2("lookup(%s): ref metric name %s\n", id,
261 data->ref.metric_name);
264 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) {
268 pr_debug("processing metric: %s EXIT: %f\n", id, data->ref.val);
271 pr_debug2("lookup(%s): ref val %f metric name %s\n", id,
272 data->ref.val, data->ref.metric_name);
391 return data->ref.val;