Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp60186imj; Thu, 14 Feb 2019 15:20:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZJTSVi1tUFwo6HP6/Fih5yooKmEv81hmY9Q57iFXADWEWf9XcFAEd6Kr3/6UHYcgzRgale X-Received: by 2002:a63:d047:: with SMTP id s7mr2352662pgi.311.1550186425909; Thu, 14 Feb 2019 15:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550186425; cv=none; d=google.com; s=arc-20160816; b=oL9vmOCYheU6dQa1Q3ofs84TgvJVBcahBo4MOLn6RmH2UZG8i2AV7upQRmdx9btvNe JXXY9b0dQQO6sdSyzg3+hUXt2MxPP7eFWDwPQnPOKW73iHdUxDVPvDPsvtDbzcpG4plz Ynqx/dghL3jH3+xqXEdQ/5bzNNwPtHXxu9Q65YMK8r+IcikRBwp4gtzllXcjLFsnoMgv pvAd0Hu3r8oLjmGMXK6WQkUceh1wFpeMrbJPnbys7pNaAoc6Leh51gFIgnFNrl6bsCA+ AdD9pX4HawSiMBOb0qE1rTX/GZljJ9aU0BdUCmCW3Bm2iOSlxfdTtK6A2VuUVqcDS1No 5U4Q== 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=vo6HBoPklw+v14UnRxAr4WjFpBsxJ6K+ZwK19lrqZ74=; b=vXrKO9twOdTYy5pSxwP/dB8tfRWHSXy1QF2HjnUy7th/upMERQpGhNU+cvZVc6Y4Gy tjo1aHjNXylQ4E7KrKOl6dHwviUio/0LBnB0cbaYhV26TVd5zhdP6wsQ8GPZHPu1vfCx Ul3PkJLjrYPtR60c8uxHurQjcU129E4t/BCSGuU78ebiOnLdFgKUW4cO6hRxXftOByVH jY7OWS9PiAdrliUwAS7NZjvQoT5TcQV4GxqrYMu+IH0LdcRAhHdx4wU0su/XlEZ5CA2y bYnUcqTaP2jc/E8cPcELlSula57J8IsC4VxyW9b5Jwv9PQcX1Xj2FMdnGc+3b7rAbYde Uozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jjzgYCHa; 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 61si3746043plz.177.2019.02.14.15.20.10; Thu, 14 Feb 2019 15:20:25 -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=jjzgYCHa; 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 S2438573AbfBNM6D (ORCPT + 99 others); Thu, 14 Feb 2019 07:58:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:49108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388169AbfBNM6D (ORCPT ); Thu, 14 Feb 2019 07:58:03 -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 1BB5621900; Thu, 14 Feb 2019 12:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550149082; bh=+3AKeeRIr7ZsdX2FfRqjA2gzgf6gue7z7ycSYG+ZsJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jjzgYCHahay4ZuHCxAq1ZY9z+4xvvsvh/7WtM5gXGuNIN0lx+fVRdAgnWp2FbpISZ BOduHZYCfN8lskZt2boX2+I3rQ5GXL0EnuWg8SodErX3YaCxTAKNe8N6EI8NDqa+AU wl0609/g0YGucHeazbosezkLnBAMWT3vWBM3EthM= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 437E9410D5; Thu, 14 Feb 2019 09:57:59 -0300 (-03) Date: Thu, 14 Feb 2019 09:57:59 -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: <20190214125759.GS3269@kernel.org> References: <20190204202818.GC4794@krava> <20190205133727.GF4794@krava> <20190211101957.GB14253@krava> <20190211185306.GD5046@krava> <20190211193202.GG3269@kernel.org> <20190211201831.GE5046@krava> <20190214113450.GC26714@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190214113450.GC26714@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 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. - Arnaldo