From patchwork Fri Sep 24 12:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514564 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp1253890ejj; Fri, 24 Sep 2021 06:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2ugo9uJ/I/efwkoChbYB9S1KTVqTT/7hfciff+i7whm8Mz0Hb45MWksibgU0W+EsyYBjg X-Received: by 2002:a5e:c20c:: with SMTP id v12mr8775154iop.46.1632488602343; Fri, 24 Sep 2021 06:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632488602; cv=none; d=google.com; s=arc-20160816; b=lYgK1fWtyCkVivfeWie8utupcqkW7eiSdq/MHywwqJUWtTkJKJsT87UWUfbmy2zyNs WeeeHR8HppCROEQ333dTbNOoBz2w/1IFA4/i9ahdrnMCmbMmp5XBKUpBndoSmmY+/0CS sYkDb23tFAYGvTnvgklaGPlDakjk+DL6xDTfiErGk58KEYvyGHCEGPGa8tpmqtZwHQIw ZLJFsAvLIRFku8Ua5tjs6IcgMD0D4llSlNSrv2SebVQV7zAdV26RizOWn0j8LeYVKD7a tDUbIjvErYO/3GBTR1n4fRYg23xE66XZWvGry7B1mu4NQUnbXwJtwTpd4h7rBoIT/9yi N8og== 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=AF1PO2lx2TKAgCBO52Q90SXvTlLr5BV8ohJoqtR8Oh259AX77j36wZOohBFd3/M+SC aar1H4Ysqur6YR2st4kc1SrZYxa0/FgQO1maTs1gxE0cW0HpmWEwEtnrJgDuEgxK8Aib qI6eLG7Fxhb50i9q7ilzUjxtgbNTkut8qvZTAfcKVGz1PGEEP3V0nvFLVoZFbatuK8AT +b/4N5aQX36qjYnLqI/yDvANbYdnluRNngYcoY8p1vo2jpXIyQr3yrWWabNnLekwFNJp /HMPEIqzv/U9uM6BNSadmrWLcuRC1Yj9Mw/rlvOSYXDdnT24HBZuCBbAPjCHHiCrGIpJ 0MNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hrQ7uXY9; 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 h15si9756452jaa.28.2021.09.24.06.03.21; Fri, 24 Sep 2021 06:03:22 -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=hrQ7uXY9; 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 S1345440AbhIXNDz (ORCPT + 11 others); Fri, 24 Sep 2021 09:03:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:59408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345745AbhIXNBw (ORCPT ); Fri, 24 Sep 2021 09:01:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4CDA36140F; Fri, 24 Sep 2021 12:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488066; bh=YN4sg+A4COQS9FIG8U7VhzOngajLK+jzTcdur6B65n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hrQ7uXY9y1Qvm2wknaHaxYqmGX49MpDnIpy0f8f+CObsZ5Tx9VQjdBt4qU/bKaXtu pbZXRYWwDgrkuXC73fnECblbvtdjz9W4vpSRcoQo6uBa8kUer+t7C/jaSKtuwYOdMg HDsSatmmDgwdhv6RNZEMtuY0OyOUZYyI0xFJqV5g= 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.14 039/100] tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh Date: Fri, 24 Sep 2021 14:43:48 +0200 Message-Id: <20210924124342.767754659@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124341.214446495@linuxfoundation.org> References: <20210924124341.214446495@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=