From nobody Wed Dec 17 17:43:16 2025 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 781272D8DCA for ; Fri, 3 Oct 2025 02:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759459180; cv=none; b=VrY+Qe+plLupiX0ilNv2U4tLtdO+15Od39XSwnNqDTqWF5i5SEOzrMtTx/DK+YH8Yjin4+C6Eb1iAYYhJeINkRz+uKcpiD9HLI1alASHPqWnTCpx4hAgjO4jSvtTb9JPhzDM1XhP8hmIAnFmpRAGKXRz30Uv4YbjPB8Y00WJiTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759459180; c=relaxed/simple; bh=J71AyNuQqq2QJulRcO7DjJHMsa/yUXIl0zcyYK2F0r4=; h=Date:Mime-Version:Message-ID:Subject:From:To:Content-Type; b=ZEQ2ptPNt3GYRupGn1xC7ooQphK0e81wafIH6ST/9oAN+kQq4dW5sfRPOEHy2c1psGgYNpiXTBG264ImQWOmswTwXykzgsIHk1sdS8X94JrXo6mIbkzTEp9FCLE1RGXPPyuSXteYHC5akbGZPlN6JOTv6rYcITaR1sUq/XTOj74= 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=YjBVZfAQ; arc=none smtp.client-ip=209.85.128.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="YjBVZfAQ" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-752eb824a20so24114267b3.1 for ; Thu, 02 Oct 2025 19:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759459173; x=1760063973; darn=vger.kernel.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=4B6fWfraE2K9oqPlfcp2aiVhusV/KAzJOMZ/ZtABiCg=; b=YjBVZfAQoAYLG873Ok3XN8/IQaIN+UBM8EyqBpLdpJkHsAHkPkBk8Wv0UVXbfkysCq 8t47xwiZyjXkQSO9I25/7nKFrlbY+g8Y+hMk1a9kwkcOOOxnhn1R1PaJkC9k2JQwo1fT kR9dv0/emJSQXncbbdEz55fTjw/JzyQxvUt945LU5tKsGptV4PqAxIPRF2J/45tL0vdk wfHhpr1Qa28PpsauyLO5IyHVCV1JS8TKyuhGHL8gCzfXi4XkRmtUqqUytF1kHbSADtWv EHf+EnvcttIHiSkq3WobLTr3PNjU9upOIXyNK8oqsm76PTE9guzdxF43Q9vAkbTS7QLx OpgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759459173; x=1760063973; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4B6fWfraE2K9oqPlfcp2aiVhusV/KAzJOMZ/ZtABiCg=; b=RZ0lrG3qUYHk1E1N9LoP72i9q7eIS8JBTeP0P1FWRZUqiJCipmNATBionsA23iVRNA KbvWuy7ex/WPliuTRramjIPlntZyMWThV6IleG4Tkh0Cd36GNgBvMnljwjCtce4PNy6x GhMMjDxBMpRA4CNuHAyZXui1F7DtxokXG4SCI7oS2dpDfNMBk70WI1jtnZ7Lw6xh4SuJ vzPF8FvrLgXOJrMfTguGY6CzKynDnNiTwFpv3UlcpMUOpY00Uieffkh/Pw2WNc+dcoEg 2ZktWR09vqftCrWk16to8FnFIW/d9C48AurCpa/u2SKKmf1WWKVGO2Hu3kAYKhoiHn4h acbA== X-Forwarded-Encrypted: i=1; AJvYcCUjXFrq2p+tDbyD+FYwMr/jLLlDl+VP6Lrbdy8/3bS6yUD9eo/xTrO+D08gMd//mG9qIKBfPvFsElDVvLY=@vger.kernel.org X-Gm-Message-State: AOJu0YxqB6BtyJquovwKw3XxbUbx1bZsSAGk4BuuJhXqO9ZzdcLiAVzs xY/EiWltZ1TwrcuSXRtY2vT9Wth0XZU7/nmyO93wb0AKFUvaDV3XI4XhyUgfqNZR0qL+YbQpknS d0oq9SyOEAA== X-Google-Smtp-Source: AGHT+IF0ZUrMyiKEH/eYEEJwXjflgZ34LPGI0kPZVwKzq+pfv/S8eQNepCuxypN297iirr6ZeWLvl7tS4VlE X-Received: from ywbhx3.prod.google.com ([2002:a05:690c:6583:b0:77e:8503:76f]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:690c:6b09:b0:74d:b11c:d372 with SMTP id 00721157ae682-77f946a3c65mr26024017b3.26.1759459173339; Thu, 02 Oct 2025 19:39:33 -0700 (PDT) Date: Thu, 2 Oct 2025 19:39:28 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog Message-ID: <20251003023928.2433640-1-irogers@google.com> Subject: [PATCH v1] perf build: Move libopcode disasm tests to BUILD_NONDISTRO From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The disasm feature tests feature-disassembler-four-args and feature-disassembler-init-styled link against libopcodes part of binutils which is license incompatible (GPLv3) with perf. Moving these tests out of the common config will help improve build time. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 6e7c057b8ecf..0d4a62869855 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -933,6 +933,14 @@ ifdef BUILD_NONDISTRO else $(warning Old version of libbfd/binutils things like PE executable pro= filing will not be available) endif + + ifeq ($(feature-disassembler-four-args), 1) + CFLAGS +=3D -DDISASM_FOUR_ARGS_SIGNATURE + endif + + ifeq ($(feature-disassembler-init-styled), 1) + CFLAGS +=3D -DDISASM_INIT_STYLED + endif endif =20 ifndef NO_LIBLLVM @@ -1024,14 +1032,6 @@ ifdef HAVE_KVM_STAT_SUPPORT CFLAGS +=3D -DHAVE_KVM_STAT_SUPPORT endif =20 -ifeq ($(feature-disassembler-four-args), 1) - CFLAGS +=3D -DDISASM_FOUR_ARGS_SIGNATURE -endif - -ifeq ($(feature-disassembler-init-styled), 1) - CFLAGS +=3D -DDISASM_INIT_STYLED -endif - ifeq (${IS_64_BIT}, 1) ifndef NO_PERF_READ_VDSO32 $(call feature_check,compile-32) --=20 2.51.0.618.g983fd99d29-goog