Re: [PATCH v4 5/5] perf metric: Don't compute unused events.

From: Andi Kleen
Date: Wed Dec 02 2020 - 01:57:38 EST


> Can't this be all in a macro? It's still a lot of duplication.
>
> I'm still not a fan, but I think with a macro it wouldn't be too bad.
>
> Ugh, not a fan of macros. They expand to a single line of code and make
> debugging hard. I'll do a v5 with a macro :-/

I suppose you could inlines with callbacks too, with one liner functions for
the operands.

-Andi