lkml.org 
[lkml]   [2010]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] perf_events: support for uncore a.k.a. nest units
From
Date
On Wed, 2010-04-21 at 17:42 +0800, Lin Ming wrote:
> + /*
> + * TBD: will move this to pmu register function
> + * when multiple hw pmu support is added
> + */
> + pmu.flag = alloc_percpu(u8);
> + if (!pmu.flag)
> + return;

Why not simply use a field in struct cpu_hw_events?

That's where we track all per-cpu pmu state.



\
 
 \ /
  Last update: 2010-04-21 12:01    [W:0.209 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site