Re: [PATCH V2 01/13] perf/core: Introduce PERF_RECORD_OVERHEAD

2016-12-06 Thread Peter Zijlstra
On Fri, Dec 02, 2016 at 04:19:09PM -0500, kan.li...@intel.com 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 !

[PATCH V2 01/13] perf/core: Introduce PERF_RECORD_OVERHEAD

2016-12-02 Thread kan . liang
From: Kan Liang A new perf record is introduced to export perf overhead information to userspace. So the user can measure the overhead of sampling directly. If the user doesn't want to use this feature, it can be switched off by configuring the user space tool. To output the overhead information