Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp82053imj; Thu, 14 Feb 2019 15:49:29 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibd3+mgGRrkAE/Ro9jSIQTHTl3VPwTiCPsqNMu188KnWmdfdWYOSZCYBCKwdmDfeTKfvoxW X-Received: by 2002:a63:3dc8:: with SMTP id k191mr2336791pga.368.1550188169236; Thu, 14 Feb 2019 15:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550188169; cv=none; d=google.com; s=arc-20160816; b=M5QNc052TWcxi4Gd/3FD2Hz3TwjIDeynFqUZjc2BsSquUtb7J34qGnLii4V9cD6PGg Nd7Gj+sHe4on74RRlVDbp73SPVR0ZYPTOt8jf1A9goxE/74V6nk1dE10YEd+KzT/8wE5 SdHlDh1n5Qvcf8ieb4kJDGMP63P+1qmIII1cX+B0QlYm1NhoSTYhKtGJpsPu3djbOqCm xnLrMaLTKjCAGe0Vedivn4tggdQ8MrfXIQSOvD7p7opUTN1sy2AXJZY3RVpULf88WVpo CBlk7/o13VPR22lbDzFDbFfsjrO9cbDEm9U7ksU5z3CSdhxxliwEKh4ZU1CvHWgSs7yl STLw== 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:dkim-signature; bh=TSJyutx2kcS23oF8L8ckUVFg1c2I1VOiOLJaYXxS1tQ=; b=GX7dI6JQNCOm+Ev7LA1h9X7/VbI8TOfedvslMvD54dC2K6cKkCusXag3e0YYy37s2M 0FhkzIfLMmidEbrEOCdkiLSbYbUmYQ2MRVfGZ+qlyIvFDP7/aHTnVXVAAMtePQYU9Y/R r1yMCXm+KM8eX7gUPZjOvm8QpDXHost2a26LSRjkgS9UgOJSBQmIe1YqO9VTGRm2pDWL 2YZYQBu8nFK62NPVmDb3UIgimsPiatjln4KjNhHp/xTs71L/+rsND5BNS3mxwoil/Mdj mJRiO/gRu2Ha1py/5lZdIxTb1D7AtUK5RGBTTNtKBFQcXlVFGlbyW7mokvKE4FGITouI cPqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e+VGCyE5; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si3659558pge.470.2019.02.14.15.49.12; Thu, 14 Feb 2019 15:49:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=e+VGCyE5; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391469AbfBNOAH (ORCPT + 99 others); Thu, 14 Feb 2019 09:00:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:37734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728686AbfBNOAH (ORCPT ); Thu, 14 Feb 2019 09:00:07 -0500 Received: from quaco.ghostprotocols.net (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50A8E2229F; Thu, 14 Feb 2019 14:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550152806; bh=JR2dZ1mZEX5R8rdNc0FxddVQxPeboYBpOXf2+kzbSng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e+VGCyE5Cybv4oZiGNb4zMa2csrHvN9TL4j5/xEyY+J1JB5+GjH1LCrhmMNphdnLP is/ZTCi7CfcqDlXLB1DcTjFe4L7XXXsTVXzvSLsm/lGHq5IifcpN50SVlmnV16KEiC QBH8T8Wzpk8zAtCmG2EQ1OeBPWiPu+ekDd4zPJuA= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E2160410D5; Thu, 14 Feb 2019 10:59:58 -0300 (-03) Date: Thu, 14 Feb 2019 10:59:58 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Stephane Eranian , Alexey Budankov , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Adrian Hunter , Andi Kleen Subject: Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory Message-ID: <20190214135958.GB7074@kernel.org> References: <20190205133727.GF4794@krava> <20190211101957.GB14253@krava> <20190211185306.GD5046@krava> <20190211193202.GG3269@kernel.org> <20190211201831.GE5046@krava> <20190214113450.GC26714@krava> <20190214125759.GS3269@kernel.org> <20190214132638.GB13095@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190214132638.GB13095@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Feb 14, 2019 at 02:26:38PM +0100, Jiri Olsa escreveu: > On Thu, Feb 14, 2019 at 09:57:59AM -0300, Arnaldo Carvalho de Melo wrote: > > But with the build id in the MMAPs we wouldn't need to scan anything at > > 'perf record' time, just at 'perf archive' time, where we would scan > > everything, and as soon as we find a hit, we add that DSO to the list of > > things we need to put in the tarball. > ok.. it might little change the expected behavour in that you will not > have .debug cache populated until you run perf archive.. some profile > data might stop report after you reinstall the binary.. Well, nothing prevents us from continuing to, in 'perf record', go thru the perf.data just collected to populate the .debug cache, its just that we would do it just for that, for populating the cache, we wouldn't _have_ to do that for collecting the buildids. > on the other hand '.debug' cache would stop growing uncontrolably.. > so I think I'd be ok with this That is another problem, and one that has to be solved in a way similar to ccache's --max-size option. The .debug cache is useful for various workflows, but may get in the way for some others, which is why we have ways to disable it. For instance, when working on some project it is handy to have copies of binaries saved so that older perf.data files can find a file that was rewritten by the compiler when doing changes in it, etc. With the .debug cache and if using -g, we can get the older copy of the binary _and_ its sources, annotation for older versions continue to work, etc. - Arnaldo