Received: by 10.192.165.148 with SMTP id m20csp3403661imm; Mon, 7 May 2018 11:40:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq1ch43pfbWPrSXOy2JMr3xntd8d2tHbz5l7XFiOF8niiyEiN/elNrXP0uTW2qMHdih9WkL X-Received: by 2002:a24:2f89:: with SMTP id j131-v6mr2524420itj.96.1525718446030; Mon, 07 May 2018 11:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525718445; cv=none; d=google.com; s=arc-20160816; b=rW7DVmrP3htIvdYhdQ/MCDagKOK964h6e7WWReiiPg0h0Ljz6lfbkTxlbpGorbhRla y4Tl5H7HjhyQrKLqbsqFmkBIROgU2dCb1grBHNMVJGIz7Xo/gIE0X8fftCgqcakaQnn5 xGV5CT3WWtL/A+GfqjCShY3xcKO5qPSlBfGqlQc0mZL85eJyTIanK1oPNRQNY6iAexG5 sLcxik7GPIrGmELPb8W36dRKtq7G6po+xQNrnrs9mm3tX09zUBSPF2lR9cTk69eIgvVu 5bxV8k9Me2RAkWlg+7N+BqTFZWjoOYatq9t+JKuqFFh9hQXtCSspPXcTy1zEfRvnHY17 Vcag== 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:arc-authentication-results; bh=uW1uuhVfLhLe3G8FNAqq8BhDWeXLfTJocinY/4l8JQ0=; b=E0usJhUcdEeIdHWXT2Yw7JioApC0TRYliNzuU5TMsxPFdaP8WWim7+CWoSvoJG5IjA oLCDVtbVPddVuBktvpRz8a/cfjU0vTmgZpiu7aHos3bIPWAAxmi9LoLAZ3PHCrqsVWHH JdJfJW42W1gI2N6Q5oQZmNzWAD+2U0lDBKyJmZFs4UsPOOp+HOBmRLeivSOfF2JvlnTn jPxZzE4Z0Hg/fxxGklSr0YNBY7gX9jEBzuuwLoW3XXoQOARBMsXQAUbBv5vLN1J3AwnL /eiHsrKQLgVnoVSaa1/GR1e7mnKYL8jTyLh+c74C+4yHQa5IOy6LT9GEJ8Thh48RYQK4 rR+g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k68-v6si7718477ite.45.2018.05.07.11.40.32; Mon, 07 May 2018 11:40:45 -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; 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 S1752769AbeEGSkH (ORCPT + 99 others); Mon, 7 May 2018 14:40:07 -0400 Received: from mga11.intel.com ([192.55.52.93]:11590 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752726AbeEGSkE (ORCPT ); Mon, 7 May 2018 14:40:04 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2018 11:40:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,375,1520924400"; d="scan'208";a="38098397" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by fmsmga008.fm.intel.com with ESMTP; 07 May 2018 11:40:01 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 9C730301068; Mon, 7 May 2018 11:40:01 -0700 (PDT) Date: Mon, 7 May 2018 11:40:01 -0700 From: Andi Kleen To: Josh Hunt Cc: mingo@redhat.com, acme@kernel.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, wangnan0@huawei.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com Subject: Re: [PATCH v2] perf tools: allow map files to specify DSO Message-ID: <20180507184001.GE4050@tassilo.jf.intel.com> References: <1525717456-21475-1-git-send-email-johunt@akamai.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525717456-21475-1-git-send-email-johunt@akamai.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 02:24:16PM -0400, Josh Hunt wrote: > Add the ability to specify a DSO in the /tmp/perf-.map file. > The DSO should be the first line in the file and readable by the > running user. If a valid DSO is found all other contents of the > file will be ignored. This allows things like callchain unwinding > with DWARF to work. FWIW it's ok, but also obsolete with Kirill's large-pages-in-tmpfs work in newer kernels. With that you can just copy the executable into a 2MB tmpfs and disable the manual huge page copying and everything should work as usually. So essentially it's only a hack for old kernels and old binaries. But doesn't hurt I guess. -Andi