Re: [PATCH 4/4] trace: profile all if conditionals

From: Steven Rostedt
Date: Sun Nov 23 2008 - 14:57:01 EST



On Sun, 23 Nov 2008, Andi Kleen wrote:
> Steven Rostedt <rostedt@xxxxxxxxxxx> writes:

> > This adds a significant amount of overhead and should only be used
> > by those analyzing their system.
>
> Often this can be also done using CPU performance counters. Might
> be a cheaper option.

I'd love to add an option that could hook into any arch with HW support
for this. We could dump out the same information, but just a different way
to gather it. But I'm still ignorant to the use of CPU performance
counters and how to find which branch matches which if.

-- Steve

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