Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1722664lqb; Sun, 26 May 2024 14:24:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0kZUxbasU9J0nCjBs0a5i/5TOaObgTaEuczFf9sH7Vat/yiJAXpeCsjZ11JhuhA2f9ZlZAHSAaqv6Wx/ik8HzCpgGrZ3TE1o00i2iyg== X-Google-Smtp-Source: AGHT+IFCVFbyGLrSPHi1x3KqbeUiopUGTeIcDRKbif4BR7utdLj2bPp9LQjyR3inFYXjDvHmeJix X-Received: by 2002:a05:6214:2c01:b0:6a3:2949:c496 with SMTP id 6a1803df08f44-6abbbc8cd28mr93537796d6.21.1716758696964; Sun, 26 May 2024 14:24:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716758696; cv=pass; d=google.com; s=arc-20160816; b=h0sF0zNxbYOYIg860uLBRafufw58+c9Nv/hVwWXYerHumk3iEC/JU01ag/h9IdUAxc a2H9fWy0ndmrFEA/dOGgGQnI8JBIHXLbtGi4OxCaIs4euGFQkCAf7PQ1NYKsFQ5N1Xcx uIaklTO7n3JcImoSzUdkEGOzeRrM1+m8yX8T38EitffartXNzZ1ltgklDfTVHx4hxI2S TwwY4viDIy00OpimdcB7ZFdfjt8WEiiACu4Iw4aznCFAvABH+sSES94sbM6DS2h+pTZ9 /tMHiEbukktAYywrHGAQXE6bMKNzvGTLvUk8r+4stdHBDg0r1Pa++QvxwVjAwG73MBgB QZLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tTI9+Tooj7QXANR7xYSYhH9MioraP53ANnHXVs8kx10=; fh=GJt3ySJiIKbxK46pIHOcd6mBc+MfMX8rmo33grtX9Y0=; b=H/WqtbDqfiPwiSuZmDMlxXbEDXc8DJflqLlF7YdSxFZ5i6Lnt84DydedoYh+gpph/g iZi6L9QGcqeNM5h1MpaoodeQt4r42UY72QjkfNR3sukeVfi6NabMhW9BzX75Xt49v8qH DrjmoA0xM1M4Drvbu1KKHxWZSiW57OSHvy1JEr2goNdXD8no9bdEL+nbtT+NP1RxD2AO IVReI095KOWd37SkCyGlv7mqOpn6RWzIbb1/BJXOn4jH5+jC6YSCY40ajgW78D6osDZg /jbIdTXnwih0ISvT+PBiHGKHh0Zfizncfh9Ywm92i5isY0TS0Up8SO0M/60xK9ZIBB3z tZfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B4ZgPEhj; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-189877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac0707d821si68615596d6.155.2024.05.26.14.24.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 14:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B4ZgPEhj; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-189877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 72CA41C21347 for ; Sun, 26 May 2024 21:24:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79B0D13A250; Sun, 26 May 2024 21:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B4ZgPEhj" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D4EB12F5A6 for ; Sun, 26 May 2024 21:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716758688; cv=none; b=r0UCC/Qo9lgB+/o0GWZ1BGAxCgRATlE+EIXREFQUY+wAE+KZWXsFAoaikIeAglbQRFay3tZlzv55RqOBd+3cvsABOUPPXfjXLp4YZdtx82Y+HEYhKnVLi3w3TcsvAnfMUA9RV+4g6wxVm6GwJaFZvyWU2DrbjG2IymSljyr5eO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716758688; c=relaxed/simple; bh=Fc+Yxlu/eOYcBEZ15ctTkP/Gy0RI2ZGUfJkYqXamuco=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Av7ffxZ9Vyh+ELXC/0KzwWc49Jm07YXlRdaqARNeDjB3Hkv3PP0jFOrKn6Omi38T8yr78vmRO4CBNrA7OiaPGncK7ezP9EK4bOmJNI232tyE6x6GUzNvzMRkGHGvOj4kcDfEWVLnLn0CEmxMyvlL/WmS4AFoMLVi5Sfi4Tks8uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=B4ZgPEhj; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2e9684e0288so19108551fa.1 for ; Sun, 26 May 2024 14:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716758685; x=1717363485; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=tTI9+Tooj7QXANR7xYSYhH9MioraP53ANnHXVs8kx10=; b=B4ZgPEhjhnjGfNDvPgf3YR3S/X0SeWg40atYpzu9KzCbAEMR+5FncL0BuTVj6Ka8KG Bfya9fp4OhlpO9QabpgO9JY0R8xXr+rnNVd4l/NUa2n71eMxHjGWgf3u9rKFQ34OCO77 b9vV2I/du6thnuQu8wNd0jG0k8iZvVnOY9kqKxiYvhEhzDvVyFBpRYdFZrFnjk/5KT1o nZaCdsXKgrRWE+6pHc04r0OT9pBcDbS5XvtjERN5iy6IrxaT88HgzONhSno21ENi7ET+ +keQqF9zEg5CwpaWxrEG+wSUk9W6v+4yT/RitWyIJJQ+iwSNDP6du8LG8n4bLpK4E48u KsMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716758685; x=1717363485; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tTI9+Tooj7QXANR7xYSYhH9MioraP53ANnHXVs8kx10=; b=cTDjHpQ/KycuCMZd4J21DPf4BtpQHtk+4WPZRcYav5FKO7Z4pyzVuGvBPkBS20QUtu jFTDuB1IXtSUMlWlibvfx59/+alDowpjua6y8yUndp8sputRolo0bd1RvMN1R0GvfWd7 381br1NoNm1PTxKzpagsoi62DxYvcHL9LPbWYneI/K2t05Hw0eLkKsYwH5njVyWMe9+H 3j6YhDi+jw/ddYMVwoF23FHMNRKgnhMYLOPdUHjWz4QL7RtKTGYxUBBBSIH7iwdsxYaN SWU6gjGwlvtXHmub4kRDmUrtLd433Mb5X1UNJR/NPuy5GVR/FULCypBUheMCJxIsy0+7 z8Rw== X-Forwarded-Encrypted: i=1; AJvYcCX5PBcJp0rMsPKh5SH8FQdYf8naDmn+jwgND6iKMtVtG8kG7SfFt9RC/H4a24o2YH81LMnpPz9UCL7UyxF7JCHtgHLrwIi/51OzPKSS X-Gm-Message-State: AOJu0Yz4/mRSfmlNWwr04EIrqdkKu/2jdjBL1ccwgCkZ3FLOVViWC9UE M1AI5beLbxrvG3Cr+heRSOcenjbi9YFQMULJmQFa7fnMe8nYyZy1dM0BC8/apQ== X-Received: by 2002:a2e:2c19:0:b0:2e9:564a:db29 with SMTP id 38308e7fff4ca-2e95b0c4da4mr66780081fa.29.1716758684437; Sun, 26 May 2024 14:24:44 -0700 (PDT) Received: from google.com ([2a00:79e0:18:10:9da6:3a1c:cab8:1718]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e95bcc48d3sm15888561fa.5.2024.05.26.14.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 14:24:43 -0700 (PDT) Date: Sun, 26 May 2024 23:24:40 +0200 From: "Steinar H. Gunderson" To: acme@kernel.org Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, irogers@google.com Subject: Re: [PATCH v7 4/4] perf report: LLVM-based symbol listing Message-ID: References: <20240526182212.544525-1-sesse@google.com> <20240526182212.544525-4-sesse@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240526182212.544525-4-sesse@google.com> On Sun, May 26, 2024 at 08:22:12PM +0200, Steinar H. Gunderson wrote: > + > + symbols__fixup_end(dso__symbols(dso), false); > + symbols__fixup_duplicate(dso__symbols(dso)); > + dso__set_adjust_symbols(dso, true); > + ret = 0; Urgh, evidently I forgot to copy over dso->text_offset and dso->text_end here, which I guess needs to happen. Even after doing that, I still cannot annotate Windows symbols, though; I get Couldn't annotate RtlLeaveCriticalSection: Internal error: Invalid -1 error code This is true even with libbfd in a non-distro build (without any of my LLVM patches), so there must be something else at play here. I _can_ run a Windows binary in WINE and get the right symbols out with perf report, though. So this leaves only demangling as the final piece of the puzzle to make distro builds essentially equal to nondistro builds. /* Steinar */