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]
Date:	Fri, 28 Sep 2012 17:19:19 +0200
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	linux-kernel@...r.kernel.org, x86@...nel.org, eranian@...gle.com,
	acme@...hat.com, Andi Kleen <ak@...ux.intel.com>,
	Jiri Olsa <jolsa@...hat.com>
Subject: Re: [PATCH 04/31] perf, core: Add generic intx/intx_checkpointed
 counter modifiers

On Fri, 2012-09-28 at 16:53 +0200, Andi Kleen wrote:
> If I moved this into sysfs this would imply that the perf stat -T 
> code would become Haswell specific. As far as I understand normally
> you guys don't want things like that. Would everyone be ok with
> having specific code there? 

Have a look at /sys/bus/event_source/devices/cpu/format/*, that's
already very hardware specific.

What I suggested is something like:

PMU_FORMAT_ATTR(intx, "config:32");
PMU_FORMAT_ATTR(intx_cp "config:33");

For the HSW+ cpus. That should be enough for userspace to create such
events.
--
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