From patchwork Fri Sep 24 12:44:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 514569 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1457122jao; Fri, 24 Sep 2021 06:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNZVKdj1E9u9a5TEfrkNgtItDCLwiNE/TaSTFO4sdDkptqT4BiqrRn/z2/l87joVoI0NkE X-Received: by 2002:a5d:8048:: with SMTP id b8mr8862689ior.84.1632489175411; Fri, 24 Sep 2021 06:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632489175; cv=none; d=google.com; s=arc-20160816; b=FQEPKtbtvOBtHjg2b1ooedo/LPSF7TOXsajtZCK/1w3pOX8lreWrlv91p4SIWEHyow H5yVnRzDld3kwDvBJIMMIjdrI2MbBR4/262HqXyALuiojcON1oH/gwqEszJFX7XVAlS0 VCoYucpqII1STeLD52o9KvyEVyGK2Jn1VbTaaBzr1ki8aa5w15gJwT3daFnNHlr0c2KA t4BwDYP3g+ZHTA977llYXnESrLyBwTgttv3l2/KKsf1BskCAS/TlyGnNQ11BeGHIjqm6 iALjADjsbadXS7XVal18yVArz7lhRnZmiBzqGcL0wGWXxglRCwIy9hzyPawjOnjQFWRA 0COQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ah3ZRbOkZYNtkPl46uJ7/m6JTUITUBS8zaF0C0d1Nyw=; b=vR40BIN0OUmeAIyVzrmq8ahZuyO2Z/Imx4lUck6/ny3thOPdq/pF6S2eC2tkjAHUk2 Spz8VmlEwKAczt5StnqeynoNp56EdB0cVZUp0WzNqC+B2I7Q+GeeYvH9w8JKt4tQIonQ RbLRwirSqS6+qAmfrRkdVOQ9EhnYgtDJAS18idyBnvd1XNGL1QDjbc5VKWRpBDKvBF0G DnTsvX5DHJHDQaUB3rfTxt9fU5fZ57KX7b+/uVkgMkylKgwvMi5ka2HfMZ8/UQJJmZzI ILpYZUMkfUS/ez+ytnnmkVk5IhcAtT/AmXM+uiEh8rAO42i+A29nI/uLqbM+pBoTnNMc YiDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="L/IagCKp"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si11286016jat.15.2021.09.24.06.12.55; Fri, 24 Sep 2021 06:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b="L/IagCKp"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346809AbhIXNOS (ORCPT + 11 others); Fri, 24 Sep 2021 09:14:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:38842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346169AbhIXNMM (ORCPT ); Fri, 24 Sep 2021 09:12:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3A39613CE; Fri, 24 Sep 2021 12:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488330; bh=YN4sg+A4COQS9FIG8U7VhzOngajLK+jzTcdur6B65n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L/IagCKpgmTfsC55e6MtAAYouh/Yy31YIej9weOHn4LoXHFSdDdWzZ9CcdiT1f/Pz bldaLCSYd1JIAKvJIPggiEwNLvx7x6g/cwI5B8mScXTpYFJqjzqhqdfHD8mhOWqBRL BnUNcBL9d1mhpbXXhVcW2NDTkcXJiB5jCNslddmQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" , Sasha Levin Subject: [PATCH 5.10 33/63] tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh Date: Fri, 24 Sep 2021 14:44:33 +0200 Message-Id: <20210924124335.405312246@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124334.228235870@linuxfoundation.org> References: <20210924124334.228235870@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masami Hiramatsu [ Upstream commit 32ba9f0fb027cc43074e3ea26fcf831adeee8e03 ] Since tracing_on indicates only "1" (default) or "0", ftrace2bconf.sh only need to check the value is "0". Link: https://lkml.kernel.org/r/163077087144.222577.6888011847727968737.stgit@devnote2 Fixes: 55ed4560774d ("tools/bootconfig: Add tracing_on support to helper scripts") Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- tools/bootconfig/scripts/ftrace2bconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.33.0 diff --git a/tools/bootconfig/scripts/ftrace2bconf.sh b/tools/bootconfig/scripts/ftrace2bconf.sh index a0c3bcc6da4f..fb201d5afe2c 100755 --- a/tools/bootconfig/scripts/ftrace2bconf.sh +++ b/tools/bootconfig/scripts/ftrace2bconf.sh @@ -222,8 +222,8 @@ instance_options() { # [instance-name] emit_kv $PREFIX.cpumask = $val fi val=`cat $INSTANCE/tracing_on` - if [ `echo $val | sed -e s/f//g`x != x ]; then - emit_kv $PREFIX.tracing_on = $val + if [ "$val" = "0" ]; then + emit_kv $PREFIX.tracing_on = 0 fi val=