On Wed, Sep 10, 2014 at 10:09:08AM -0400, kan.li...@intel.com wrote: > From: Kan Liang <kan.li...@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. > > This patch modifies various architectures' perf_callchain() to accept > perf sample data. Later patch will add code that use the sample data to > get call chains.
So I don't like this. Why not use the regular PERF_SAMPLE_BRANCH_STACK output to generate the stuff from? We already have two different means, with different transport, for callchains anyhow, so a third really won't matter. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/