Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp66036imj; Thu, 14 Feb 2019 15:28:18 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6WpBQC2KTLraogIJ/6Ozi3yWgpL6KF0tpY6u1QVC1STcTRrqrKAAYFj2QuaM4BvuqRC6a X-Received: by 2002:a17:902:8341:: with SMTP id z1mr6953756pln.150.1550186898273; Thu, 14 Feb 2019 15:28:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550186898; cv=none; d=google.com; s=arc-20160816; b=ENkWTKrIv5BMyIksvubA/4PuiCQi7ybH8Q+IFy4njJEykVSeUoU8+IJvu5i0GPT8eX CAMVBh9MNbrIg5RUVd21lihTnX3ss93QvbAjKCHc6U1lsoOkvh6FutaWHVj87J1umj8L swRRp5NmNb5TK0zDsCq+N+JW36yIzbREXajcO7r8T3FyNGZNeuss9XpBkXRHTGIA3tKW Kp2RbTBH8rEkMlYKB/Z8/n+zV2C1JQqn4FdlAEMRAlItgaAPt79omBIXAvDu4VDSOxat dMyTfuAorsw2cgJZDX2z2boQ+c5chp1udMTz0NNJbzuceukruxI4AUblulSW7VF+o0HJ H5Lg== 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=9vi/TGQMVCwhTIAJ6PyPEmYQK1V0DGcdjsV/vtsrK04=; b=sMTe4m967G8JKH6T5vVK0wjsmlnenK5gVfeWf1Dllk1ZrKBY9ierftibnPASNbZz38 jOymy5fxl5TKbDiKKHYphKNY/FEUrLV5oeSifEko7/y5NAjxPfUL8pitIW8nfXoGDb5o OFskRlV8SR7jeqPkIqs7nfrgI3V6yYHCU9hUjYJxEYIBoaeoOj4/A25zZ5qcNd8823dN EW+C3h4dFEy+Ht1n+YIbU0MJyJHeFzRflSGLoFgLk6f/vpp2HMsKj2YrtaOL4Qn+3WHm 8VrXWRG1dqSooghjlW97qGH4pMj4+YhHrZECDNtJQ4fkgMwWLp+Y9Z9WL/mkMGqHzYuR PIJw== 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 y14si3885455pgo.363.2019.02.14.15.28.01; Thu, 14 Feb 2019 15:28:18 -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 S2438861AbfBNN0n (ORCPT + 99 others); Thu, 14 Feb 2019 08:26:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48544 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388291AbfBNN0m (ORCPT ); Thu, 14 Feb 2019 08:26:42 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B5F05D67E; Thu, 14 Feb 2019 13:26:42 +0000 (UTC) Received: from krava (unknown [10.43.17.161]) by smtp.corp.redhat.com (Postfix) with SMTP id C3EA36013D; Thu, 14 Feb 2019 13:26:39 +0000 (UTC) Date: Thu, 14 Feb 2019 14:26:38 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo 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: <20190214132638.GB13095@krava> References: <20190205133727.GF4794@krava> <20190211101957.GB14253@krava> <20190211185306.GD5046@krava> <20190211193202.GG3269@kernel.org> <20190211201831.GE5046@krava> <20190214113450.GC26714@krava> <20190214125759.GS3269@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190214125759.GS3269@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 14 Feb 2019 13:26:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 14, 2019 at 09:57:59AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Feb 14, 2019 at 12:34:50PM +0100, Jiri Olsa escreveu: > > On Mon, Feb 11, 2019 at 12:43:22PM -0800, Stephane Eranian wrote: > > > On Mon, Feb 11, 2019 at 12:18 PM Jiri Olsa wrote: > > > > I thought having new MMAP3 event version with buildid field in it > > > > if available and/or enabled by bit in perf_event_attr > > > > I think MMAP3 is a cleaner approach, though it adds yet another MMAP event. > > > actually I realized this might not help at the end at all > > > what we do now is that we scan the data (after it's recorded) > > We wouldn't have to do that scan of the data at the end if we have the > build-id in the MMAP3 records. > > > to get the list of binaries that got touched during the profile > > and store those in .debug cache based on the build ids > > > we can't just store ALL of the binaries that the session comes > > across via mmap events > > We don't have to, we never did that at 'perf record' time, this is > something for 'perf archive' to do, see below. > > > I can see the build id in mmap helping to resolve the race > > issue when some binary change during the profile session and > > we have no idea and report on wrong one.. but I dont see > > people complaining about this at all > > 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.. on the other hande '.debug' cache would stop growing uncontrolably.. so I think I'd be ok with this jirka