Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 013742594 for ; Thu, 17 Oct 2024 00:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729124049; cv=none; b=cxTU7VZv6K/FSucS+NTofYE5YtVaaNyfLr3wo/7bvQjd5eLLIzckUKW5wm390TxKbubTg9vE93TrHnpLzQC3hBVOQmgtF/nUWR7lM+lQbot1FM6i5LlQVOH6H9qLh7cuQKbnoGSWjYWdBOLLf9PkhucEjYkZ2cRX7Evf8w9BHIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729124049; c=relaxed/simple; bh=EOP5l6y1kUpRzEu33igUG4tAL/TMJqk/jq6xRto8d7g=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=EbDIkuqIpkD1W8ejM5TKIoxVJjTcBC4bowMHu66b9ACWhsszvIRUJlGrkMnaFhj8t998wAqcxMrYCb7lMr+LaMQxLmzSIBSa3ok8SuL2BafBVJhsbk/650HSrFQf33xOw0fW3mM+7apR91G2Kk+cIaXZQfoPNJsBPGXd6uGwoY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=YTuZwr5l; arc=none smtp.client-ip=209.85.219.201 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=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YTuZwr5l" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-e28fea2adb6so499473276.3 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=vger.kernel.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=YTuZwr5ln2aetB1xztLNVhC6vLuiQXJ9CzX7ZpiUXM2LFAJzXsY+p9WRNIxV+HJLMt 4nEhLFJXtmH8WXW66NuvdUBemQ1xlsM3NioMgLlW5ODeev6SFSm24+1+cBZtJrnDiUcp yfbJUC5pOhPBPP6Gb0/KVdlyxdnRAq5ey7A7S9Oqy58ffvHXli4PHhkSm5Kvbgbyv601 kYtq1TzYWLLQJb8hTBG2Tw6qcNZqS0YtI4ua0xlH9jZz7FdCZmRjANBuiywLHGWrRrv0 HcJ3VJN9Y3YWoNcVr+0YbYk8iwWClr4RMTeQ8nsovQeyCr1kD+DWIxjn/N8LuyPqekXw ZA5g== 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=TtZr+nuacBPsONgEdtqnBQVyGRfmKtMR8A4GmojdnNceqg8WaMJqYdEbuJgZK1jfCM +FYofUGJEU5U7KqAJfWTEcbAQxDohCxLsqYpPP6UiA45m+f9BNCdf0cNlkStIYYl0NBF 9oEWBbatPZ5ajBKsFBj3qKRTWu6oOrprb8hpHPOscZ7ZxwLMWC77TcCc7ovvS6WTtnQq O5try3P5ZFHta746Y1MORZjQLB0ANsoEylzP2eKjobzuF/LzENIOOGLtMaJpL+FkCpsk Bn1HoNT1uPf+XAUumTTDRc+SAKswQx7PmxYWK1xzEjoE8hRqDagIO88Kt4Sg8tBMql4D wN9Q== X-Forwarded-Encrypted: i=1; AJvYcCVCxrc4GncNLEk43daeCSvdp+Lx/I8z+Scuz26NAU3pvheFrnQgjSilanRZgDdB9qON610nPPPW+hKE@vger.kernel.org X-Gm-Message-State: AOJu0YwWOqyrFvuIRWn3xWVTW0sKeK8ZGvOLzZ/KSpGeSNXD6aoSLEAa H2ka3AyvGJiIziSF0LK4UkaIKMoT1LT2nfXIfqE2MP1SMPkp4N6PKrh6rYhF6rlk5SfU336uMm3 9+wdSEg== 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> Precedence: bulk X-Mailing-List: linux-csky@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Content-Type: text/plain; charset="UTF-8" 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/ -- 2.47.0.105.g07ac214952-goog