expr_parse_ctx
static int test(struct expr_parse_ctx *ctx, const char *e, double val2)
struct expr_parse_ctx *ctx;
struct expr_parse_ctx *ctx;
int expr__add_id(struct expr_parse_ctx *ctx, const char *id)
int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val)
int expr__add_id_val_source_count(struct expr_parse_ctx *ctx, const char *id,
int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref)
int expr__get_id(struct expr_parse_ctx *ctx, const char *id,
bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
struct expr_parse_ctx *needles)
int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id,
void expr__del_id(struct expr_parse_ctx *ctx, const char *id)
struct expr_parse_ctx *expr__ctx_new(void)
struct expr_parse_ctx *ctx;
ctx = calloc(1, sizeof(struct expr_parse_ctx));
void expr__ctx_clear(struct expr_parse_ctx *ctx)
void expr__ctx_free(struct expr_parse_ctx *ctx)
__expr__parse(double *val, struct expr_parse_ctx *ctx, const char *expr,
int expr__parse(double *final_val, struct expr_parse_ctx *ctx,
struct expr_parse_ctx *ctx)
double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id)
double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx __maybe_unused,
struct expr_parse_ctx *expr__ctx_new(void);
void expr__ctx_clear(struct expr_parse_ctx *ctx);
void expr__ctx_free(struct expr_parse_ctx *ctx);
void expr__del_id(struct expr_parse_ctx *ctx, const char *id);
int expr__add_id(struct expr_parse_ctx *ctx, const char *id);
int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val);
int expr__add_id_val_source_count(struct expr_parse_ctx *ctx, const char *id,
int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref);
int expr__get_id(struct expr_parse_ctx *ctx, const char *id,
bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
struct expr_parse_ctx *needles);
int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id,
int expr__parse(double *final_val, struct expr_parse_ctx *ctx,
struct expr_parse_ctx *ids);
double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id);
double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id);
%parse-param { struct expr_parse_ctx *ctx }
struct expr_parse_ctx *ctx __maybe_unused,
static struct ids handle_id(struct expr_parse_ctx *ctx, char *id,
struct expr_parse_ctx **combined)
struct expr_parse_ctx *ids, const char *modifier,
struct expr_parse_ctx *pctx;
struct expr_parse_ctx *combined = NULL;
const struct expr_parse_ctx *ctx,
struct expr_parse_ctx *pctx,
struct expr_parse_ctx *pctx;
struct expr_parse_ctx *pctx;
struct expr_parse_ctx *pctx;
struct expr_parse_ctx *pctx,