Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp317386yba; Wed, 15 May 2019 01:45:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfJt7PxsB6iNXPkHPe9XSK+28gM8Pauf11C2WICuyWDo2sQBlQhDZRaNrLSgBiudv4gf8F X-Received: by 2002:a63:1119:: with SMTP id g25mr6929896pgl.380.1557909905057; Wed, 15 May 2019 01:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557909905; cv=none; d=google.com; s=arc-20160816; b=XIIckPZedWGe6h6vZ9IhNaAfq0wVjS5sZdRIOmwemgpcvq6V4kW8TCWQ/lMfMdA/8X 4XGbAivpBuNZC+iSH4OziDMYGCgZbMtcTl2g8ISQ/3SUHVRup9AqN9pp+jGV6WLKa7nN JmDFkiN0mvYXUznEIM1nuJlR5uhgpWVIHik6Rh5ne8a2wufzZ+DfjX4H5hFRGgVQVynY 2HOomuyOv1GcBDa/Qz+8A5hwqyDkvMCcngm276q6Is6BGPFbibu3Zxbl0dPvqcS6VR5t 4ZnUwnYMqKGr101zHfTWMU9odwXTCGwbwzU71dF4FwR2EtfBc7aww3i03bBWR4yWJX+R 7a2A== 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=AJKsoxa3rD8x8lrlMl0UD6BqzmrC1v3hiE/masuOd8A=; b=eaHdJ8IfwypWQTgiOHPL3BO/cVs9Qg3L/ii8puPpbMq0U4CZTSuY5JIwxPaTn5MdyB 9xR78fySK/yzN+PIHYPwGkN6DFqFo88MgJf3YEktmlnznpKGIu8Aed6zu28cwPsCpg+j 4iPBtc5m1lORFJCcqg/oaDvdbSlLGsRA8iXHdhAbw7nMLjCGWE+L2m+LQjbawj5MpuXE wsRl8G890BDRFvIIxJLW0FEsfEDSkrucgR/z79O02FsbrzcyDCWVqH5IH9vypqv7xvuY 1ON9r3OToVGh2pXmLDAI0IEJbbPc5egsLPTiJ43IPOR195mJUUseCH6tRguhFw8qclII rbTg== 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 l22si1558815pfb.153.2019.05.15.01.44.49; Wed, 15 May 2019 01:45:05 -0700 (PDT) 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 S1726098AbfEOInh (ORCPT + 99 others); Wed, 15 May 2019 04:43:37 -0400 Received: from mga06.intel.com ([134.134.136.31]:62345 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfEOIng (ORCPT ); Wed, 15 May 2019 04:43:36 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2019 01:43:35 -0700 X-ExtLoop1: 1 Received: from linux.intel.com ([10.54.29.200]) by fmsmga001.fm.intel.com with ESMTP; 15 May 2019 01:43:35 -0700 Received: from [10.125.252.185] (abudanko-mobl.ccr.corp.intel.com [10.125.252.185]) by linux.intel.com (Postfix) with ESMTP id 487A45800CB; Wed, 15 May 2019 01:43:31 -0700 (PDT) Subject: Re: [PATCH v10 09/12] perf record: implement -z,--compression_level[=] option To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel References: <12cce142-6238-475b-b9aa-236531c12c2b@linux.intel.com> <9ff06518-ae63-a908-e44d-5d9e56dd66d9@linux.intel.com> <20190514202041.GC8945@kernel.org> <20190514214631.GD8945@kernel.org> From: Alexey Budankov Organization: Intel Corp. Message-ID: Date: Wed, 15 May 2019 11:43:30 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190514214631.GD8945@kernel.org> 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 15.05.2019 0:46, Arnaldo Carvalho de Melo wrote: > Em Tue, May 14, 2019 at 05:20:41PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Mar 18, 2019 at 08:44:42PM +0300, Alexey Budankov escreveu: >>> >>> Implemented -z,--compression_level[=] option that enables compression >>> of mmaped kernel data buffers content in runtime during perf record >>> mode collection. Default option value is 1 (fastest compression). > > > >> [root@quaco ~]# perf record -z2 >> ^C[ perf record: Woken up 1 times to write data ] >> 0x1746e0 [0x76]: failed to process type: 81 [Invalid argument] >> [ perf record: Captured and wrote 1.568 MB perf.data, compressed (original 0.452 MB, ratio is 3.995) ] >> >> [root@quaco ~]# > > So, its the buildid processing at the end, so we can't do build-id > processing when using PERF_RECORD_COMPRESSED, otherwise we'd have to > uncompress at the end to find the PERF_RECORD_FORK/PERF_RECORD_MMAP, > etc. > > [root@quaco ~]# perf record -z2 --no-buildid sleep 1 > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.020 MB perf.data, compressed (original 0.001 MB, ratio is 2.153) ] > [root@quaco ~]# perf report -D | grep PERF_RECORD_COMP > 0x4f40 [0x195]: failed to process type: 81 [Invalid argument] > Error: > failed to process sample > 0 0x4f40 [0x195]: PERF_RECORD_COMPRESSED > [root@quaco ~]# > > I'll play with it tomorrow. Applied the whole patch set on top of the current perf/core and the whole thing functions as expected. ~Alexey > > - Arnaldo > >> I've pushed what I have to the tmp.perf/core branch, please try to see >> if I made any mistake in fixing up conflicts with BPF_PROG_INFO and >> BPF_BTF header features. I'll continue tomorrow with 10-12/12. >