lkml.org 
[lkml]   [2011]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/7] perf, x86: Implement IBS interrupt handler
On 14.09.11 12:13:25, Peter Zijlstra wrote:
> On Wed, 2011-09-07 at 18:36 +0200, Robert Richter wrote:
> > + if (event->attr.sample_type & PERF_SAMPLE_RAW) {
> > + ibs_data.caps = ibs_caps;
> > + size = 1;
> > + offset = 1;
> > + do {
> > + rdmsrl(msr + offset, *buf++);
> > + size++;
> > + offset = find_next_bit(perf_ibs->offset_mask,
> > + perf_ibs->offset_max,
> > + offset + 1);
> > + } while (offset < perf_ibs->offset_max);
> > + raw.size = sizeof(u32) + sizeof(u64) * size;
> > + raw.data = ibs_data.data;
> > + data.raw = &raw;
> > + }
>
> Another application of for_each_set_bit_continue() ?

Peter, I will make this a separate patch set to decouple from this
patch set. Will then update this code too. So in my next ibs patch set
I wont change this here.

-Robert

--
Advanced Micro Devices, Inc.
Operating System Research Center



\
 
 \ /
  Last update: 2011-09-21 10:43    [W:0.099 / U:18.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site