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, 14 Apr 2011 17:47:26 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Arnaldo Carvalho de Melo <acme@...hat.com>
Cc:	mingo@...hat.com, hpa@...or.com, paulus@...ba.org,
	eranian@...gle.com, linux-kernel@...r.kernel.org,
	tzanussi@...il.com, efault@....de, fweisbec@...il.com,
	dsahern@...il.com, tglx@...utronix.de, mingo@...e.hu,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:perf/core] perf evsel: Fix inverted test for fixing up
 attr.inherit flag

On Mon, 2011-04-11 at 14:35 -0300, Arnaldo Carvalho de Melo wrote:
> 
> Can you check if the patch below fixes this? An acked-by or tested-by
> tag would be mucho appreciated.
> 

Didn't work..

# ./perf stat ~/loop_1b_instructions-4x

 Performance counter stats for '/root/loop_1b_instructions-4x':

        288.908743 task-clock-msecs         #      0.444 CPUs 
                51 context-switches         #      0.000 M/sec
                 1 CPU-migrations           #      0.000 M/sec
               116 page-faults              #      0.000 M/sec
       715,288,186 cycles                   #   2475.827 M/sec  (scaled from 49.77%)
     1,000,703,570 instructions             #      1.399 IPC    (scaled from 64.61%)
       100,255,005 branches                 #    347.013 M/sec  (scaled from 56.19%)
            11,453 branch-misses            #      0.011 %      (scaled from 65.27%)
            26,089 cache-references         #      0.090 M/sec  (scaled from 43.82%)
               110 cache-misses             #      0.000 M/sec  (scaled from 36.35%)

        0.649991199  seconds time elapsed

That wants to have 4b insn

---

#include <stdlib.h>
#include <stdio.h>
#include <time.h>

main ()
{
	int i;

	fork();
	fork();

	for (i = 0; i < 100000000; i++) {
		asm("nop");
		asm("nop");
		asm("nop");
		asm("nop");
		asm("nop");
		asm("nop");
		asm("nop");
	}
	wait(NULL);
	wait(NULL);
	wait(NULL);
	wait(NULL);
}


--
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