lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1323123260.32012.44.camel@twins>
Date:	Mon, 05 Dec 2011 23:14:20 +0100
From:	Peter Zijlstra <peterz@...radead.org>
To:	Stephane Eranian <eranian@...gle.com>
Cc:	linux-kernel@...r.kernel.org, mingo@...e.hu, acme@...hat.com,
	ming.m.lin@...el.com, andi@...stfloor.org, robert.richter@....com,
	ravitillo@....gov, will.deacon@....com, paulus@...ba.org,
	benh@...nel.crashing.org, rth@...ddle.net, ralf@...ux-mips.org,
	davem@...emloft.net, lethal@...ux-sh.org
Subject: Re: [PATCH 01/12] perf_events: add generic taken branch sampling
 support (v2)

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ