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-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html