Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161308AbbKSTbL (ORCPT ); Thu, 19 Nov 2015 14:31:11 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:48964 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161286AbbKSTbH (ORCPT ); Thu, 19 Nov 2015 14:31:07 -0500 Date: Thu, 19 Nov 2015 20:31:01 +0100 From: Peter Zijlstra To: Brian Robbins Cc: Ingo Molnar , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH] perf: Fallback to JIT support for mmap'd non-ELF binaries. Message-ID: <20151119193101.GQ3816@twins.programming.kicks-ass.net> References: <1447960147-2681-1-git-send-email-brianrob@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447960147-2681-1-git-send-email-brianrob@microsoft.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 20 On Thu, Nov 19, 2015 at 11:09:07AM -0800, Brian Robbins wrote: > Programs can execute code contained in files that don't conform > to the ELF standard. This is common for cross-platform runtimes > that support ahead-of-time compilation. In this case, perf is > unable to resolve addresses to symbolic names, as the format of > the mmap'd file is unknown to perf. I'm assuming you're using PECOFF? Why not teach perf to read those? Surely there's a library that can parse that stuff, it seems to me Wine for one needs fairly decent support for this, also GDB (and other toolchain bits) on Windows targets. Its just that I was hoping we could move towards getting rid of those /tmp files now that we have much better JIT support. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/