Re: [PATCH 01/12] perf_events: add generic taken branch samplingsupport (v2)

From: Stephane Eranian
Date: Tue Dec 06 2011 - 14:27:52 EST


On Mon, Dec 5, 2011 at 2:14 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Fri, 2011-10-14 at 14:37 +0200, Stephane Eranian wrote:
>> +#define PERF_SAMPLE_BRANCH_PLM_ALL \
>> + Â Â Â (PERF_SAMPLE_BRANCH_USER|\
>> + Â Â Â ÂPERF_SAMPLE_BRANCH_KERNEL)
>
> This PLM thing keeps popping up all over, I'm sure it stands for
> something, but for now it just hurts my eyes.
>
>
>> + Â Â Â Â Â Â Â /* at least one branch bit must be set */
>> + Â Â Â Â Â Â Â if (!(mask & ~PERF_SAMPLE_BRANCH_PLM_ALL))
>> + Â Â Â Â Â Â Â Â Â Â Â return -EINVAL;
>>
> Why? we can create counters with exclude_user && exclude_kernel as well,
> I mean, they're useless, but its perfectly valid.


I am fine with that change. I can drop this check.
--
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/