lkml.org 
[lkml]   [2011]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 16 Mar 2011 08:27:57 -0700
FromAndi Kleen <>
SubjectRe: [PATCH] oprofile: Allow setting EDGE/INV/CMASK for Intel counter events
> I would like to write the actual value back so that userland may read
> it:
>
> counter_config->extra &= (ARCH_PERFMON_EVENTSEL_INV|
> ARCH_PERFMON_EVENTSEL_EDGE|
> ARCH_PERFMON_EVENTSEL_CMASK);
> val |= counter_config->extra;
>
> The value will not be updated emmediately but at least after profiling
> was started.

Okay.

>
> As an alternative, maybe we better put this extra bits in the
> unit_mask, e.g. in bits [31:16] of the unit mask for bits [31:16] of
> PerfEvtSel? Then, we simply could use the current userland to set it
> up.

We can't anyways, it doesn't support it.

-Andi


--
ak@linux.intel.com -- Speaking for myself only


\
 
 \ /
  Last update: 2011-03-16 16:31    [from the cache]
©2003-2010