Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3830216ima; Mon, 4 Feb 2019 06:00:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IYGU91xxcvN2TR06OfWRsxmV+WCejsnrEiTYVx67GPbjiL2uq1tIIaM1EmhAoEKJYodl4lG X-Received: by 2002:a17:902:a401:: with SMTP id p1mr2358469plq.79.1549288811933; Mon, 04 Feb 2019 06:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549288811; cv=none; d=google.com; s=arc-20160816; b=HqZQsBprV/qeBLx1CrfXpsYaB77WDRByhlkGtM4xsSiNYr7oi2eV7N7fP3PS7n654+ gX1pePVw702p66kcZ/95/o8mhDHQZTVrmEuXw503baHSSpcj7itjDOiD8zmrtGXR4sSJ RJgerFzInhuQ5vm7hTzCSbBtqWsIIlQIb7QdxbvRlCHShmP/qMTc9D+zbZfolV77PjH6 7x/xcglTq58HQvIIpH8pczfQmzRHYfhB0+5P6OvuayAg23jWShJ8ZBt+fHjZ+lwm3BYi b1TidNJ4kJNDXyPQ9A4nMYchIZQZay/+0WNf+Hlkp12k+e9QHauPXg1D+ZY/ZsG8FFWD p/xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=pezbnS42qnua2OU2JAfeeblL/mnP+TL+4XkQKjRr9ns=; b=KpZzpw1VjUpQjvMR5kdkamSoUg/jDDzhs4951UtAWt9WMkDBFK/vAgDtEWZmTpW2Ut LH3FKTqX5K9V3vGjVxVO2YqS4XetsisVnk75hkGMMg2vhO3hQISyo/BTLibuYnQSX3/O 5XCxeDYzKQMfgb5CH3hCj6VcSp553WeBO/rE3CaEc7RxwewmJsBkxoyD39dJUKkcbK4j nQfaCAxzQR3fg9g8mC+dkife+8rZBDvOVmDppitRNPV1VNAPUvTt9Op/ynOqovLWCHFy f8Q0S5WJ4OOxi8qIgPOrNXBfgbpvuZMmH01L4BA5eGPOWYLcZtYuIchaIX13CHhft8v6 izXg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si115346pfj.219.2019.02.04.05.59.55; Mon, 04 Feb 2019 06:00:11 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728856AbfBDLaF (ORCPT + 99 others); Mon, 4 Feb 2019 06:30:05 -0500 Received: from mga18.intel.com ([134.134.136.126]:37509 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbfBDLaE (ORCPT ); Mon, 4 Feb 2019 06:30:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2019 03:30:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,560,1539673200"; d="scan'208";a="119815560" Received: from linux.intel.com ([10.54.29.200]) by fmsmga007.fm.intel.com with ESMTP; 04 Feb 2019 03:30:00 -0800 Received: from [10.125.252.124] (abudanko-mobl.ccr.corp.intel.com [10.125.252.124]) by linux.intel.com (Postfix) with ESMTP id 5E6C558040E; Mon, 4 Feb 2019 03:29:57 -0800 (PST) Subject: Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory To: Jiri Olsa Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Adrian Hunter , Andi Kleen , Stephane Eranian References: <20190203153018.9650-1-jolsa@kernel.org> <8d8b3f0d-cea8-2daf-249f-29f485c49a46@linux.intel.com> <20190204103643.GA18141@krava> From: Alexey Budankov Organization: Intel Corp. Message-ID: <6bf24b7d-2bd3-8091-cf49-363c91e4e864@linux.intel.com> Date: Mon, 4 Feb 2019 14:29:56 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190204103643.GA18141@krava> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Alexey > > jirka >