Lines Matching refs:expr_parse_ctx
145 int expr__add_id(struct expr_parse_ctx *ctx, const char *id) in expr__add_id()
151 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val) in expr__add_id_val()
157 int expr__add_id_val_source_count(struct expr_parse_ctx *ctx, const char *id, in expr__add_id_val_source_count()
179 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref()
218 int expr__get_id(struct expr_parse_ctx *ctx, const char *id, in expr__get_id()
224 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, in expr__subset_of_ids()
225 struct expr_parse_ctx *needles) in expr__subset_of_ids()
239 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id, in expr__resolve_id()
277 void expr__del_id(struct expr_parse_ctx *ctx, const char *id) in expr__del_id()
287 struct expr_parse_ctx *expr__ctx_new(void) in expr__ctx_new()
289 struct expr_parse_ctx *ctx; in expr__ctx_new()
291 ctx = calloc(1, sizeof(struct expr_parse_ctx)); in expr__ctx_new()
304 void expr__ctx_clear(struct expr_parse_ctx *ctx) in expr__ctx_clear()
316 void expr__ctx_free(struct expr_parse_ctx *ctx) in expr__ctx_free()
334 __expr__parse(double *val, struct expr_parse_ctx *ctx, const char *expr, in __expr__parse()
362 int expr__parse(double *final_val, struct expr_parse_ctx *ctx, in expr__parse()
369 struct expr_parse_ctx *ctx) in expr__find_ids()
482 double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id) in expr__has_event()
519 double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx __maybe_unused, in expr__strcmp_cpuid_str()