Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3038183imj; Mon, 11 Feb 2019 12:44:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IZWifZBvO0R/iRL0DG+MYpa16Pkjc5sioBscnj0w0oJGpfrD76it22nuHFKe1rfk9ZNiQo2 X-Received: by 2002:a65:608d:: with SMTP id t13mr105587pgu.129.1549917860723; Mon, 11 Feb 2019 12:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917860; cv=none; d=google.com; s=arc-20160816; b=hEvhuynZOrIiWEwhWdXAjzQUGtlLdw9C8ZfDLTMQvveYIPYFHN8pjwq0yKHu+FsacS dExIJuqwXWPcawFm0uq97AGKThzPUurwnKHq1TE6L0EbRDK+orRtZtVYN/tGcw43qXb4 qvwd4enpr8NmFBumm68rsWG2kqaaEB3gC+2XLHHK/R69oOAIcEIb7aqQbbP1MPbMqrDY XwdFUFdWuOORdOegQktcr2b5cYVwCRfXNgGZwAF98Y83lWkrepyhaeHfjYPB6fBvDL6U CCpnO8pify75YuuuJrxLQRbH2Xh6NsAXmJbDYzblp/rzAHxWY9NqtlogfVm+l/CfaWWK iLxA== 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=m7egWk+bY16DE3QWXglpVcLzz8jZnyOdK3Vh8jGiyGM=; b=uGBMoUvu9A0QU3fUgz5ROXdGkT42cd4YrzbVxFVa4MkOgqVUei4lt9rENafKuonprU mgOpNL8us21tRcmakTwV0nDMD257MMp2jV1bm8fvccgJdM8nNlbJSPDXRa5dtZUJH6Zm 3m05QxQ3YhXaRGvVsoBJ5HqmQLdKy7rrQAStWE+ezAj3yFoDhnEEYnI1E56ebiIFYBfc CM9jum9n7MAB2keHFARp3zZSuwWugF0svGc53Y10FmKyO2GK3+nHvEvU7k88n/2VXRbs fPxsXBOmmK2sy03bY0sgwUC7G2D53bZrute4xxUZlAj+ND+pjVJ1ot2Yvk2CjhqutmaJ Knaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UHy7ykWY; 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 q7si10464091plr.304.2019.02.11.12.44.04; Mon, 11 Feb 2019 12:44:20 -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=UHy7ykWY; 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 S2388466AbfBKTcI (ORCPT + 99 others); Mon, 11 Feb 2019 14:32:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:55278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727862AbfBKTcG (ORCPT ); Mon, 11 Feb 2019 14:32:06 -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 13BD12186A; Mon, 11 Feb 2019 19:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549913526; bh=cfX8DX3l2wzEnNG//tlP5z7+OR8oD2yFr0C+I8fn1hA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UHy7ykWYPWae0ll8Zqzz+HFhtWiyOmsz0DMBKxKLqNBWTwiXu/IzJGO0/SujmU5w3 w/faDZbZEcE+RT4DpsE0VvWOKv7QDQagVI2ZXfTzewJ4rOozFHnEroxwdjWgJfDA1J Z6iHIO2vrLIdBz8HnYu08RyICDB7tn0f/kDNpra8= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 63360410D5; Mon, 11 Feb 2019 16:32:02 -0300 (-03) Date: Mon, 11 Feb 2019 16:32:02 -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: <20190211193202.GG3269@kernel.org> References: <20190204114144.GC18141@krava> <20190204192721.GI5593@kernel.org> <20190204202818.GC4794@krava> <20190205133727.GF4794@krava> <20190211101957.GB14253@krava> <20190211185306.GD5046@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190211185306.GD5046@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 Mon, Feb 11, 2019 at 07:53:06PM +0100, Jiri Olsa escreveu: > On Mon, Feb 11, 2019 at 10:34:16AM -0800, Stephane Eranian wrote: > > On Mon, Feb 11, 2019 at 2:20 AM Jiri Olsa wrote: > > > On Tue, Feb 05, 2019 at 02:37:27PM +0100, Jiri Olsa wrote: > > > I think all could be added and worked around with exception > > > of BUILD_ID, which we store at the end (after processing > > > all data) and we need it early in the report phase > > Buildids are injected after the fact via perf inject when in pipe mode. > > > maybe it's time to re-think that buildid -> mmap event > > > association again, because it's pain in current implementation > > > as well > > Sure, but what do you propose? > this: > > > > looks like bpf code is actualy getting build ids and storing > > > it for the callchains in kernel.. we can check if we can do > > > something similar for mmap events kernel/bpf/stackmap.c /* Parse build ID from 64-bit ELF */ static int stack_map_get_build_id_64(void *page_addr, unsigned char *build_id) yeah, wasn't aware of that, good thing doing backports, huh? :-) So do you thing about having a PERF_SAMPLE_BUILDID in sample_type and go and stash that thing in PERF_RECORD_MMAP2? - Arnaldo