Message ID | 20241017001354.56973-2-irogers@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 <linux-arm-kernel@archiver.kernel.org>; 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 <linux-arm-kernel@lists.infradead.org>; 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 <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Kan Liang <kan.liang@linux.intel.com>, John Garry <john.g.garry@oracle.com>, Will Deacon <will@kernel.org>, James Clark <james.clark@linaro.org>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linux.dev>, Guo Ren <guoren@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Nick Terrell <terrelln@fb.com>, "Masami Hiramatsu (Google)" <mhiramat@kernel.org>, Changbin Du <changbin.du@huawei.com>, Guilherme Amadio <amadio@gentoo.org>, Yang Jihong <yangjihong@bytedance.com>, Aditya Gupta <adityag@linux.ibm.com>, Athira Rajeev <atrajeev@linux.vnet.ibm.com>, Masahiro Yamada <masahiroy@kernel.org>, Bibo Mao <maobibo@loongson.cn>, Huacai Chen <chenhuacai@kernel.org>, Kajol Jain <kjain@linux.ibm.com>, Atish Patra <atishp@rivosinc.com>, Shenlin Liang <liangshenlin@eswincomputing.com>, Anup Patel <anup@brainfault.org>, Oliver Upton <oliver.upton@linux.dev>, "Steinar H. Gunderson" <sesse@google.com>, "Dr. David Alan Gilbert" <linux@treblig.org>, Chen Pei <cp0613@linux.alibaba.com>, Dima Kogan <dima@secretsauce.net>, Przemek Kitszel <przemyslaw.kitszel@intel.com>, "David S. Miller" <davem@davemloft.net>, Alexander Lobakin <aleksander.lobakin@intel.com>, 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 Content-Type: text/plain; charset="UTF-8" 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Libdw/dwarf build clean up
|
expand
|
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/
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 <irogers@google.com> --- tools/perf/Makefile.config | 6 ++++++ 1 file changed, 6 insertions(+)