Re: [PATCH V2 5/6] x86/intel_rdt: Use perf infrastructure for measurements

From: Peter Zijlstra
Date: Thu Sep 06 2018 - 15:44:55 EST


On Thu, Sep 06, 2018 at 12:21:59PM -0700, Reinette Chatre wrote:
> If you do have suggestions on how I can improve the implementation while
> maintaining (or improving) the accuracy of the measurements I would
> greatly appreciate it.

You can reduce the code duplication by using __always_inline functions
with const function arguments.