From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752454AbbEDUDI (ORCPT ); Mon, 4 May 2015 16:03:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59487 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752402AbbEDUDC (ORCPT ); Mon, 4 May 2015 16:03:02 -0400 Date: Mon, 4 May 2015 22:02:16 +0200 From: Jiri Olsa To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Namhyung Kim , Stephane Eranian Subject: Re: [PATCH V4 02/24] perf tools: Add AUX area tracing index Message-ID: <20150504200216.GF11223@krava> References: <1430404667-10593-1-git-send-email-adrian.hunter@intel.com> <1430404667-10593-3-git-send-email-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430404667-10593-3-git-send-email-adrian.hunter@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2015 at 05:37:25PM +0300, Adrian Hunter wrote: > Add an index of AUX area tracing events within > a perf.data file. > > perf record uses a special user event > PERF_RECORD_FINISHED_ROUND to enable sorting of > events in chunks instead of having to sort all > events altogether. > > AUX area tracing events contain data that can > span back to the very beginning of the recording > period. i.e. they do not obey the rules of > PERF_RECORD_FINISHED_ROUND. > > By adding an index, AUX area tracing events > can be found in advance and the > PERF_RECORD_FINISHED_ROUND approach works as > usual. > > The index is recorded with the auxtrace feature > in the perf.data file. A session reads the index > but does not process it. An AUX area > decoder can queue all the AUX area data > in advance using auxtrace_queues__process_index() > or otherwise process the index in some custom > manner. > > Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa thanks, jirka