Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2233488imm; Tue, 4 Sep 2018 00:12:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamNgowpl1hLZGftovp5KFnIwcr0hpMGbJ3ksUVXUV2GHi549yUGL3oo/NFCaQFD1EKMH08 X-Received: by 2002:a63:170b:: with SMTP id x11-v6mr13799943pgl.364.1536045161340; Tue, 04 Sep 2018 00:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536045161; cv=none; d=google.com; s=arc-20160816; b=BiyrFRDGsbFa3P85+k2o9oKwKOcckz7CXD6z/28N54H8g0Yi+EhHIwJFIc66jvzI6h KR/uOz8wz5ZRUVPHiqpWAnLErHgW5LxM+t9MDtzWPtjubW0J+sCZeqM1c9wZTmiTMJOz lotoAeKfb8vD5hdt/SGnpaMcTDB+fe3Ei7ax0bv369H7Vldnyhu7fyUvum0g7a/TjRxW 2r3+raDK8cI6o7P8Tt3rCeCNGTu4vJL/vTA0ChF5JPrSUU7dzdhUvA7on5AqY50pjZ4J Sz4GnwOYRhMJJcfM9P6yxtjxWaj3tiuMDTpQASvtivcxhcUGoA0AfUQgr7CBaYU2y1Se dmhA== 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:arc-authentication-results; bh=tjQr0loCECd7Hf5Qij1AnOaRFEaLe98L3QErOMYKV2E=; b=krmbxKtRnRs+rDwrZ4v6bQNKp+fXHNOmBwV46HCu3BbSWosR2qQ9CA9iuE3qZ2CFyU NmdG56kAe1xLtgIGJRw8wK95vS4zoIc7qI3DiC80+JoYIO8weczN1/XEaH0lXLjk3iKm 38cr38fr1h95eQUCgTq03Dou+HQkvtt0IEtF9RxvJ9UU2N+qPKBNBF+9gFsw3T6WIh/k M2Gi8RoPeu5fpAjF/Esg6HHmAl4HyHNSOK7Ghv29xHjmu4gZSMNzZjRuxtlWgmRGK6WO JDhiuiUCLnAUsMs3zEqyeE03yh6gyUCEbemzvDPeV0oRG88wAWGH2n5H9bwNNFSegkpA iiNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jJ1FqehN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10-v6si19971808pgl.554.2018.09.04.00.12.25; Tue, 04 Sep 2018 00:12:41 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jJ1FqehN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726205AbeIDLep (ORCPT + 99 others); Tue, 4 Sep 2018 07:34:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46228 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbeIDLeo (ORCPT ); Tue, 4 Sep 2018 07:34:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tjQr0loCECd7Hf5Qij1AnOaRFEaLe98L3QErOMYKV2E=; b=jJ1FqehNdx7Azhn4G1EmvUrQk 7NUIkaFQo2Tq4296Ih9eWeHRU8j3KzWz+eRWMPsDEFWjJp/wJlCrWyqwwDR7LPlFAYO4LH4fEAukM IlS07Od5NgriNQdwM9MT53H4c6xPvE7KHEgF+zJWP3sXW0gSkkIc3lLyom0I8sfJN5czHF2hK3hCb uWO7DbimJjZ5FWi3oYZjUrvJwd8NDcTjCga7kJH0XBGi26HONfR3EOKmGaWI57sMWL4RS49eGvDuI Xff3/jM7xq320fEcKwJQfl0TLzs5ca4+FOM8XPOjTUNSNXQCrh45KyiJ/S7LpAzIyNEiSS6/2NM2M FbtKYmh/w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx5UC-0004oG-Ks; Tue, 04 Sep 2018 07:10:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CEBD5203C09CE; Tue, 4 Sep 2018 09:10:49 +0200 (CEST) Date: Tue, 4 Sep 2018 09:10:49 +0200 From: Peter Zijlstra To: Stephane Eranian Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Jiri Olsa , LKML , Namhyung Kim Subject: Re: [RFC] perf tool improvement requests Message-ID: <20180904071049.GY24124@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 03, 2018 at 07:45:48PM -0700, Stephane Eranian wrote: > Hi Arnaldo, Jiri, > > A few weeks ago, you had asked if I had more requests for the perf tool. I have one long standing one; that is IP based data structure annotation. When we get an exact IP (using PEBS) and were sampling a data related event (say L1 misses), we can get the data type from the instruction itself; that is, through DWARF. We _know_ what type (structure::member) is read/written to. I would love to get that in a pahole style output. Better yet, when you measure both hits and misses, you can get a structure usage overview, and see what lines are used lots and what members inside that line are rarely used. Ideal information for data structure layout optimization. 1000x more useful than that c2c crap. Can we please get that?