Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp158491lqh; Fri, 3 May 2024 17:34:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpURSlrj0d7gLE+HRJT5LMgUo13mTCB6EntlL0WnQ8pGryCBFFtRqP3EZhLbrId1ckvOSA3qIxdLYLXSsRoxzdyliGniEQUc13ow4Fyg== X-Google-Smtp-Source: AGHT+IEWEGJae//9Dv7eWop1dv3yMKOUNWZKKiuDW7/w/v04EOjn8feiDSy0V9+t0Cer6e/4VIZd X-Received: by 2002:a17:902:b617:b0:1dd:e114:121c with SMTP id b23-20020a170902b61700b001dde114121cmr3981204pls.56.1714782875330; Fri, 03 May 2024 17:34:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714782875; cv=pass; d=google.com; s=arc-20160816; b=uzzdSeptkMgQ3mlxbLFwsxIdcbLpZ/6hnBqAXNOsy6ldT1M5peLwrlsN3N8hpnNZxW UyWgumFUL7+I7YGa+2KD9Vo74zpaMJFGrBvCg8w2W1X/yRBStlcEHPOL3+zgrgv7yRLR iWw1ET5tIBvhmzzkjPHYs6HkDrBHdAXDmOg1NHgALCjbZK4UnyIYd9Vz3Bk4bnQkKKGM 5U76XL8fL3ckUIvr/GmZ7+bijYLvfydJtUq6arNM+CiXILzb7WuidEJrvSliOP1bCjay 4xe2Zcm5Vtqgffqs/Nrpi+rVFi1TLHbl5TYRighqpz43j9mO2YXvrTFRcdxkEGInC8iV rzMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kbKjpnwC0/fq66ftqdiaAI9Rl61rGaPvUHbKruOcD2I=; fh=pD+UgTAO/RWppWpSif5h/IKJ01rvqP7veuP5+bvLFCU=; b=d4fBiodO9tecwmwNx8DirJ26HkmbEkbW96AVFavNxW23EOFFvZUWDAkl108mTElKv7 UmiIyXGhR6nsk+vBtp8vNmmca067FF2TA7Gh2jKFAB1iObCitlBlMJJHkzTab7WOL52W 8hrq+sSyVuh/uAG2n+VSkOL/j1wOsBLh2qG9Ue115Z15MWaw3lMpTUSytKho3lRCQAaA EZPMtjcs7/uvZfXDC+qlzppBZensNPSqBqPPg7Q+9BAbML6sOOYiUMUP4czXllCvFBue wPeV3NDKTzRILZV6q+8INiMo2DSAn1Be9TFTQawSSJldS0lxwPfIPbC7qMSk7aYx5VPd 22sQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LdZTNfMA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i8-20020a17090ad34800b002b4346f7cebsi1368456pjx.147.2024.05.03.17.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:34:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LdZTNfMA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1A35FB235E0 for ; Sat, 4 May 2024 00:33:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7261257C8D; Sat, 4 May 2024 00:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LdZTNfMA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93D161859; Sat, 4 May 2024 00:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782805; cv=none; b=qLMuXxYnyDvgabgcwtVPTC9xq9KE/CQap5N6PurqLoLEtHbyyBE+bR01jaP2FZHwmqK+ENsikJyc0DptKyureLz2fWxH3Gusfwvjg6gZC2zKr1V4eZ2AkAnr/VUCNVsM7V6WWdRpa4k8LO6k0kEpiDxDgwPmWvnvOR88LaCTT9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782805; c=relaxed/simple; bh=F04mcxzFyrySYotptkIyuShPMhd/MamWCEQNHFiPe4s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=lZDnxvDG1gl4zISDXO9B/wdAsl5VvnJZToENl4b4XV4MjnRoTW+3alkgSmoNJAeJHrY/S3SYLWez6JwPMqwIQ/p8dHR3GqoYxeyBWuM6x1TKkLWR6cuAyzJFiz18g+b6qCEGjaOZ9Wsuxb2jeuwDMiDeG9K6ta6aMEOESIZ71DQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LdZTNfMA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 400AFC116B1; Sat, 4 May 2024 00:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714782804; bh=F04mcxzFyrySYotptkIyuShPMhd/MamWCEQNHFiPe4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LdZTNfMAnWtkW8i+qkLuHhCdIv72R8o30pNTV4GqcxiVz6YhcXVndn6vnmMxqcWPe IGlpWbljcV/Dtcc0Q6b8QP7Dt5xNf2l9hwokXUglRP6KxfOcblnnoJ9XR2/bYbbz8d 660I6rRyEPtmfDJjo/isq80TtCk6dR3CXdswbDpDhnWfjsKk+SqbADRhp4t59upwqu RNNU5eFo7S1EphMZxAr62nyn6NTy9cyjf8ZgGwNfwDYfXEI+Gl0if3iv7mlMxwzW2J WQEGpzrWsqs4Qq83Bej7iH4vhMyhmbAu+zgfAVdbVsA4mnmsL+xgzxnfkl45ewR/Wl iYl98KyUqIn6Q== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, Jiri Olsa , linux-kselftest@vger.kernel.org Subject: [PATCH 2/2] selftests/ftrace: Fix checkbashisms errors Date: Sat, 4 May 2024 09:33:19 +0900 Message-Id: <171478279972.109670.4978406413990459886.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171478277880.109670.10932081511777701353.stgit@devnote2> References: <171478277880.109670.10932081511777701353.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit From: Masami Hiramatsu (Google) Fix the below checkbashisms errors. Because of these errors, these tests will fail on dash shell. possible bashism in test.d/kprobe/kretprobe_entry_arg.tc line 14 ('function' is useless): function streq() { possible bashism in test.d/dynevent/fprobe_entry_arg.tc line 14 ('function' is useless): function streq() { Fixes: f6e2253a617c ("selftests/ftrace: Add test cases for entry args at function exit") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) --- .../ftrace/test.d/dynevent/fprobe_entry_arg.tc | 2 +- .../ftrace/test.d/kprobe/kretprobe_entry_arg.tc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc b/tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc index d183b8a8ecf8..1e251ce2998e 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc @@ -11,7 +11,7 @@ echo 1 > events/tests/enable echo > trace cat trace > /dev/null -function streq() { +streq() { test $1 = $2 } diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc index 53b82f36a1d0..e50470b53164 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc @@ -11,7 +11,7 @@ echo 1 > events/kprobes/enable echo > trace cat trace > /dev/null -function streq() { +streq() { test $1 = $2 }