Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1786249pxb; Fri, 24 Sep 2021 11:49:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNKNzOkJ/TGsPaiU2nACVs7hO2oS6gDgYgd3t8+ZKBUWIazVyQut2rTxfXHiyuc5ChuKxx X-Received: by 2002:a05:6e02:1c24:: with SMTP id m4mr9863491ilh.296.1632509341736; Fri, 24 Sep 2021 11:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632509341; cv=none; d=google.com; s=arc-20160816; b=Y5AunZdvK6UdPhWeBuOd+Z2WyNr18gjf/XkSYPbM1bR33kSqCUIcrp6+6eQ9uDds82 /dlYOyem4LxPS04V/1laDCCrXH68Ny72iT3XM3vDpn21yutC36YAox2WhEaYocgkEj2c 2nLBO3WenZA1wME+bKCvKWttxTxVISULrDkZnTIFOEamcSqjEvuOZMxISVRgwLITHg4d wdiWh6eHVBYfzrxTItyhq9uzAJGVH/FDEJyEZXeE/76gXAe2k/iQ85zZTdbjf/7JYeG0 bkyHkkqgpjw1o5I12lrwWXUvCdsJWrFUsRg0/qEjy4ZmKDLHpAfh1NKLdjsOo6L2rYyI Qb4g== 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=qsgE6RuvoFnYRtFzGsL5V/rpOeDtEuiEDmtWejYEmvMaIDjT9I8t45vEpdhXhfrktn 0AZOe+amkTtM8F9qQyELhxlTlj8ObwfKMZcm2ctoYU3dlWWQeimDaxdstReZI2ZimpMy 2B53o+YjIVKSiigrOy+KKAAgV1EylIVBog0UkQ/kXshWXMqaJ75dUsMChCXzn2e3GI/w jSwKeNbcoqKM+S2BZwCwBUdrHhC3MoH2E1qqQDasD3xqM7uke56oRwp3QzMRjgyuEwj8 rfEMn7Ml9Kvx2QRkkuzDe+7PWc/VsnzMIv2auPk8FMjOJovVfgXMfnd9O48OtE61AhZv HQEg== 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 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si589561jaa.103.2021.09.24.11.48.50; Fri, 24 Sep 2021 11:49:01 -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=@linuxfoundation.org header.s=korg header.b="L/IagCKp"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345489AbhIXNOy (ORCPT + 99 others); Fri, 24 Sep 2021 09:14:54 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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= -- 2.33.0