Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2141991lqo; Sun, 19 May 2024 16:01:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBgF752OI96xV2b8bmRrekAE44guVjHxYdDTfX2UAVlbLT/dMFhbqmBjZJhJL/SnbH2pMVHQV5eLXG6V8vlLiDLsE6WFjkaW0SJGSqrg== X-Google-Smtp-Source: AGHT+IHpBJhZfMutmXSt0lyqDjNTJKdTh1SzqQGLKN+yfxeVrkxLWcOan5fUbWMzd333VBbIJmX3 X-Received: by 2002:a05:6a00:38cd:b0:6ed:825b:30c0 with SMTP id d2e1a72fcca58-6f69fc8ef40mr5508364b3a.15.1716159678001; Sun, 19 May 2024 16:01:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716159677; cv=pass; d=google.com; s=arc-20160816; b=hLk+gzN3UhbyfI9YA7Ikn0R4B1vjW12QkECdvSv+pwY268vJ/CaksfQsUmcSUmibsm zjjbooq0yZwjzJygU5Wn1XR2cNAg8SLpcLwyTddW9N+LOOeJt457Kpi1QMaAQ6BeCajy zn+4PCzHQMQwWo1bFaXhoKUS1vWVS+3jErMZFAJRzox1VjMYr1/g8O25LX6EDkLP9CyQ YNS84YWzeIi6M4n5Q7jF3cjWrCLOP7A4tIeRQNw/9GrFdmmoof1uwgQ6YOXJbC6r++jq gSybjnKnHrpSfZ6PyiggrypW8XfZC31UwFVuJcQOON+6D3LgMCMet7tAg4fvEni4vS0E v6Qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3T2sk0zUifZrkf16bKv1srjvtZVOWyPlOZal3CJeJAY=; fh=S8GcjoU8QNQDyCNK9NFS1PodWkPsywNBydOEvWnLdok=; b=DsVa/eAVOTjAzYV7J98kOjygQqH3BSS3EuYMAFkkDJ63nucHJi1dBMiZVn+yITe4PU XtPRel7e8/AV/jlRux8fbbG/iByj658vPxoWQEbKhAiegksNSu/euIvg7dURe5pEIRrf DBW5pZiL51WhOqESk9KFvQu6hrtn6Ekv2qX0VsyufqFSK5pJopcKqmO30wHKhIMzrGkD nHlOiGwbgFpG+e/sZRgMGVFvacX0UpHCENswczEzCJPgciUPCDHXAKIgY4P0shWDmf9H S5PV2QOUNm+R4NNE0BJBr7TwsZaly7Hi4GYO13XlTNskt3mUJoMgw5oeg+qZNRSpFWhP Ca6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="b8/UEu9T"; 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-183301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b41d1bsi6650590b3a.350.2024.05.19.16.01.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 16:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="b8/UEu9T"; 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-183301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183301-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C1259B20BDD for ; Sun, 19 May 2024 23:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E4D06E605; Sun, 19 May 2024 23:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="b8/UEu9T" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 E03B510A3E for ; Sun, 19 May 2024 23:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716159665; cv=none; b=R9q9VW0CY4pSpdnJ6UTNJCaz1dLCF7EBFSkOi5PTq0D5rnmgFvowSum4e+Sxlj6U1UpdZ+q4MzClrDnIrnpokrGI+NvMJCE0f3jM10Mpq0g5XulhkjvoSD1Ox/wMDYOXEnAIZ+y7P4LyL72hsZe+g0O1lmo42x+VzAN0Bjc1gf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716159665; c=relaxed/simple; bh=ho1U+M+/SGKXCmr0Jp3HXiCcni35a30OfnM/31BV0dU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Z4554/RsjJ+Z9MIdMzwRLbCvEw5duNzEiFAuU6ozLe4Qy+d/bf43a+Pi+ooB/P1BsmVKWMrg8czYILrMZ0YQp4jDTvKSNHho6Pcn/HbnlLGdLF0cOI6gXAnx7pd2wQ/d2/47HuiEiy+alGwaNgwVOY5Nsrm1BGhIJNOlH9vuRGo= 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=b8/UEu9T; arc=none smtp.client-ip=209.85.214.176 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-pl1-f176.google.com with SMTP id d9443c01a7336-1ee0ccf9c2fso116865ad.0 for ; Sun, 19 May 2024 16:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716159663; x=1716764463; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3T2sk0zUifZrkf16bKv1srjvtZVOWyPlOZal3CJeJAY=; b=b8/UEu9T5DCQwfiPpf+MimFMLG5PgTepH0diyfLvc1snZzgCL754bSfOr4x1U/rqRY k4PH1KnNcK4GuQcIMRwicGS1yhEzUIS0Jd70TR1a714pamdTa8z8Re+GCXq/CdlmJYPG kN8DnJ1RUykHBStRK1lpCNusNQD1d+z9qUULsAVZJciGFXOw0aznNbqM+y8poTN96/nr oGM8ELy3dSyaMv3a2q69L+uvLq/GW9nkjvpvBdhR1UVmOsakSrSnvhLKpHHOPUjY0df+ 0ZG8xYpfF5gxsQpmw305BUpu9/lovgpIJBLXoZ0ZP4ux/FoG9dmbqzrnjSm4fhCmA8lo qV5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716159663; x=1716764463; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3T2sk0zUifZrkf16bKv1srjvtZVOWyPlOZal3CJeJAY=; b=dZXLjoemYwZLDBP0HS2j4YsZEItRvVZcw3PV0E8cH+TMgLcUxx/D9+f/fZxTuI6rCT XyrWGwnWsFXzhperuib/Ezb0e7EtgbM2Vkf3ogOKJKVRVc/inY/qTfDptB7Ird7sTIvH T9vrbQEGA50ztyrKt/9WehGFHcX0RXrylWiYEP1RVltyMb36i2X5LO4iFOv1swghH4uz e7wOwAv3rhntviWvOYOrK5MxTQn4XMTPtQkP3MqkWjOozC+Po2fp8JzstGRL38+lGsXC FrZExpVZ7VR8HpJR57q6Dhl1UDvzZCnE63SVClcWPlaDLPudV8V+MkYGXfQcK3ltrIyV ulvg== X-Forwarded-Encrypted: i=1; AJvYcCXXTMSJcjKav+q3ufUObrfSHt1/UP63cEON8tAHo1We1NtnJ7nrfBKlIBA85JRq3dL5s1H71nL7vVvtlCrU0o2xGcNYXgHrUaWh/vIs X-Gm-Message-State: AOJu0YxVlBbBGGvwAjubUcyyRXUa7xZBuL1xbgvQAhqp3qJWRq+KLO14 g0UUgmfzYJzouY4FcenQltfGiNi/Oh+vDlCZw33oa29INaE4kFnt73Sla0CX4yGq+CyLid4AVhV TOXuCD1tRlVeZYBGeQ/wxezw9JULcN2+BiEsB X-Received: by 2002:a17:902:ba8d:b0:1eb:59c4:4fc4 with SMTP id d9443c01a7336-1f2ecbb175bmr2401905ad.10.1716159662758; Sun, 19 May 2024 16:01:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240518165335.3963530-1-sesse@google.com> In-Reply-To: From: Ian Rogers Date: Sun, 19 May 2024 16:00:27 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] perf report: Support LLVM for addr2line() To: "Steinar H. Gunderson" Cc: acme@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 19, 2024 at 2:01=E2=80=AFPM Steinar H. Gunderson wrote: > > On Sun, May 19, 2024 at 11:23:26AM -0700, Ian Rogers wrote: > > I think we might want to display this in the feature list during the bu= ild: > > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.gi= t/tree/tools/build/Makefile.feature?h=3Dperf-tools-next#n123 > > Ack. > > > s/HAVE_LIBLLVM_SUPPORT/HAVE_LLVM_SUPPORT/ > > Ack. > > >> +#pragma GCC diagnostic push > >> +#pragma GCC diagnostic ignored "-Wunused-parameter" /* Needed for LL= VM 14. */ > > nit: pehaps disabling this should be conditional: > > #if LLVM_VERSION_MAJOR =3D=3D 14 > > It doesn't seem LLVM_VERSION_MAJOR is defined yet at this point, so I > don't think that would work. (I just checked; 15 has the same issue.) > In any case, I think it would be just more clutter for dubious gain. > > >> + if (file) { > >> + if (line_info.FileName =3D=3D "") { > >> + /* Match the convention of libbfd. */ > >> + *file =3D nullptr; > > Should "*file" be cleared if "!file" so the caller can reliably free it= ? > > I don't understand. If =E2=80=9C!file=E2=80=9D, then file =3D=3D NULL and= surely accessing > *file would mean a crash? You're right, sorry. Thanks, Ian > /* Steinar */