From patchwork Thu Oct 17 00:13:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13839128 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 326ADD2F7D8 for ; Thu, 17 Oct 2024 00:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To:From:Subject :References:Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8Zgjnj0m5GCDK5RZDSEvmChYUUBqnb9Kjcf22Xw9GZo=; b=bvfVCXXTuXC8d/uOykCor9RMNT fmF4q6vDYElZJkD4qECtvztFMdSIHhvJXNqqBsbPK8gwPxNqsPylEq4Qkj2grZI2TWN/QgmNSId8E hsIbh5pQdigYpPYpOne8hbFeDEZ7z3S0s5AyPbTAuobwVntslZI2yzhX+obdGhgNyTgJ2axUExo6T n5YER9erlPOxdsodx98/XTuv6ENKKZWQuk1N9eTMO++AXSOcr1/vJTGcHd3EtvslJmEDF4yt+0OgL bx5bQiBJoAy8XFPxJGLb2q9a94LhixU3cBNGJpcEfygDCnGA4c6SlmdmCasVrEyJUUzIn4CjfR4bD tkyXJejg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1EPx-0000000DLcr-3NSa; Thu, 17 Oct 2024 00:31:05 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1E9X-0000000DI9X-2Z7S for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 00:14:08 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-e165fc5d94fso691654276.2 for ; Wed, 16 Oct 2024 17:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729124046; x=1729728846; darn=lists.infradead.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=8Zgjnj0m5GCDK5RZDSEvmChYUUBqnb9Kjcf22Xw9GZo=; b=SfXbHPIvYlhduGvBT4GA6O+zbrW+jXyPUNUukPlgnyjlKFfYflPAHVxn350hIA81Ap SaO5NTXOb+IzbS39OoNXCbEMcTcvpDrXzXA5QMevFu8wl3jbLdiCDsOf14+jjXWXlbAH h0qjclwFsH7eMbwDV6pWn+pIOXZPIYV5t5JbuqDo0oeoffo/BwRkz2Exx8eXkZ0SOAEp INsV7wV4OGPXv6dfuhazdAQjZFZv+RrJ4vACPbPIYS0PmCnq9t/F3ldAjvKifB6zHUu9 b6DGj5YJe3Z+pIt6McSY/G0kwN8Y1ubtC2dvCfdilTOMEx/5nokgLXPTg58HfTAsBzdo A7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729124046; x=1729728846; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Zgjnj0m5GCDK5RZDSEvmChYUUBqnb9Kjcf22Xw9GZo=; b=Qp7KAL+o0shaMdExUk21RvPz7Z2NCrztVwExlPcqHo0/PM5GcL8GGXRySlpeInsc/w esWydS9Qx2Q1Oioczmz4HvYeFepg4pUxFNU+Znoyv5+2dhl/ddPyHY7OaZ85jBCnsDaE fiNti8yx7Ml8m7okrsZ1gUm7e0sBUseEBlOy0I3Z8Jwt8iGx4LAwRQBqMAQH7IKgvKru kj2hdOGq/k+S4f/IOibJJV6JvS8SxcKljC9+eENYtbNu8U6rEb2aZw5xHqyJSQ5V/sUK /MtpuZbFyBj6eXbkKJ2ROyO477BC9FonioMqPmA+84TI92RtTNo0bqryokHU8xUdZKfU 32Yg== X-Forwarded-Encrypted: i=1; AJvYcCUNzERjd/pFOuX0kA1SrqsJ4jRZjRVVAr4PKFPCTSJR2MFZChuQ3Ll1A4kWKHk0lXDhOD8XAig2c8wdTyKYMHLU@lists.infradead.org X-Gm-Message-State: AOJu0YzjvK3xP9kLWsD8m4YO5gwnkXZ4RfXJQYkdLNTqiROozqgEslv0 TSR93eUBWReclW/aDKW1IIAEnCYMwtGyJtH4vxdGaEsBtvxmAyXF+DleGf+0FpdHZEEdKnux67O dVnwFxg== X-Google-Smtp-Source: AGHT+IG4yOEShi7bfA//zRBXm0HyxwcMrNGTLY2U0O7sKDY8krpaQf7LbxB/HvXewatFXm/5ipRsL7HiuJQ8 X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:a00a:f237:9bc0:79c]) (user=irogers job=sendgmr) by 2002:a05:6902:2d08:b0:e1d:912e:9350 with SMTP id 3f1490d57ef6-e2978559a74mr9642276.6.1729124045785; Wed, 16 Oct 2024 17:14:05 -0700 (PDT) Date: Wed, 16 Oct 2024 17:13:44 -0700 In-Reply-To: <20241017001354.56973-1-irogers@google.com> Message-Id: <20241017001354.56973-2-irogers@google.com> Mime-Version: 1.0 References: <20241017001354.56973-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.105.g07ac214952-goog Subject: [PATCH v3 01/11] perf build: Fix LIBDW_DIR From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nick Terrell , "Masami Hiramatsu (Google)" , Changbin Du , Guilherme Amadio , Yang Jihong , Aditya Gupta , Athira Rajeev , Masahiro Yamada , Bibo Mao , Huacai Chen , Kajol Jain , Atish Patra , Shenlin Liang , Anup Patel , Oliver Upton , "Steinar H. Gunderson" , "Dr. David Alan Gilbert" , Chen Pei , Dima Kogan , Przemek Kitszel , "David S. Miller" , Alexander Lobakin , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_171407_682553_536B3AE7 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Testing with a LIBDW_DIR showed that in Makefile.config the dwarf feature tests need the LIBDW_DIR setting in the CFLAGS/LDFLAGS. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 4ddb27a48eed..c1c7c25887a7 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -162,8 +162,14 @@ ifeq ($(findstring -static,${LDFLAGS}),-static) # Must put -ldl after -lebl for dependency DWARFLIBS += -ldl endif +FEATURE_CHECK_CFLAGS-dwarf := $(LIBDW_CFLAGS) +FEATURE_CHECK_LDFLAGS-dwarf := $(LIBDW_LDFLAGS) $(DWARFLIBS) FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS) FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) $(DWARFLIBS) +FEATURE_CHECK_CFLAGS-dwarf_getlocations := $(LIBDW_CFLAGS) +FEATURE_CHECK_LDFLAGS-dwarf_getlocations := $(LIBDW_LDFLAGS) $(DWARFLIBS) +FEATURE_CHECK_CFLAGS-dwarf_getcfi := $(LIBDW_CFLAGS) +FEATURE_CHECK_LDFLAGS-dwarf_getcfi := $(LIBDW_LDFLAGS) $(DWARFLIBS) # for linking with debug library, run like: # make DEBUG=1 LIBBABELTRACE_DIR=/opt/libbabeltrace/