Re: [PATCH 3/3] perf stat: Add --metrics-file option

From: Andi Kleen
Date: Tue Apr 21 2020 - 16:06:34 EST


> > Also there are some asserts that can be triggered by expressions. I think
> > you should fix those too and convert them to errors.
>
> do you have some details on this? examples of those failures?

At a minimum

/* Caller must make sure id is allocated */
void expr__add_id(struct parse_ctx *ctx, const char *name, double val)
{
int idx;
assert(ctx->num_ids < MAX_PARSE_ID);


-Andi