Lines Matching refs:expr_parse_ctx
149 int expr__add_id(struct expr_parse_ctx *ctx, const char *id)
155 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val)
161 int expr__add_id_val_source_count(struct expr_parse_ctx *ctx, const char *id,
183 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref)
222 int expr__get_id(struct expr_parse_ctx *ctx, const char *id,
228 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
229 struct expr_parse_ctx *needles)
243 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id,
281 void expr__del_id(struct expr_parse_ctx *ctx, const char *id)
291 struct expr_parse_ctx *expr__ctx_new(void)
293 struct expr_parse_ctx *ctx;
295 ctx = malloc(sizeof(struct expr_parse_ctx));
311 void expr__ctx_clear(struct expr_parse_ctx *ctx)
323 void expr__ctx_free(struct expr_parse_ctx *ctx)
341 __expr__parse(double *val, struct expr_parse_ctx *ctx, const char *expr,
369 int expr__parse(double *final_val, struct expr_parse_ctx *ctx,
376 struct expr_parse_ctx *ctx)
489 double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id)
526 double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx __maybe_unused,