From patchwork Wed Aug 8 23:40:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Patil X-Patchwork-Id: 143636 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1405323ljj; Wed, 8 Aug 2018 16:40:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx9ljEgQ64qNMeTRnqsVvqOrZdjLHU8mZq+A4xmzaWM+2YzOq28jvNB59cqZ0y5f90JXhDp X-Received: by 2002:a1c:87ca:: with SMTP id j193-v6mr60814wmd.76.1533771636200; Wed, 08 Aug 2018 16:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533771636; cv=none; d=google.com; s=arc-20160816; b=q3Sjkc7mS2cEZotZrCR7B6Xre8NIW0+oOhLflfeT/s6a4CK31i17WWtDmr05Uqf8yD uIxmAX3mLdRUsUMqonYSKzKuaORGGZs/RGykSmB50R7UW8CWsqb9Rk10tIamxpErDCwo x+ShxLUlLD8vT1JU42eqxMreSQDXyptmGbH9xIegOhal5K+GCLimgYvbuvqLervrDQk/ 5oEfWcWQCUVfv3psNHN+E0ds/w9kZ1CoIchIuhTennEFrWWPvXVzcp9okYcomPf8IB1F 8XJePnPGzW8XR9q83jPKVwSAORQc6DzthRjkJTl4CeGBvqUiTxILKBOH4X1PrgLPP86l NeYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=NSQzvtmixJHh9XrEAtHtYe1iMixQm6KVNGfym4jbWoE=; b=FoZr+sp5faU/vLEj2xRHma9fbtijYaXz7BdiPIB2kQ/Msyv60b7ApUqbBsIYyHSt+h W4j0Vs5irTeqspNMFDnvsrSjttdOZqeuF8EqNtpO6bv15wnXhMsr+TApZ6/cTVQHB8xU i10UeVS8LDtt7/YDt3hDJoB2Ky8HpbpJoN8RX2Jx3CPFxVSfO617DNHin0BjVFLBzpZa Rbc/qOOZcr2by0Lo+X8nOlnNm4XkuqNkq7aL3xud/41ggD/JLDetVu8ctY1yqckkpb/v ckoU+O0/Mbgax1wn0Gf95RvSS7VZoyOq7+mz7liL+/EkASYDcXNLg6VwWiZ7bLjREkUt qNPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.s=20161025 header.b=Ci3c47Ac; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=REJECT sp=REJECT dis=QUARANTINE) header.from=google.com Return-Path: Received: from picard.linux.it (picard.linux.it. [213.254.12.146]) by mx.google.com with ESMTPS id x5-v6si3820952wrr.349.2018.08.08.16.40.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 16:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) client-ip=213.254.12.146; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.s=20161025 header.b=Ci3c47Ac; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=REJECT sp=REJECT dis=QUARANTINE) header.from=google.com Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CA7773E7828 for ; Thu, 9 Aug 2018 01:40:35 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id 24FEF3E7463 for ; Thu, 9 Aug 2018 01:40:31 +0200 (CEST) Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 2A065200AD9 for ; Thu, 9 Aug 2018 01:40:30 +0200 (CEST) Received: by mail-pf1-x442.google.com with SMTP id e13-v6so1891235pff.7 for ; Wed, 08 Aug 2018 16:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6VhUW/H3gNcBgFFjnf8lBBaX47IcualkdyBmiOnjc30=; b=Ci3c47ActpplshUwruhyAz7loWa8PqRY++PVYPmzG0B2P31jrCxLrJP9Hl1uDB+qnF Z6B/cukZVANnWY6hMiqhaAnEgRzsllAhKO7QFW3pBd0vaj9He0EdN6Vq5LrPAEanR+Yj D5n4Bcjn3mCFASiuyiCMGxqeD0S58jzrpsvvbRereC8/wWI/od7DQORjy6CaJHMvS/OZ yL88mISYcXgLB9PRueqh1b6xVn+WpNDOBuqg1/7y/eO2hHFCYcW8Z1iLieJ7uwVpyQAH lltlr11DrLyhq7HFATDYHEkB+Tbs3jRURTG4SBEmhgt6blHZqeJFZSewB0qXXxqpGe67 bSNQ== 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=6VhUW/H3gNcBgFFjnf8lBBaX47IcualkdyBmiOnjc30=; b=hgLLq6KS+XJ+jIz4/84y5QHR4zUo/6jacAZqCVhBm3fFdavFQinqNoYv+Q8xtiS7tW qXut0pv7HbaHpNPTK7nYR5OY55rU3VDMq8/UYkhlj/CfM2F3pzyQtRLlqrO5WxtoYnsn RtvXZaLs4P1Eac/efSfebimDom/Y5gY+2cP6V0M4/YVtLQkITst3SpJXRNB67tgvET6w hcI4sO9jvuoF7cHpJWsrhT5MEcI8uJLZr2sxiwxKAjVPBMZ48E6ev9lmsfE7aWzGNMX2 1XiKiMyms64eDFbdxgI6CYt4mGtdit5QXQcaKUcxiZ4QKi0WNNvMlFKR7cZtNB4heaHn NWjw== X-Gm-Message-State: AOUpUlETYizkLDNnpAerSp7qBpdeQ8jNxzac7opSDUBj3EkQGx6X07SZ V49vqQIdBdpK++FcQHI/u65DlEFEwSG14Q== X-Received: by 2002:a65:6551:: with SMTP id a17-v6mr4362239pgw.132.1533771625664; Wed, 08 Aug 2018 16:40:25 -0700 (PDT) Received: from sspatil-desktop.mtv.corp.google.com ([2620:0:1000:1601:49c9:2a02:24f4:569a]) by smtp.gmail.com with ESMTPSA id b1-v6sm6677144pgi.91.2018.08.08.16.40.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 16:40:24 -0700 (PDT) From: Sandeep Patil To: ltp@lists.linux.it Date: Wed, 8 Aug 2018 16:40:19 -0700 Message-Id: <20180808234019.241238-1-sspatil@google.com> X-Mailer: git-send-email 2.18.0.597.ga71716f1ad-goog MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-14.9 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Cc: kernel-team@android.com, chrubis@suze.cz Subject: [LTP] [PATCH] tracing: ftrace_lib: check if tracing_max_latency exists. X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+patch=linaro.org@lists.linux.it Sender: "ltp" This avoids unnecessary error in ftrace stress test when the kernel being tested does not have CONFIG_TRACER_MAX_TRACE defined. Signed-off-by: Sandeep Patil --- testcases/kernel/tracing/ftrace_test/ftrace_lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/tracing/ftrace_test/ftrace_lib.sh b/testcases/kernel/tracing/ftrace_test/ftrace_lib.sh index 20cf5e760..ec4f7a557 100755 --- a/testcases/kernel/tracing/ftrace_test/ftrace_lib.sh +++ b/testcases/kernel/tracing/ftrace_test/ftrace_lib.sh @@ -100,7 +100,9 @@ restore_old_setting() echo nop > current_tracer echo 0 > events/enable - echo 0 > tracing_max_latency 2> /dev/null + if [ -e tracing_max_latency ]; then + echo 0 > tracing_max_latency 2> /dev/null + fi if [ -e tracing_cpumask ]; then echo $old_tracing_cpumask > tracing_cpumask