From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f73.google.com (mail-dl1-f73.google.com [74.125.82.73]) (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 C14A2381B0D for ; Tue, 12 May 2026 21:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778622993; cv=none; b=HBN+YwWfaId1wNb9jkI204Rk8yUvf4jwhU91PmnvOWgPWn0+NDVeqP2q06eSS6lso44gxtKM21JXTFSbvfbzIV34lPVM6Ab1YMfSI+nnw2KeQJ4jMk0PuV6xxxSf6JMsX/tDmcbx7q74uFj+xf0H8Ds99G1Ff53g9elHkuPOgpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778622993; c=relaxed/simple; bh=lZQ5R82Go8EjmhEhW2KVTtlL6ZFkouEuVxK8QJhRkE0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=tW7wKBq3L2BTAQhgFL42paAAjAxh0+Rrh6SLUW1R/XJLjzNV83knMDNDR6Pv8M0b1c5XhqIKTYeAe7C/SjIoeyQ+dh2VvTNz1J6qgQUj3IzppnNgqC1c+lY2UtieErNSgDJ3BTciJJ+ZN3blTlHcitnUep53iSBSEOv8ULMN9So= 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=MxdBluAE; arc=none smtp.client-ip=74.125.82.73 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="MxdBluAE" Received: by mail-dl1-f73.google.com with SMTP id a92af1059eb24-132c3280e03so548797c88.1 for ; Tue, 12 May 2026 14:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1778622991; x=1779227791; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=DkxCYoF3euI1RKVY7jskhywtHHrXaSIyAdGraG5hGHw=; b=MxdBluAEDVnfpov6EVkNplS6zZJBYIFlSaXgLDydjXSgx4AUVBO8nfBOYqqfVpgCxY 7DkgDs6WLiOnHsmM80J2eCtSe5uPItNOPZRimzXu1+vuzgmezmNh+zmg7w4/II916Hvp UeMjEK5z0VsHxk0mgDg46pbepNLjq6FO9cWWem8XCJdNnSivIMIQsdOfVhC07vtR1YL2 H2F0pdXX65EMqgg1wCEY3VS0xRxQ2ReIeYAJ2/P22Su/O3QXG/Y01pje/5UmPEP0t0mP WLBHJoPw1ry0+RljI8OafTY39LLasBmSv7xU6rdE5FC7SmVU+3YzWJuME7NgK+12ZOPq R3IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778622991; x=1779227791; h=cc: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=DkxCYoF3euI1RKVY7jskhywtHHrXaSIyAdGraG5hGHw=; b=jcmH9oPlcCNbIhzOQ/d9E/5Cd8MRns2aAg6jL14Y9TzGEI3eIOCtdIENq6LDY2BJmd Wg21Y3Qy3nD0ZvkUAct0L1ok6qU8ueePFLGlJfRt2DtNmnN03yaqp+g6AonQUi43a8Zx orRWRt840wDTFCEtIOTHcp2coGmsP1QI8xwFCFT525cApkHcxmnHG4ZpjqdZBAqqBaYm GFhkUe3awJ3BmLpYU9RjQ18R0XF1h6C+OadESopkUdct8RvIA+PzQoq6fLb47g0GtBGY hTQr6mhLB3nXoFp4lYH2cpKkxJe8Ey5PcOOxj945ezlzOWQzfxVLpxJrpv+BjRt7CUzY MrfA== X-Forwarded-Encrypted: i=1; AFNElJ+AB6Nkb9vZ67JiGo8MJjH1MXvsehcH6Zx5AYpn5XBwwOCTNa8t9Pz6HrYz9yPftg2TXNPOMDC/YSuUSDM=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4t81HP0yALAfUsgYDfAi9KromqaUBFoIEhZ/Oj5apX1yzZqC5 Jk/6mjq/uHU9k5E8EMgfxRHOrdobusPakOh20wt5hdsqdx8hUsWHV+xXEowyz4Xy8scyOZr3PO7 uu17miNRkWg== X-Received: from dlaf15.prod.google.com ([2002:a05:701b:240f:b0:12c:b3eb:b31e]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:4586:b0:133:12af:9ce with SMTP id a92af1059eb24-13436baaf07mr403196c88.35.1778622990600; Tue, 12 May 2026 14:56:30 -0700 (PDT) Date: Tue, 12 May 2026 14:56:20 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.54.0.563.g4f69b47b94-goog Message-ID: <20260512215621.468685-1-irogers@google.com> Subject: [PATCH 1/2] tools build: Add libbabeltrace2 feature test From: Ian Rogers To: irogers@google.com Cc: acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, derek.foreman@collabora.com, james.clark@linaro.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mathieu.desnoyers@efficios.com, mingo@redhat.com, mjeanson@efficios.com, namhyung@kernel.org Content-Type: text/plain; charset="UTF-8" libbabeltrace2 is a rewrite libbabeltrace from 2020, add support for detecting it so that perf builds may prefer using it to libbabeltrace which dates from 2010. Signed-off-by: Ian Rogers --- tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 ++++ tools/build/feature/test-libbabeltrace2.c | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 tools/build/feature/test-libbabeltrace2.c diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 2f192d3bf61b..5425430582d2 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -114,6 +114,7 @@ FEATURE_TESTS_EXTRA := \ gtk2-infobar \ hello \ libbabeltrace \ + libbabeltrace2 \ libcapstone \ libcheck \ libbfd-liberty \ diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index 704c687ed3ad..9cf00d3fbefb 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -49,6 +49,7 @@ FILES= \ test-stackprotector-all.bin \ test-timerfd.bin \ test-libbabeltrace.bin \ + test-libbabeltrace2.bin \ test-libcapstone.bin \ test-libcheck.bin \ test-compile-32.bin \ @@ -311,6 +312,9 @@ $(OUTPUT)test-timerfd.bin: $(OUTPUT)test-libbabeltrace.bin: $(BUILD) # -lbabeltrace provided by $(FEATURE_CHECK_LDFLAGS-libbabeltrace) +$(OUTPUT)test-libbabeltrace2.bin: + $(BUILD) # -lbabeltrace2 provided by $(FEATURE_CHECK_LDFLAGS-libbabeltrace2) + $(OUTPUT)test-libcapstone.bin: $(BUILD) # -lcapstone provided by $(FEATURE_CHECK_LDFLAGS-libcapstone) diff --git a/tools/build/feature/test-libbabeltrace2.c b/tools/build/feature/test-libbabeltrace2.c new file mode 100644 index 000000000000..0c964994a34e --- /dev/null +++ b/tools/build/feature/test-libbabeltrace2.c @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include + +int main(void) +{ + bt_graph_create(0); + return 0; +} -- 2.54.0.563.g4f69b47b94-goog