From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbbCJGMh (ORCPT ); Tue, 10 Mar 2015 02:12:37 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:55525 "EHLO lgemrelse6q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbbCJGMf (ORCPT ); Tue, 10 Mar 2015 02:12:35 -0400 X-Original-SENDERIP: 10.177.220.203 X-Original-MAILFROM: namhyung@kernel.org Date: Tue, 10 Mar 2015 15:06:44 +0900 From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Adrian Hunter , David Ahern , Jiri Olsa , Ingo Molnar , =?utf-8?B?RnLDqWTDqXJpYw==?= Weisbecker , Linux Kernel Mailing List Subject: Re: heads up/RFC: 'perf trace' using ordered_events Message-ID: <20150310060644.GC943@sejong> References: <20150303164940.GM5187@kernel.org> <20150304010123.GG27046@danjae> <20150304010709.GQ5187@kernel.org> <54FAF2E4.3030109@intel.com> <20150309132135.GG5187@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150309132135.GG5187@kernel.org> 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 Hi Arnaldo, On Mon, Mar 09, 2015 at 10:21:35AM -0300, Arnaldo Carvalho de Melo wrote: > For trace I need to take advantage of the fact that each mmap is ordered > already and then just sort by the timestamp in the mmap head, etc. > > In retrospect, the perf.data file should have kept that ordering, i.e. > have one file per mmap, that would be saved in parallel, without any of > those PERF_RECORD_FINISHED_ROUND records. > > But I have to experiment with that, leaving the existing code around to > deal with older files. It seems like what you said is almost same as my multi-thread work. It saves data files per mmap and then merges them with an index table so that they can be processed in parallel. Thanks, Namhyung