Re: [PATCH v5 09/18] perf: disable PERF_SAMPLE_BRANCH_* when not supported

From: Stephane Eranian
Date: Mon Feb 06 2012 - 14:59:25 EST


On Mon, Feb 6, 2012 at 8:23 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> 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? :-)
>
Supposedly, I fixed that in v5. Is it not there?
If not, then something went wrong but go ahead, that's the right fix anyway.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/