lkml.org 
[lkml]   [2021]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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?

\
 
 \ /
  Last update: 2021-06-25 15:16    [W:0.099 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site