Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp531702ybg; Mon, 1 Jun 2020 07:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRlOH73rmHzKFolJjCE5MvjqkmMAkx3fU/1P4p+P/nzAcVyuMyErgLAj1aeuff5OZvEKLt X-Received: by 2002:aa7:db4c:: with SMTP id n12mr21175647edt.99.1591022697509; Mon, 01 Jun 2020 07:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591022697; cv=none; d=google.com; s=arc-20160816; b=K3wU+sSd7zuvkqFcv/HRSaGv8n+3RFHTyrGvezZVs5Zk+wcTGJcgwVlJHPndlP2+xN o5d1GwQgB0bsdqvac1JZN7xbw+dRpNqDBRrKfGlI1fWayxCGHLn9gsDbNi2CrgR5jTIY uV3DRxPo639n9e7EWLqrw+oamMvsa+B9JZFXXrpacpNU1EAqrvzYTEJMeUDqtk1W1YeW y22qwG8+NHT7MnjXPTiwJoQFy2+p/2j1VNb7rGAwAM08OYPhj2uEdAfLNoSuChpnIZ8M O3YbtE7ecqfaSMdRSF22Yi5gqslXg84lwZMAJCJxHI1LVuEmGp28ZgOKExeGjd+NyYfh 0pZw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8ipnq+pvG7mOiv8xwm1h5/ygBV9gBMzFbsp4uiZwBJ4=; b=hIGWYXshX+G8p/Y+SScDAAFEU6hPtdzxc6AZ/HI53Omw09KQYbO80gc3/pcZNJqcgd joLwutdMPIYjVeCGpp9bDZfu5VKEpOY7lm1mZZSEj1m5zXZObTR+nqzwgGIAV2Rh3nzZ zN53b+5Kd2clyYRCIcDj3PbWT1u/lIM4V0w4yAtGeUOMzjSlWIfK4PNtV3lTTpFqkvQF gNcOcIwVF0NwtGhdkUHfBzU7J1Dh7s2hVinz4aIPnJ/B/JDaUXbo3Y8VUp8Vguc36Yxi jp38N0GlhQQX5tqRzlxScgWpl4YSd0IaTjV+AhTg0Wids3nOFfffOwTRn66G1petFBoC vw1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rhfhP22t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l26si10903197ejx.390.2020.06.01.07.44.34; Mon, 01 Jun 2020 07:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rhfhP22t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbgFAOm2 (ORCPT + 99 others); Mon, 1 Jun 2020 10:42:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:50294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgFAOm1 (ORCPT ); Mon, 1 Jun 2020 10:42:27 -0400 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5874C207D5; Mon, 1 Jun 2020 14:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591022547; bh=1YExi40xGXdY3c2aLLYLqs5VAs1fWH47llqS3lm3EKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rhfhP22tp7x2yH48ei9oMHyuAwgFVudHJDYz8zVGDZ1aks4R1YMvWhWjI4dOqLYFi 3l+AtMqJP/VYZQfC65HSnMKsTxCSe2dausPrI13Lo3zF51iUHYqU+4nRg7XAr1/BZz 3ll09tb/CopT+8+hJDai5OOv1BM7ulCacA7Cu9To= From: Masami Hiramatsu To: Shuah Khan , Steven Rostedt Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Tom Zanussi , Masami Hiramatsu Subject: [PATCH 2/7] selftests/ftrace: Return unsupported for the unconfigured features Date: Mon, 1 Jun 2020 23:42:23 +0900 Message-Id: <159102254289.31199.15357461818950717703.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <159102252279.31199.12855129586058455119.stgit@devnote2> References: <159102252279.31199.12855129586058455119.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As same as other test cases, return unsupported if kprobe_events or argument access feature are not found. There can be a new arch which does not port those features yet, and an older kernel which doesn't support it. Those can not enable the features. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/direct/kprobe-direct.tc | 2 +- .../ftrace/test.d/kprobe/kprobe_args_user.tc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc b/tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc index 801ecb63e84c..e95b744b23e4 100644 --- a/tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc +++ b/tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc @@ -10,7 +10,7 @@ fi if [ ! -f kprobe_events ]; then echo "No kprobe_events file -please build CONFIG_KPROBE_EVENTS" - exit_unresolved; + exit_unsupported; fi echo "Let the module run a little" diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc index 0f60087583d8..b41471f301ab 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc @@ -4,7 +4,7 @@ [ -f kprobe_events ] || exit_unsupported # this is configurable -grep -q '\$arg' README || exit_unresolved # depends on arch +grep -q '\$arg' README || exit_unsupported # depends on arch grep -A10 "fetcharg:" README | grep -q 'ustring' || exit_unsupported grep -A10 "fetcharg:" README | grep -q '\[u\]' || exit_unsupported