lkml.org 
[lkml]   [2012]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v5 09/18] perf: disable PERF_SAMPLE_BRANCH_* when not supported
    From
    Date
    On Thu, 2012-02-02 at 13:54 +0100, Stephane Eranian wrote:
    > @@ -539,6 +539,10 @@ static int armpmu_event_init(struct perf_event *event)
    > int err = 0;
    > atomic_t *active_events = &armpmu->active_events;
    >
    > + /* does not support taken branch sampling */
    > + if (has_branch_smpl(event))
    > + return -EOPNOTSUPP;
    > +
    > if (armpmu->map_event(event) == -ENOENT)

    I'll make that has_branch_stack(), ok? :-)



    \
     
     \ /
      Last update: 2012-02-06 20:25    [W:5.605 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site