[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87haevog75.fsf@tassilo.jf.intel.com>
Date: Sun, 11 Aug 2013 18:23:10 -0700
From: Andi Kleen <andi@...stfloor.org>
To: Karim Yaghmour <karim.yaghmour@...rsys.com>
Cc: linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
mingo@...e.hu
Subject: Re: Reading perf counters at ftrace trace boundaries
Karim Yaghmour <karim.yaghmour@...rsys.com> writes:
> Wondering if there's a way for reading perf counters in the kernel. I'd
> like to read/record perf counters on ftrace function tracing
> entries/exits to provide a rundown of the value of various counters on
> function call boundaries.
KVM does it, see arch/x86/kvm/pmu.c. Essentially it would be doing RDPMC.
But the overhead will be likely very high, some sampling approach
is likely better.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only
--
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