lkml.org 
[lkml]   [2012]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 03/16] perf, core: Add a concept of a weightened sample
    > > +
    > > if (sample_type & PERF_SAMPLE_READ)
    > > size += event->read_size;
    > >
    > > @@ -4080,6 +4083,9 @@ void perf_output_sample(struct perf_output_handle *handle,
    > > if (sample_type & PERF_SAMPLE_PERIOD)
    > > perf_output_put(handle, data->period);
    > >
    > > + if (sample_type & PERF_SAMPLE_WEIGHT)
    > > + perf_output_put(handle, data->weight);
    > > +
    >
    > Yeap, it should go after PERF_SAMPLE_STACK_USER

    There was a bug I recently noticed but haven't investigated so far.

    When I do -b -W --transaction the flags/weights get corrupted.

    May be related to that.

    -Andi

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


    \
     
     \ /
      Last update: 2012-11-06 00:42    [W:4.078 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site