Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp881103imj; Fri, 15 Feb 2019 08:18:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ8LH4H06StssR8VwnV0rSbljx3pg4n5ZcQKVTaeb45WRYwSkzVfBVQBLIXgKdDsRrOIlkv X-Received: by 2002:a17:902:9a03:: with SMTP id v3mr10921026plp.187.1550247526809; Fri, 15 Feb 2019 08:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247526; cv=none; d=google.com; s=arc-20160816; b=orcyDj9cNISrahsW+WXARHQ2su567eb2qMZ9zDyq2xoUr7QkxwpgemJB9In/LZ3vj/ aD5cAqlLoZH/gLuqH/AEK31fdIEYn59Iad8OtPDXAJfmvIWkQzLiUWx45f64pWX6WR8t vWDTB4Hy1aFgxrwaYF+0edY5ruZ3BaaUwk/wNZTWZYL5bBzW3acMl/d5huxDBi60cVNh 0Sj2Fd7Ds3Mxc1oboaMMLTx6I46b2CZejKdHRX/cIul70S5HEr3CJztQtH8rNj5ojtP7 HToA5hzfffwwGCTPPmlLMINp5LL1nqNV2+Pe48wJpXHIhIAZL5DGQFthr8xJLagODu5y cSBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iaHGUNKg8i0vYLBgUYfl3StVBo6VlAX0vE1pzfTEDe0=; b=pONphOXVp48eEDDNX0ZRl5hlgwfmCHYNmQ3fug2oa4Yvv8mhEjOipf8xRKb2wqb98G Iph23tLXlSOlG8LDHrLyuADFf0R4iz3EYzHXmvzaL+WAwfrgEEmj484C8wmcjuTj4SAX 4IZ27IqmMbaFP2uveK9CGSZn7Oa2jLA1aEuTaIozZloONyCMYWCOHl/RJOnB+RiAnVLQ AbvdOJPQINzJt7ipcIpGZ+qate6O3kUIcA3C00LfjGi4tRBBBJNLutoU/afXJfW0fmtj +ua2skpp/f7LGgWb/OzPrA00krxoESzC6fVMRjvU6tuwWBH3u3hhhwXY/FskBCF+87ei j0+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sc2cBYM5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si373368pgb.207.2019.02.15.08.18.30; Fri, 15 Feb 2019 08:18:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sc2cBYM5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404019AbfBONnd (ORCPT + 99 others); Fri, 15 Feb 2019 08:43:33 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45793 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbfBONnd (ORCPT ); Fri, 15 Feb 2019 08:43:33 -0500 Received: by mail-lj1-f193.google.com with SMTP id s5-v6so8358201ljd.12 for ; Fri, 15 Feb 2019 05:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iaHGUNKg8i0vYLBgUYfl3StVBo6VlAX0vE1pzfTEDe0=; b=Sc2cBYM5RpQ+l1FKZj9xkF0htsfP8nTPHMCKT8LH5jFi4F+Jsq/+bZ+v9aqEyawk4Q Mgm6yxdxYscb+zju6y/p/CoZ0Kf6ajFqqXjkLWl8PTk5mhLdNJaa1yHtKJOQlWkWdH6L JyTG0itpP2A7K2uvWUJdL5e+wWngvzQas7B3FnRSgtOa81hfSb+ZHQqvbCUmwgVajvUe wjFBPwfwkbu+VDWZT+IC+S/bZxmaPWIToGz8gSZtYb+thYHV9GQttrNmJiFCol5DuWxP h3KIzngxZyYuky9kOHD/XplbyqRBi1EJsrryG/9yo3RPmDTUY5JeK5YuQ5CNgedJSgwe 0UHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iaHGUNKg8i0vYLBgUYfl3StVBo6VlAX0vE1pzfTEDe0=; b=KLCUJzEhAr2XYoLY2pRcjJxNKQEga//VompCLgbwV/hzFPx4bXq0pcTLSX5fBRlrQS Ah/hkwfPCJ2HY9/4tGkmsK6JmwgZcyZkk6m26vcCPnv5d1SE/HRxyVz5968+aKbv/ejk PbTMMoxzgE1gjuI0PjSAEXEW5Xp5Hg5lU7dgeLgtbqpieClPj8iznEzu/ztbNp0MYu5Y L8+ZWc4jeUZsrn2GhtnFrwLXxJB0Akly/j6o3hCj0tG1DrkN3Ffbd1Xm2Njf+s21omZo HKPqG+1DApu8q9PdmQ7nJgqgIlT2qMxnFSnNKU6MXdnwcveAkfjMIiv3aoxpuNk5ICHH E2RQ== X-Gm-Message-State: AHQUAuYibTJ5r8+yhoKDjpiYjyv1lc+F17j1R5nHlYhoaLYEQJwrCdk1 Wo/aWgaXK7qiuoTSGblfDiNhk6+rh6w= X-Received: by 2002:a2e:81a:: with SMTP id 26-v6mr5746253lji.14.1550238210349; Fri, 15 Feb 2019 05:43:30 -0800 (PST) Received: from localhost.localdomain (mobile-access-b0481f-5.dhcp.inet.fi. [176.72.31.5]) by smtp.gmail.com with ESMTPSA id k3-v6sm1255020lja.8.2019.02.15.05.43.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Feb 2019 05:43:29 -0800 (PST) From: Tommi Rantala To: linux-kernel@vger.kernel.org Cc: Tommi Rantala , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Hendrik Brueckner , Michael Petlan , Kim Phillips Subject: [PATCH] perf tests shell: Skip trace+probe_vfs_getname.sh if built without trace support Date: Fri, 15 Feb 2019 15:42:46 +0200 Message-Id: <20190215134253.11454-1-tt.rantala@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tommi Rantala If perf was built without trace support, trace+probe_vfs_getname.sh fails: # perf trace -h perf: 'trace' is not a perf-command. See 'perf --help' # perf test 64 64: Check open filename arg using perf trace + vfs_getname: FAILED! Check trace support, so that we'll skip the test: # perf test 64 64: Check open filename arg using perf trace + vfs_getname: Skip Signed-off-by: Tommi Rantala --- tools/perf/tests/shell/lib/probe.sh | 5 +++++ tools/perf/tests/shell/trace+probe_vfs_getname.sh | 1 + 2 files changed, 6 insertions(+) diff --git a/tools/perf/tests/shell/lib/probe.sh b/tools/perf/tests/shell/lib/probe.sh index 6293cc660947..e37787be672b 100644 --- a/tools/perf/tests/shell/lib/probe.sh +++ b/tools/perf/tests/shell/lib/probe.sh @@ -4,3 +4,8 @@ skip_if_no_perf_probe() { perf probe 2>&1 | grep -q 'is not a perf-command' && return 2 return 0 } + +skip_if_no_perf_trace() { + perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2 + return 0 +} diff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh index 50109f27ca07..147efeb6b195 100755 --- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh +++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh @@ -12,6 +12,7 @@ . $(dirname $0)/lib/probe.sh skip_if_no_perf_probe || exit 2 +skip_if_no_perf_trace || exit 2 . $(dirname $0)/lib/probe_vfs_getname.sh -- 2.20.1