public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] perf, x86: Reduce lbr_sel_map size
@ 2013-09-26  8:28 Yan, Zheng
  2013-09-26  8:28 ` [RFC PATCH 1/7] " Yan, Zheng
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Yan, Zheng @ 2013-09-26  8:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: a.p.zijlstra, eranian, andi, Yan, Zheng

From: "Yan, Zheng" <zheng.z.yan@intel.com>

Haswell has a new feature that utilizes the existing Last Branch Record
facility to record call chains. When the feature is enabled, function
call will be collected as normal, but as return instructions are executed
the last captured branch record is popped from the on-chip LBR registers.
The LBR call stack facility can help perf to get call chains of progam 
without frame pointer. When perf tool requests PERF_SAMPLE_CALLCHAIN +
PERF_SAMPLE_BRANCH_USER, this feature is dynamically enabled by default.
This feature can be disabled/enabled through an attribute file in the cpu
pmu sysfs directory.

The main change since previous patch series is:
 Patch 3 introduces PMU context switch callback, and uses the callback to
 unify the flush branch stack codeo.

 Patch 4 uses the context switch callback to save/restore the LBR stack.

Regards
Yan, Zheng

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-04 14:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26  8:28 [RFC PATCH 0/7] perf, x86: Reduce lbr_sel_map size Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 1/7] " Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 2/7] perf, x86: Basic Haswell LBR call stack support Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 3/7] perf, core: replace flush_branch_stack with ctxsw callback Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 5/7] perf, core: Pass perf_sample_data to perf_callchain() Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 6/7] perf, x86: Use LBR call stack to get user callchain Yan, Zheng
2013-09-26  8:28 ` [RFC PATCH 7/7] perf, x86: Discard zero length call entries in LBR call stack Yan, Zheng
2013-10-04 10:55 ` [RFC PATCH 0/7] perf, x86: Reduce lbr_sel_map size Peter Zijlstra
2013-10-04 13:35   ` Andi Kleen
2013-10-04 14:42     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox