[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YNXW4+QqeO1KL4Xq@hirez.programming.kicks-ass.net>
Date: Fri, 25 Jun 2021 15:15:15 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Adrian Hunter <adrian.hunter@...el.com>
Cc: Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>, Leo Yan <leo.yan@...aro.org>,
Kan Liang <kan.liang@...ux.intel.com>, x86@...nel.org,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] perf/x86: Add new event for AUX output counter index
On Wed, Jun 09, 2021 at 05:20:53PM +0300, Adrian Hunter wrote:
> +static void intel_pmu_report_aux_output_id(struct perf_event *event)
> +{
> + struct hw_perf_event *hwc = &event->hw;
> +
> + /*
> + * So long as all PEBS-via-PT events for a recording session are
> + * scheduled together, then only changes to hwc->idx need be reported.
> + */
> + if (hwc->idx != hwc->idx_reported) {
> + hwc->idx_reported = hwc->idx;
> + perf_report_aux_output_id(event, hwc->idx);
> + }
> +}
AFAICT you want a callback in x86_assign_hw_event(), is that so?
Powered by blists - more mailing lists