Re: [PATCH V2 01/13] perf/core: Introduce PERF_RECORD_OVERHEAD
From: Peter Zijlstra
Date: Tue Dec 06 2016 - 06:26:45 EST
On Fri, Dec 02, 2016 at 04:19:09PM -0500, kan.liang@xxxxxxxxx wrote:
> @@ -1221,6 +1225,11 @@ static inline bool has_addr_filter(struct perf_event *event)
> return event->pmu->nr_addr_filters;
> }
>
> +static inline bool needs_log_overhead(struct perf_event *event)
> +{
> + return !!event->attr.overhead;
> +}
There seems to be exactly one user of that, seems a tad pointless to
provide this function.