Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp871826lqp; Thu, 23 May 2024 02:32:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhbC08b+jQYbrpEPmuesbc6abEuNWieqbdEzEjIeAE13hI2LTsBkHU2Y+8alLUASkOcSxheWshX6TukM89LrCEKvEGJuJrX9DcBtCxEA== X-Google-Smtp-Source: AGHT+IE8lKSYTUzmdv5a5PVAWAYfDeFyFerAGnZb+EGUQ8k3caRdVIZ3udTUFsrVM8hKhA5TX5IQ X-Received: by 2002:a05:6830:44a4:b0:6f1:228e:764 with SMTP id 46e09a7af769-6f66a5a0652mr5263076a34.33.1716456757262; Thu, 23 May 2024 02:32:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716456757; cv=pass; d=google.com; s=arc-20160816; b=p0mKlRcgIfJAgo7vt3qNETitnbCt89IpnAWKPijZUP72pCgeIj7F3DEc3iRW1aiIZU y2+4zB67bWHicS/STWLY6errT7OPvb3HguNf6/A4dO3wn/zivXOjIOdSQ7/Jk+1SippU avDelqrkS5SrPNRD6Q1LZHRdfTN0AVTI508207W01u4NQRVCFLcavKqghaqwO9LMV/ME 3ZivCfUXtlIzDvAtBWBidSlb6wzQI30vKsMe9UQRTkuJe41x5tAb0awT3SwThwrzDUNa cWIOfPXkrf/FJr6b+qLzbkLdzYhZE6Lye8T/uZRwkDQ5Afo4YRvAzq4VmyBn4arpyEaI buEA== 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=5mQDu8PodgpyJeYqrI53Wq+jk69QtdU/8gr3jtIgfVw=; fh=lCEZ4j0DyqecR8w++8BCd4jeVu7dPhOuuEu+Lws7Wx4=; b=zSrHzRc3Flo0sfEnB6gGs94XHS5erAzaK8EB/BwCRxCGG1B/fKpuq2IDgi3bk9RvsJ B6JVt3/BDC0KsQylbmH4BbX5UpizV/SwrGdV6iw3ypMmZCeQxfmEzhbz6vRmQKfgylNU MZxoDG1SBO4F3voT/qdv+AcfGwfo1Qoh9OtmTgngmTl/OQI10mKjN9mVZeqWbQfWNTlg HHsNFdrFqfywkvWIaCQs91AGRRntG5pQF+Zw3djD4AgpsZ9LBA59oj5se/ZmD9/kms2i yVwgtU37iyEc3IUwzLm8ssfPY3TmrBOgOK8aR5ijQHCVNJojCm1jwZioLoD4xwQiai74 Nrtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="oRsgBB/q"; 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-187272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187272-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 d75a77b69052e-43e276d3688si56677891cf.181.2024.05.23.02.32.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:32:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187272-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="oRsgBB/q"; 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-187272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187272-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 1F81B1C2135B for ; Thu, 23 May 2024 09:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D85EB13D26E; Thu, 23 May 2024 09:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oRsgBB/q" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 85C17446AE for ; Thu, 23 May 2024 09:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716456740; cv=none; b=poaL0n+rAyL7gMUSx5WZf/HaOOgESfRVs6VTSDsgzBMKRZuO3UCVISjCfkoKfa52J3IBFHA6VSwxRo6LxlsQBhulJ9gjA0e5lWKSn8oIowVwLDjuDHzBFwor4RZYXwTp1hiS4egczxJCQ5h8E/iuHngh0ua9ZPrjcPmnhs2M79o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716456740; c=relaxed/simple; bh=Lj98U6JsOomLPuUxYnAamRHx6i8QFetonnyK1CfOu6U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rBMdRpGjqu3wAyUoyKQAPPeREmlMTVmnZBB/uN9MAm9rEFCrH+XkuK/AFZOB5M68g1roOsmFsMTVCgAY1eYDwarBZcqeNqbpjVNeRxNYChP1NavlbtZZFti7t6LQBhDYWo4/P4u7pILo2ngLE1qi/y9K5G1CAOwpYHkZaT5U4Jg= 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=oRsgBB/q; arc=none smtp.client-ip=209.85.167.41 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-lf1-f41.google.com with SMTP id 2adb3069b0e04-52848dcebe7so339022e87.1 for ; Thu, 23 May 2024 02:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716456737; x=1717061537; 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=5mQDu8PodgpyJeYqrI53Wq+jk69QtdU/8gr3jtIgfVw=; b=oRsgBB/qYGMLA5lBkUSEco8P+2cF/JERyGB8CjU1O1jDwraU/RYjPON/xRns70qqSt ThVhFGW3baEKZCNFPe1a563yGL3zKZFZq6V8RaXRGFKBsxsqyQvlcD1VPG/kQEZj16zv wbW/I1vrmRZAi48ALara9bJSYpfJelByUj8EA0/VNHUg09L2HGzOguZC3kTEV+6WtiWB wxZuSLc01ET7wn3QnUJSG/vPuvkSX3jkQVot4A34pJVB90DGw3TVlxf+K9f8OKysPneV EQko0a4kIIDmMTi1dYo0mi9dPjYteOU9f+2UlKmilZxRcfWAxyBQaIXBQJ5TpUSIvaSU 9XqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716456737; x=1717061537; 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=5mQDu8PodgpyJeYqrI53Wq+jk69QtdU/8gr3jtIgfVw=; b=X772efN0jie8e10lNkRiccwojXAM2ztGmjEF5u6kxoxx5hgWfTFnW6i+nvXFFZNGRA r7UZhSWSY2IPpUwXR1gsjuEK+bzO6S8TuF5vr2Ui6cMb3AZqgP3igfQP8Kt6k/2yYliF H7a0B4w3gi73t4daefwgr2tAFDWtmAupHEVnSssNPeCq7RaxnndivY8P/+P9OZ1ZqNJC 3xfCXbp+lCX9FTpewh/b9nnK++gA/LDfY2AHzmzdix2ivPb21PUPFtBr62VlzmHMHLqI Y0KqtdZFYDwfUVb69wwYNQpoU9A3xyxEsk4YE0jIOjD926bS0mfNDfLKwD4MYdtQjL1d k3Dw== X-Forwarded-Encrypted: i=1; AJvYcCV9JBGZmBrP15FzDUUzsXITQ2CdmT4TrGy+yChWu3OMHBTJej2NcLnc152nl7jjwDx5aOQpzV+QfHG7pSzYD2D9K9HemxEbMon/jDkg X-Gm-Message-State: AOJu0YxKkiLxe9W6h+5F49hgcAQD5GBpt9pB7LwLrZtaeE/LsewsVd37 rZz4uFjD2sH5iu+YWoNhvI51dTEo/fS1DLa9a99YYA2LbSiUH/+ChL8o3ycrCg== X-Received: by 2002:a05:6512:3b11:b0:516:be0a:58b with SMTP id 2adb3069b0e04-527eed419ffmr775222e87.6.1716456736468; Thu, 23 May 2024 02:32:16 -0700 (PDT) Received: from google.com ([2a00:79e0:18:10:4571:1ce:5c15:9ee]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e6f5cada08sm22900441fa.140.2024.05.23.02.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:32:16 -0700 (PDT) Date: Thu, 23 May 2024 11:32:11 +0200 From: "Steinar H. Gunderson" To: Namhyung Kim Cc: acme@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, irogers@google.com Subject: Re: [PATCH v4 1/3] perf report: Support LLVM for addr2line() Message-ID: References: <20240520083048.322863-1-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: On Wed, May 22, 2024 at 01:46:35PM -0700, Namhyung Kim wrote: > Great! Personally I found libbfd is hard to read (and use). Hope > that libllvm is better in that pov. I'm not sure if we all want to > remove the libbfd dependency but at least we can select one of > them at build time. Maybe the same for libelf and libdw(fl) too. I've never used either before, but I found libllvm pretty straightforward. The C/C++ interop is a bit painful, though. (The disassembler has a C interface, but addr2line does not, from what I could see.) > Having symbol enumeration and demangling with LLVM would > be nice but not required to merge this work. I'll take a deeper > look next week. Please post v5. Posted. /* Steinar */