Messages in this thread | | | Date | Mon, 1 Jun 2015 16:19:41 +0200 | From | Jiri Olsa <> | Subject | Re: [PATCH 04/11] perf, tools, report: Add infrastructure for a cycles histogram |
| |
On Wed, May 27, 2015 at 10:51:47AM -0700, Andi Kleen wrote: > From: Andi Kleen <ak@linux.intel.com> > > This adds the basic infrastructure to keep track of cycle counts > per basic block for annotate. We allocate an array similar to the > normal accounting, and then account branch cycles there. > > We handle two cases: > cycles per basic block with start and cycles per branch > (these are later used for either IPC or just cycles per BB) > > In the start case we cannot handle overlaps, so always the longest > basic block wins. > > For the cycles per branch case everything is accurately accounted. > > v2: Remove unnecessary checks. Slight restructure. Move > symbol__get_annotation to another patch. Move histogram allocation. > Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
thanks, jirka
| |