From patchwork Mon May 25 10:20:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 11568525 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9FC5912 for ; Mon, 25 May 2020 10:21:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9284207CB for ; Mon, 25 May 2020 10:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590402063; bh=Vn+k1qgmOwxaqp1iLj7LYkWvDJze5UUoBCJFchqwW2Y=; h=From:To:Cc:Subject:Date:List-ID:From; b=S5MiT+tYrzG4M5UMVo0PZ03VR/haeXKGDeBK4tWUEdERD1ZTBY7GuFHu9f1M0w8Zz VayoPyiIRI7Ar990IchBLJ4+jZfPkZAgUyqZS6m9534eRfgEb2Fo6rQ+2B2lgyILfb /eN/E0z3/vCmekLuN5FOjTpUi+TQSWtTlY0cJmLE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389809AbgEYKVC (ORCPT ); Mon, 25 May 2020 06:21:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:36634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389356AbgEYKVB (ORCPT ); Mon, 25 May 2020 06:21:01 -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 9D85720723; Mon, 25 May 2020 10:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590402061; bh=Vn+k1qgmOwxaqp1iLj7LYkWvDJze5UUoBCJFchqwW2Y=; h=From:To:Cc:Subject:Date:From; b=bLJYJIUd/rAZqeYpdF2qybKrlrfzbRP27pDhYdXi5fGRCASSX+Y6BzHfWBFCeoWel GL5GVpUdFbgzSKvt40WWQ26PQLonwUqSTTuRu56xGYpiKHMZqvcfOarXDfDJc0lUA+ TbeluNx4c7sCvAYxpAkrLEqqTkCDfho/HQXN22rA= 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] selftests/ftrace: Return unsupported if no error_log file Date: Mon, 25 May 2020 19:20:57 +0900 Message-Id: <159040205682.10129.10826221002090446642.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Check whether error_log file exists in tracing/error_log testcase and return UNSUPPORTED if no error_log file. This can happen if we run the ftracetest on the older stable kernel. Fixes: 4eab1cc461a6 ("selftests/ftrace: Add tracing/error_log testcase") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/ftrace/tracing-error-log.tc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc index 021c03fd885d..23465823532b 100644 --- a/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc +++ b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc @@ -14,6 +14,8 @@ if [ ! -f set_event ]; then exit_unsupported fi +[ -f error_log ] || exit_unsupported + ftrace_errlog_check 'event filter parse error' '((sig >= 10 && sig < 15) || dsig ^== 17) && comm != bash' 'events/signal/signal_generate/filter' exit 0