Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4315412rdb; Thu, 14 Sep 2023 20:23:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ17wS4zyhMgOG1QeICyLBU+sHMbhRU5TZHP0I7dx7yv1+regpOM4c9QOA+tvhYmGZ2gmQ X-Received: by 2002:a05:6a00:124a:b0:68f:e121:b37c with SMTP id u10-20020a056a00124a00b0068fe121b37cmr526463pfi.4.1694748184381; Thu, 14 Sep 2023 20:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694748184; cv=none; d=google.com; s=arc-20160816; b=HwdWIO9UTxQPSomNz+G+CpjQWHLYmKZ6JCmArZKKT/ey71FTT+MdHBuv1urvHvWwTw wjbQLcNRboKZCG2BXX6yP0YK1e8XKvc/L9hCitWnGee4Ru/bX2wy7E3kpzuaI2EYHEVZ bH9w5sdv6Aii11kJdoxr1Q5KP1eKZONBTY1HN63UaUEk67aUYeBcKMXqMiBloXSTj1hQ Ae5fl3jxCPXk9U2aVEvPv3BhdxUXQ8DiAcsmSHHidubsC8bwIYnsx7e/NiqLNcpTf6Mx 4LH7EsfGCI+BqxDz5MooGNPDen0I7RxyMl2kiNmuAVj/0uTt64Z6gpB6jbVKYFTfWNcU fKGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=YO3ZTyHFm+00gT95r949gZji8+XYvbCsq+dhsmDC+Ok=; fh=tjrY80I0fwXd25t4tV2P9u7KNT98jWe3hbSnhGgIF2M=; b=lh8Ys8xAeDAZGv2EoMogwCPInWg0xCuW1rmFZJceR25Z9vPJgzjVNPOQklSMu7D+kv R/Z9LK7NE9vfB9FR4xmTd6FGThWlW83W4qCfDt8XcFlGA8OzvZTPIRT8qwnzDlo0HE9+ +//DQBgxqR3AzjbjM6bxOJNYb/duM7sEzBq39gaJLA9I0B6X0Bx1b6ecZF3EKmfq2Nxi 5gyWFiMdTDZWBXBkyoRXIFSrDE/NU8Hv3nQXjBJUei+nSveubZTlijq5klprcwrNR9CN h5cb3S0feTFcOHOuQwn7KW8og7qf/bBq8PQPMswlIRxTmgZCfzm98tTRbcBk1QL3YwGq zTkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=E2tqCAxP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d9-20020a056a0024c900b0068a3da84110si2617454pfv.333.2023.09.14.20.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 20:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=E2tqCAxP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 421D0833C67C; Thu, 14 Sep 2023 14:20:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbjINVUW (ORCPT + 99 others); Thu, 14 Sep 2023 17:20:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbjINVUN (ORCPT ); Thu, 14 Sep 2023 17:20:13 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47EAB2726 for ; Thu, 14 Sep 2023 14:20:09 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-59bc02af5dcso20225767b3.0 for ; Thu, 14 Sep 2023 14:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694726408; x=1695331208; 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=YO3ZTyHFm+00gT95r949gZji8+XYvbCsq+dhsmDC+Ok=; b=E2tqCAxPd3bvCjWpCu1Mdk81qd7sNmUQscYrFGIN4qeq1ugNv5edtqC0V+gUnG2fpl OguXR94Cg1gct+QfZy2nG6MO5lGlZiygLIuJ+Wp4R04WhrShZRFyGi4Zz3y3jh34gbnH QYyrRBbQp6YRVXaL7cjm28TvkQcTnFk6Qovm6GL7LTEChcgyygRulO0m0AYF/wAAgXL9 r6xF1iur7uNSFI7cBbSI8qhlDDYkrtXmDH61YJ6sOUdoGuhe8bAvXVStv6UYQHlXoEHN P6kUnKPUoAAoOLC4dnauYDG0DpxxB0VSJj/fIEb1z8BbaoN4+t7cfbw5x7+YaJiBpl87 J2oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694726408; x=1695331208; 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=YO3ZTyHFm+00gT95r949gZji8+XYvbCsq+dhsmDC+Ok=; b=i4SyNZE8KsDUQ5sS1abCesCyUUj7iBV1tvKxjbONw31cTHrEnvCsC9+SJtRDdB8dYH w73ZFdyDExcGs7UbelSne+qNaRwnvX+6s2BQCCRu0KaHujHLZKgpD1lMQYwW2hQ2wjoe N2SvEE3vtO597aDayLrL4DJe+g60DrWAipizevzLk21YDi++PKtUytpbj/EB4x1vWzDN czVYtwh/zAmSub/+ilnerAuk8eQ/zUH4dg3O2wkuOcrnn6oB+yMZ7UN3NvrDfJFjiaJO AdOr2goDNsyhEUgYU03kYpFIGLFY5MdNRMuJ9XjKZFVdujXp/4DExRHthV0NrGlbz8dc H73Q== X-Gm-Message-State: AOJu0YyTvQyhCIYfgGNr6RuaXZdyu3XUb3UDuaRP83fFykvWTAoGTIVL oZR8jI4vAEFDUECdIztV7KzzkVhNyULg X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:5357:1d03:3084:aacb]) (user=irogers job=sendgmr) by 2002:a81:af11:0:b0:589:a5c6:4a8e with SMTP id n17-20020a81af11000000b00589a5c64a8emr175716ywh.1.1694726408395; Thu, 14 Sep 2023 14:20:08 -0700 (PDT) Date: Thu, 14 Sep 2023 14:19:48 -0700 In-Reply-To: <20230914211948.814999-1-irogers@google.com> Message-Id: <20230914211948.814999-6-irogers@google.com> Mime-Version: 1.0 References: <20230914211948.814999-1-irogers@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Subject: [PATCH v1 5/5] perf test: Detect off-cpu support from build options From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nick Terrell , Nathan Chancellor , Nick Desaulniers , Tom Rix , Andrii Nakryiko , Tiezhu Yang , James Clark , Kajol Jain , Patrice Duroux , Athira Rajeev , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 14:20:21 -0700 (PDT) Use perf version to detect whether BPF skeletons were enabled in a build rather than a failing perf record. Signed-off-by: Ian Rogers --- tools/perf/tests/shell/record_offcpu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/record_offcpu.sh b/tools/perf/tests/shell/record_offcpu.sh index a0d14cd0aa79..a1ef8f0d2b5c 100755 --- a/tools/perf/tests/shell/record_offcpu.sh +++ b/tools/perf/tests/shell/record_offcpu.sh @@ -28,7 +28,7 @@ test_offcpu_priv() { err=2 return fi - if perf record --off-cpu -o /dev/null --quiet true 2>&1 | grep BUILD_BPF_SKEL + if perf version --build-options 2>&1 | grep HAVE_BPF_SKEL | grep -q OFF then echo "off-cpu test [Skipped missing BPF support]" err=2 -- 2.42.0.459.ge4e396fd5e-goog