lkml.org 
[lkml]   [2015]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] x86, perf: Add an aperfmperf driver
On Tue, Apr 28, 2015 at 02:25:37PM -0700, Andy Lutomirski wrote:

> +static struct pmu pmu_aperfmperf = {
> + .task_ctx_nr = perf_invalid_context,

You could actually have made that perf_sw_context, because its
impossible to fail to add() this event. That will make it possible to
attach it to tasks and you can measure per task a/m-perf.

> + .attr_groups = attr_groups,
> + .event_init = aperfmperf_event_init,
> + .add = aperfmperf_event_add,
> + .del = aperfmperf_event_stop_or_del,
> + .start = aperfmperf_event_start,
> + .stop = aperfmperf_event_stop_or_del,
> + .read = aperfmperf_event_update,
> +};


\
 
 \ /
  Last update: 2015-04-29 11:21    [W:0.081 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site