Lines Matching refs:id
40 int expr__add_id(struct expr_parse_ctx *ctx, const char *id) in expr__add_id() argument
52 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id()
62 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val) in expr__add_id_val() argument
74 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id_val()
133 int expr__get_id(struct expr_parse_ctx *ctx, const char *id, in expr__get_id() argument
136 return hashmap__find(&ctx->ids, id, (void **)data) ? 0 : -1; in expr__get_id()
139 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id, in expr__resolve_id() argument
144 if (expr__get_id(ctx, id, datap) || !*datap) { in expr__resolve_id()
145 pr_debug("%s not found\n", id); in expr__resolve_id()
152 data->is_ref, data->ref.counted, data->val, id); in expr__resolve_id()
156 pr_debug("processing metric: %s ENTRY\n", id); in expr__resolve_id()
158 pr_debug("%s failed to count\n", id); in expr__resolve_id()
161 pr_debug("processing metric: %s EXIT: %f\n", id, data->val); in expr__resolve_id()
167 void expr__del_id(struct expr_parse_ctx *ctx, const char *id) in expr__del_id() argument
172 hashmap__delete(&ctx->ids, id, in expr__del_id()