Re: [PATCH v2 08/16] perf/x86: add memory profiling via PEBS LoadLatency

From: Andi Kleen
Date: Tue Nov 06 2012 - 08:31:28 EST


> +EVENT_ATTR(cpu-cycles, CPU_CYCLES );
> +EVENT_ATTR(instructions, INSTRUCTIONS );
> +EVENT_ATTR(cache-references, CACHE_REFERENCES );
> +EVENT_ATTR(cache-misses, CACHE_MISSES );
> +EVENT_ATTR(branch-instructions, BRANCH_INSTRUCTIONS );
> +EVENT_ATTR(branch-misses, BRANCH_MISSES );
> +EVENT_ATTR(bus-cycles, BUS_CYCLES );
> +EVENT_ATTR(stalled-cycles-frontend, STALLED_CYCLES_FRONTEND );
> +EVENT_ATTR(stalled-cycles-backend, STALLED_CYCLES_BACKEND );
> +EVENT_ATTR(ref-cycles, REF_CPU_CYCLES );

The merge_events() approach from the Haswell patches should be far cleaner

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/