Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3834838ima; Mon, 4 Feb 2019 06:03:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN4zTUBL/5YsbOsvZvziPrxoQDdyWZhovGoXZfsHOBcn4Q1E2+pXsc+wXp6Qt0ldoOrT9ltD X-Received: by 2002:a62:1c86:: with SMTP id c128mr53334883pfc.54.1549289020391; Mon, 04 Feb 2019 06:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549289020; cv=none; d=google.com; s=arc-20160816; b=PfgvJQ+LJPRkCGQJ1j5YHjGqR4dRdSf47+rPr42x5w9CyvswtFOO3gvfv4JGCGmNzN JGnhS+0Z9b6gFXWdmFMtW2YlIYooaxpp85ZLeQ9klr/yYC9WW5dkB2GWdWFMvYo656o+ Bf3W5AXcE5tQlnQbZeFWAdIUApt6fYDpsWJZ5zvz3tS6UZa3QheQs6H45MY3PlNt5eAy 5YQtIMMLXHNbsWTcNaLc4KLb7W0hKVGD4qlHOIx5KBHEWQ9PMv0jYpCG4HPqaI86U6fz vfqY9orbQ1UbzjYc610czJTWFUp0JivqN4SV/y/NkNTlxsupjOpdxEbCB9VqDXJpITHM 1ruA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8UklNebI24Eei/k/kTnKOiNXAHKaieCOzhI2LepfrEk=; b=YNMV9UmNBZCSLzPzKNQ0Zrqmaup8ilA6fS5MmDKtDnrDVf2yV0WCaxZ1TtyPtOBUO8 GmAszA70nDwVhCZ+v1eVWTuzwPpkUK7/+L54KCeBCBpRvHd7ROvlgUEAY3BrSdw9VDOP JXgSh/jC6UIx7VfF77xUudnix8X9ZZwCwGsF9GgSNBPhgq0RKKh//fzAD2hVXl1p/YJz M3VTCZOZ4RgeIkEjy77vDRe9qfTqfK+EFTA1o7HOuUT2wgaCPp5UW8SiONjU/k7GQtfc y5btkyVD2LzrJA97OehiTNr9R3Dt69hSJ8l7tLWTlbPrlQt+dnkPVH5JbWR8g+kyXuTH JEAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m33si102454pgl.379.2019.02.04.06.03.21; Mon, 04 Feb 2019 06:03:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729042AbfBDLlt (ORCPT + 99 others); Mon, 4 Feb 2019 06:41:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50636 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbfBDLls (ORCPT ); Mon, 4 Feb 2019 06:41:48 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA7DF3D09; Mon, 4 Feb 2019 11:41:47 +0000 (UTC) Received: from krava (unknown [10.43.17.135]) by smtp.corp.redhat.com (Postfix) with SMTP id 5244261521; Mon, 4 Feb 2019 11:41:45 +0000 (UTC) Date: Mon, 4 Feb 2019 12:41:44 +0100 From: Jiri Olsa To: Alexey Budankov Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Adrian Hunter , Andi Kleen , Stephane Eranian Subject: Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory Message-ID: <20190204114144.GC18141@krava> References: <20190203153018.9650-1-jolsa@kernel.org> <8d8b3f0d-cea8-2daf-249f-29f485c49a46@linux.intel.com> <20190204103643.GA18141@krava> <6bf24b7d-2bd3-8091-cf49-363c91e4e864@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bf24b7d-2bd3-8091-cf49-363c91e4e864@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 04 Feb 2019 11:41:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 04, 2019 at 02:29:56PM +0300, Alexey Budankov wrote: > On 04.02.2019 13:36, Jiri Olsa wrote: > > On Mon, Feb 04, 2019 at 01:12:11PM +0300, Alexey Budankov wrote: > >> > >> Hi, > >> > >> On 03.02.2019 18:30, Jiri Olsa wrote: > >>> hi, > >>> this patchset adds the --dir option to record command (and all > >>> the other record command that overload cmd_record) that allows > >>> the data to be stored in directory with multiple data files. > >>> > >>> It's next step for multiple threads implementation in record. > >>> It's now possible to make directory data via --dir option, like: > >>> > >>> $ perf record --dir perf bench sched messaging > >> > >> Is it possible to name data directory differently from perf.data > >> e.g. using --output option, like this? > >> > >> $ perf record --output result_1 --dir perf bench sched messaging > > > > > > yep, it's taken into account: > > > > [jolsa@krava perf]$ ./perf record --output result_1 --dir ./perf bench sched messaging > > Couldn't synthesize bpf events. > > # Running 'sched/messaging' benchmark: > > # 20 sender and receiver processes per group > > # 10 groups == 400 processes run > > > > Total time: 0.177 [sec] > > [ perf record: Woken up 1 times to write data ] > > [ perf record: Captured and wrote 0.316 MB result_1 (7225 samples) ] > > > > [jolsa@krava perf]$ ll result_1/ > > total 348 > > -rw-------. 1 jolsa jolsa 27624 Feb 4 11:35 data.0 > > -rw-------. 1 jolsa jolsa 56672 Feb 4 11:35 data.1 > > -rw-------. 1 jolsa jolsa 30824 Feb 4 11:35 data.2 > > -rw-------. 1 jolsa jolsa 49136 Feb 4 11:35 data.3 > > -rw-------. 1 jolsa jolsa 22712 Feb 4 11:35 data.4 > > -rw-------. 1 jolsa jolsa 53392 Feb 4 11:35 data.5 > > -rw-------. 1 jolsa jolsa 43352 Feb 4 11:35 data.6 > > -rw-------. 1 jolsa jolsa 46688 Feb 4 11:35 data.7 > > -rw-------. 1 jolsa jolsa 9068 Feb 4 11:35 header > > Awesome. What do you think about having it like this: > > $ perf record --output result_1.data ... - writes data to a file > > $ perf record --dir result_1 ... - or even > $ perf record --output_dir result_1 ... - writes data into a directory > > IMHO, this interface is simpler for a user. yep, seems more convenient.. I'll add it thanks, jirka