From nobody Mon Feb 9 05:40:01 2026 Received: from mail-dy1-f202.google.com (mail-dy1-f202.google.com [74.125.82.202]) (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 DFCAD330B15 for ; Sat, 17 Jan 2026 05:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768627807; cv=none; b=dOSRFZWrO7eluMiKGCgmlVJZqqyeUGzKWpjYcE3rEP0/szTomkrCuYMz6iiuD/9wDUnYkWQuIQ4qv814F4dGUCRxaySbRQAW9k33SPS44FOTIp0RzF6dxfXT/R5zcSSMS30zVHei1AfjfKg6YjCdrXoVU/co810HiqaCoRCKFkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768627807; c=relaxed/simple; bh=0CymPKudGe+KI6Wn4idJryFK+62VhKG4sXlkbqlHNWA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=pl0Zom3mEBXL373igw3rX41z1arKLlGNSj0IvOcxrQRvkcvETGe6PHsHxTBub0NMiM0q5UsP3s2cGu2RxJlkPFX2eo1chfRcxurfWJmkaW/rVYZhEuYyH8VRQ8CCI1sGawEalwgp/W9OmrUvtuCw/wWFaqrGHoAecp2T2wzcq6g= 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=dviA2s7A; arc=none smtp.client-ip=74.125.82.202 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="dviA2s7A" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2b6a8afb513so3064656eec.0 for ; Fri, 16 Jan 2026 21:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768627799; x=1769232599; darn=vger.kernel.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=w/cI6wzc88dPba4Z3EWyEhx9YKJRNqyLJPumk+e8HfU=; b=dviA2s7AH5fqbMQ6hvsAk7KOaRULGBQ0N8z4yu8Ws4rg8x//KfiUTaf+LJ4w+LDOI5 b4/MDS1AbZrB0Vn/vTxE5M3xFaqQF2fEV5jcLxA1cqCuyW6BixNRlS5EREenT59ra+w/ KFKP0/7hvIGRYxYilpX+q0CL45R7V8h+FERgnL2IrathkiMQJgYFE5hbqEAXJHVKBQt+ rw+WYemS4wVFaX5gKeKGN12bG3wrMXWofKFJInTtViRR40DUbxNB+hCbGajzebql83/Y r65AjR30r0cor19+W3CC/3+iunaT5XubBYB4uSIdDmQnEPp3rnOlx9rLr5vJuHJXL/9F lyTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768627799; x=1769232599; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w/cI6wzc88dPba4Z3EWyEhx9YKJRNqyLJPumk+e8HfU=; b=tj2624p7odE3+FxkRygm2PBEmNQ7A2Jf5fdTPizuOs9VLmFK2zWzqPsdO5hWaTTFgP 5/3C8s6IT8KndCfnr1WS/Ba6Pj/E9Rd4lvR63KkrfoMw4XcV3mONdtI0Q/vLa2daA5fZ t7Cg9OljqG9ASwGQnP/6Q+Cn9rtcctpN0KQegbvzlJHK9OauqrbSwril/N9XWzbql9qd r0/WsuDwn12yNWXNhK3DaKDqMyAx6DMcHSq08QpRO2EfLavNPe8wyrJ9eQyTq3ucd/// Lr4fW33AYs1yQ/kWEaIXckCopK7K3RYmtKuXhwziaJFu7Elttf6iFRGuH8rEGwFY+x9u Lxmw== X-Forwarded-Encrypted: i=1; AJvYcCVxWxA2GgUpBi6tgQ3BHVCJiqXQgPl70VpbU62R4NywW1GzCDCq+232brmDKNObePcdGQxLcS/I0HaQBKw=@vger.kernel.org X-Gm-Message-State: AOJu0YwhDeu0cSblPxQ/tOlC784hR4BxU2Dhtc2Yci+AfLbRVCxQqere 7XD80AhqD2VqXdJky/sOdYTRenYu8XLvR9+qD0AUM3V+p4wpePNv6xtl3iLtCUW1U1k2bmCRXDl 1sGHSW64eEw== X-Received: from dybmj1.prod.google.com ([2002:a05:7301:e01:b0:2ac:3545:743c]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:6d1f:b0:2b0:4e86:8157 with SMTP id 5a478bee46e88-2b6b46eb100mr4487390eec.17.1768627798660; Fri, 16 Jan 2026 21:29:58 -0800 (PST) Date: Fri, 16 Jan 2026 21:28:47 -0800 In-Reply-To: <20260117052849.2205545-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260117052849.2205545-1-irogers@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <20260117052849.2205545-22-irogers@google.com> Subject: [PATCH v1 21/23] perf build: Remove NO_LIBDW_DWARF_UNWIND option From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , John Garry , Will Deacon , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Shimin Guo , Athira Rajeev , Stephen Brennan , Howard Chu , Thomas Falcon , Andi Kleen , "Dr. David Alan Gilbert" , Dmitry Vyukov , "=?UTF-8?q?Krzysztof=20=C5=81opatowski?=" , Chun-Tse Shao , Aditya Bodkhe , Haibo Xu , Sergei Trofimovich , 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, Mark Wielaard Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Libdw unwinding support is present for every architecture that has a perf_regs.h - perf registers are needed for the initial frame to unwind. Elfutils also supports sparc, arc and m68k but there is no support in the Linux kernel for perf registers on these architectures. As the perf supported dwarf unwinding architectures are a subset of the elfutils ones, remove NO_LIBDW_DWARF_UNWIND as there isn't a case of elfutils lacking the support need for perf. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 19 +------------------ tools/perf/tests/make | 3 +-- tools/perf/util/Build | 3 +-- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 6f2c7bd36e74..5e4ae775987f 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -118,14 +118,6 @@ ifeq ($(ARCH),mips) endif endif =20 -# So far there's only x86 and arm libdw unwind support merged in perf. -# Disable it on all other architectures in case libdw unwind -# support is detected in system. Add supported architectures -# to the check. -ifneq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc s390 csky risc= v loongarch)) - NO_LIBDW_DWARF_UNWIND :=3D 1 -endif - ifneq ($(LIBUNWIND),1) NO_LIBUNWIND :=3D 1 endif @@ -456,7 +448,6 @@ endif ifdef NO_LIBELF NO_LIBDW :=3D 1 NO_LIBUNWIND :=3D 1 - NO_LIBDW_DWARF_UNWIND :=3D 1 NO_LIBBPF :=3D 1 NO_JVMTI :=3D 1 else @@ -504,10 +495,6 @@ ifeq ($(feature-libaio), 1) endif endif =20 -ifdef NO_LIBDW - NO_LIBDW_DWARF_UNWIND :=3D 1 -endif - ifeq ($(feature-scandirat), 1) # Ignore having scandirat with memory sanitizer that lacks an intercepto= r. ifeq ($(filter s% -fsanitize=3Dmemory%,$(EXTRA_CFLAGS),),) @@ -757,7 +744,7 @@ dwarf-post-unwind-text :=3D BUG =20 # setup DWARF post unwinder ifdef NO_LIBUNWIND - ifdef NO_LIBDW_DWARF_UNWIND + ifdef NO_LIBDW $(warning Disabling post unwind, no support found.) dwarf-post-unwind :=3D 0 else @@ -767,10 +754,6 @@ ifdef NO_LIBUNWIND else dwarf-post-unwind-text :=3D libunwind $(call detected,CONFIG_LIBUNWIND) - # Enable libunwind support by default. - ifndef NO_LIBDW_DWARF_UNWIND - NO_LIBDW_DWARF_UNWIND :=3D 1 - endif endif =20 ifeq ($(dwarf-post-unwind),1) diff --git a/tools/perf/tests/make b/tools/perf/tests/make index 36411b4b6d2b..767ad9e147a8 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make @@ -83,7 +83,6 @@ make_no_demangle :=3D NO_DEMANGLE=3D1 make_no_libelf :=3D NO_LIBELF=3D1 make_no_libdw :=3D NO_LIBDW=3D1 make_libunwind :=3D LIBUNWIND=3D1 -make_no_libdw_dwarf_unwind :=3D NO_LIBDW_DWARF_UNWIND=3D1 make_no_backtrace :=3D NO_BACKTRACE=3D1 make_no_libcapstone :=3D NO_CAPSTONE=3D1 make_no_libnuma :=3D NO_LIBNUMA=3D1 @@ -120,7 +119,7 @@ make_static :=3D LDFLAGS=3D-static NO_PERF_READ= _VDSO32=3D1 NO_PERF_READ_VDSOX3 make_minimal :=3D NO_LIBPYTHON=3D1 NO_GTK2=3D1 make_minimal +=3D NO_DEMANGLE=3D1 NO_LIBELF=3D1 NO_BACKTRACE=3D1 make_minimal +=3D NO_LIBNUMA=3D1 NO_LIBBIONIC=3D1 NO_LIBDW=3D1 -make_minimal +=3D NO_LIBDW_DWARF_UNWIND=3D1 NO_LIBBPF=3D1 +make_minimal +=3D NO_LIBBPF=3D1 make_minimal +=3D NO_SDT=3D1 NO_JVMTI=3D1 NO_LIBZSTD=3D1 make_minimal +=3D NO_LIBCAP=3D1 NO_CAPSTONE=3D1 =20 diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 3cb1edd263cf..c30ff257f8b4 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -223,9 +223,8 @@ perf-util-$(CONFIG_LIBDW) +=3D dwarf-regs-arch/ perf-util-$(CONFIG_LIBDW) +=3D debuginfo.o perf-util-$(CONFIG_LIBDW) +=3D annotate-data.o perf-util-$(CONFIG_LIBDW) +=3D libdw.o +perf-util-$(CONFIG_LIBDW) +=3D unwind-libdw.o =20 -perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) +=3D unwind-libdw.o -perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) +=3D unwind-libdw-arch/ perf-util-$(CONFIG_LOCAL_LIBUNWIND) +=3D unwind-libunwind-local.o perf-util-$(CONFIG_LIBUNWIND) +=3D unwind-libunwind.o perf-util-$(CONFIG_LIBUNWIND_X86) +=3D libunwind/x86_32.o --=20 2.52.0.457.g6b5491de43-goog