Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6839427yba; Tue, 14 May 2019 14:50:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjc6tcjiMJnVr50/8wSHZxllzOKGtRsdSIMGTv0wnjLsXgPFfEBboHvEEGIbWRrtDFqdOs X-Received: by 2002:a17:902:5c6:: with SMTP id f64mr40545238plf.208.1557870604943; Tue, 14 May 2019 14:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557870604; cv=none; d=google.com; s=arc-20160816; b=TycdoKB9CewSOMwhQTdrR3XMZFXHkV442Iat8wdwT30TiFyAGxMUxNsm4UvtOPswlr C6greuxMyCHrjN5kp9oZEfwMxtGuqi4hUPwRcOVlrLXn6OiaVkyqUWK3bdXjUsiEqjP2 5OtN0E71NEfwP9qIidYGKrGq9ilvc8ZQiceGdgPCsLrA4Q6vQMQU4+CqGdSzXVNO1K2J V4T/OzYZTvyVHlZ9e2jQuOuJFKoIbIor9457V8T/yEEdFuIAnISTPJ/QwNHjvUJEyXN4 +L4eYC1tRVEIv3WqjcDNS4HYZGGFzdN0mTn6X8SHTUvAhAchLkxdjaaaTysmHF8BZzPg gZtQ== 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:date:from:dkim-signature; bh=ihW11phzc9Qo9qPh9rCwT+VZCf/Ma8yV/b8VK1mEZRI=; b=v3i0KjLhM37QTnlZfJR3sv9o1UY4NW8RWoClnAvzUNtxC8rYUNWxHNfJxHlxqGx3Kn hoKF1+eTSukt/8+vbS9KuBOgonJwOnexKQjK12QUxYTYLwii451/NWQKzijfJzGqoIum eFE+qVXIlSuShcFGQKC2iokl5k3F9WHlVaU97WrZJRcxVkbMN5l4aqZnlahG9EodY46m mhbQ3CZVwS80dtYrHIvyRsv1Gb9qrG7EoaKxsu8d1BmRSScU+I2RVafxR6o4r2FZwQgu Fxc8c7rkmCvwroCrZzjuix633x6oQ6OYwAo/nxginmb2ZF2wnPjXs8iB5Kjadd5pemsX NymQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M0nfuYRH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si8127pgj.567.2019.05.14.14.49.46; Tue, 14 May 2019 14:50:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M0nfuYRH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbfENVqi (ORCPT + 99 others); Tue, 14 May 2019 17:46:38 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44671 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbfENVqh (ORCPT ); Tue, 14 May 2019 17:46:37 -0400 Received: by mail-qt1-f193.google.com with SMTP id f24so871396qtk.11 for ; Tue, 14 May 2019 14:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ihW11phzc9Qo9qPh9rCwT+VZCf/Ma8yV/b8VK1mEZRI=; b=M0nfuYRHMyR37KCI7m4i6Tpj/uohxKsi7fp+1vFy/m/RtBN7s9mOdHREU4jKiU/41d 7B1c1PxIeBrQVpB9Rl8S3NXBG7lSQOs9KQ4HAh4dDyhZcpVf+IStmcVP7Ka0Kg2hyMVJ ReBFssDSPFGiP/0l3/XOPnWN6mmtPph6/2aXFBKo3/Tw8FJdbLJETLJL1QiLOy0wx42D 0FYAYT76gpwu5Cg2+Br8mMUOZu65skxDF35Wf3G9N5qaDmWrafhO82SdQ03UKTk+dLzZ zlvU1E35QKY/YO28mXyiWlgqkmuvrgz6Z6DQTaolgVvGqr1Dr21joomH8RMBk/Zf3qY8 US7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ihW11phzc9Qo9qPh9rCwT+VZCf/Ma8yV/b8VK1mEZRI=; b=TFDAfECMuvbrKZbjxgB6chLDk5CatT4M8TIoKIu9mxyZeye2D8xATg7/amZMI6aZAq 6vkkiNnsEByVh6Cm5IPurQ42MaeB10zRzuVynb7m+yzbraLfY94JnXsmpYfY1jj9o3rS u7t9REgC3TJ7oq3uav68Io4G+iMqREILcnWqtaDX8HoHMPmiRmxK0ZKy1Df2Y5kEElGE NOZmzsFPeYwUX9KkovTuyfcP/YihZiZ+DWKf33vMSFch4CRCm+qXsacVrmWOo7k36u50 4rFMVwnJMWLKarQSaOJvdmtVLj70OXULyuQ+1DRWi6rqVDqkwSnvLh4c4M9K4R8kqrDz j8EA== X-Gm-Message-State: APjAAAWCaExvnIxYezbdeVu2+qU2wdxBOjd4+A0pE4Bd78F0hGdFwxFm jUCj3KDCvhfh591iyRY0JUE= X-Received: by 2002:ac8:22d3:: with SMTP id g19mr10101733qta.236.1557870396569; Tue, 14 May 2019 14:46:36 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.181.141.36]) by smtp.gmail.com with ESMTPSA id t57sm159526qtt.7.2019.05.14.14.46.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 14:46:34 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2DA3C403AD; Tue, 14 May 2019 18:46:31 -0300 (-03) Date: Tue, 14 May 2019 18:46:31 -0300 To: Alexey Budankov Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel Subject: Re: [PATCH v10 09/12] perf record: implement -z,--compression_level[=] option Message-ID: <20190514214631.GD8945@kernel.org> References: <12cce142-6238-475b-b9aa-236531c12c2b@linux.intel.com> <9ff06518-ae63-a908-e44d-5d9e56dd66d9@linux.intel.com> <20190514202041.GC8945@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190514202041.GC8945@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. - 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.