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

Andi Kleen
2020-12-02T06:57:37Z

> 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