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:	Thu, 22 Jan 2015 13:56:59 +0100
From:	Jiri Olsa <jolsa@...hat.com>
To:	Matt Fleming <matt@...eblueprint.co.uk>
Cc:	Arnaldo Carvalho de Melo <acme@...nel.org>,
	Jiri Olsa <jolsa@...nel.org>, linux-kernel@...r.kernel.org,
	Peter Zijlstra <peterz@...radead.org>,
	Andi Kleen <andi@...stfloor.org>,
	Vince Weaver <vince@...ter.net>,
	Vikas Shivappa <vikas.shivappa@...ux.intel.com>,
	Kanaka Juvva <kanaka.d.juvva@...el.com>,
	Ingo Molnar <mingo@...nel.org>
Subject: Re: Perf tests for hw events

On Thu, Jan 22, 2015 at 12:40:14PM +0000, Matt Fleming wrote:
> Folks,
> 
> In the process of writing perf support for Intel's Cache QoS Monitoring
> feature [0] I've had to write my own userland tests to drive tools/perf
> and indirectly the kernel internals. I'm now getting requests for these
> tests from various people and it occurs to me that they should probably
> live in the kernel tree.
> 
> The tests I've got do a couple of things like setting up a perf_event
> cgroup and assigning enough tasks to trigger the RMID recycling code in
> the CQM driver, ensuring that we can run multiple events simultaneously
> (that the event scheduling/rotation code works), etc.
> 
> Does anything like this already exist for hw events? I couldn't find
> anything specific to hw events from snooping around in tools/perf/tests. 

that's the only place for this kind of stuff.. and AFAIK we use
just some basic HW events like cycles, or software events

> 
> I propose we add some hw event tests to the kernel tree. These will
> provide,
> 
>  - regression tests
>  - a source of documentation for how to use the events

yes, yes and yes ;-)

> We should only test those hw events that are present on a user's
> machine; there's no sense in emulating things.

agreed.. I remember we were discussing with Arnaldo the strengthening
of the test framework.. so it would detect what tests are runable
under current machine and priviledge

IIRC we already have some CPU detection support:
  int __attribute__ ((weak)) get_cpuid(char *buffer, size_t sz);


jirka
> 
> Thoughts?
> 
> [0] - https://lkml.kernel.org/r/1415999712-5850-1-git-send-email-matt@console-pimps.org
> 
> -- 
> Matt Fleming, Intel Open Source Technology Center
--
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