From patchwork Fri Apr 18 17:23:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 14057517 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 962108F77 for ; Fri, 18 Apr 2025 17:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744997013; cv=none; b=UQYPJRScQMR94FIdkxuUJeY2jNRovBhMxhRddeatUExY6s7OcnG7czNK/jpdb2oR388m3rvvANENctbfpeJwXgtz0KRIL4UwdK6s3qrdCFENOxlr67szxnJBr9TONw58kpKQQzsLtYdEL/bDvoqO5yMIRD1rSrcz8gYfYiXoZu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744997013; c=relaxed/simple; bh=n2ldmeXj1pt9OhP4eN76Q1VDZqHVEvRwrsozAmyirn0=; h=Content-Type:Message-ID:Date:MIME-Version:From:Subject:To:Cc; b=LE3NeVSevACfmJ7fP7zs7q+n7UOJoHAjph/lWaWV7Oy19gUO6Z4bKZF3KMD5FMqJ7RFpCtJ2BNPnuCwvdkv6obJ0I1jUi/GnMY1iHPVa/97kzfwuQW+4zfTNWYt2ANW8Moy+oKHc1nk3Q5eH8u9SjWgTq7HkJq6mwy7cCDBo0a8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PS+L4yTl; arc=none smtp.client-ip=209.85.166.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PS+L4yTl" Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-8616987c261so68450939f.3 for ; Fri, 18 Apr 2025 10:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1744997008; x=1745601808; darn=vger.kernel.org; h=cc:to:subject:from:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=a+N+3lsdw5hJgFDluXx537uN6IRA+NpDIajXfy7Sh7o=; b=PS+L4yTldSeY5srmL75q21AT4aI309tlOqm7o8ValxBzmqrUTkdMxzfLGznYbfScMo 3GfxwZhyVhIbCr9RF4gK97qLiFQq+bldOE+hCzlRUiKBJuN3XLHzL7iyLfd4n2B10sRD 7aBWkK0d/xUqflKiBoH0h8e0w/fqgjeI7XjC4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744997008; x=1745601808; h=cc:to:subject:from:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a+N+3lsdw5hJgFDluXx537uN6IRA+NpDIajXfy7Sh7o=; b=YnWX2pPwtZM80LfazDuZs0HxzaD+p+KggOp1Q6HLzSsEAENmSQ5DnX04YuTpU7TQkZ Cu+yWhnmAY5nJQloqWKT899KmkcP/iaEGR64gS1EyMTY8ZMec9ooGUM7DqqB+j98chP9 vaZZPXCN1o6Y3v9cpsafXTk9DYaxZIvGxlrLBGPu9HKUnaya0RmTtUNbnQu/xd7VG0Iu 6PY7q3fER25J4Bm/a6KXWKE5kWobp2P13J7fMIL+b4AL1dKWb3GWmxQIB3s3RMhmvA1f xc6NQnBAWxZ7SEIliGkf3fZqNdeUtCsi3enruYuMTD13T7rfkW31/TNuiDRwgmurGF6H mv9A== X-Forwarded-Encrypted: i=1; AJvYcCUDPbUDlcHSM70avk0Y11nTadSoxezRm7x8PdI2Hj6r6TXw6KLwSrtkGRR2y2iyV5SuS0z/k/i6OOrGGTe5e9g=@vger.kernel.org X-Gm-Message-State: AOJu0YzLOeYurVPQGpi/ullEmW/x3YdiN8LW8KFtESMkh7gnNI/zCDj+ OOOOBdsEv1YP4ZvJ+Z+o0G41hxnM4iqaMW5TgRkYYimvBdCMrArdzoiUthd+DY4= X-Gm-Gg: ASbGncsaCtAl/79iPcuQH41X6v6vbK41QT2cSQXqzxylcoiwmLCECR5olGxYUfr1sZJ zva6StK8pjMCwfv+zg/4FBxNlKxbv4v0IkMjBoJzJZZ8guuDykdY5XogwD/vJOVNQ7xvwBIGs8N tqjRIfwm7MA+dQ6ph8F+kN+Hz0RMu+YGMmTfA3HCRb8sQC9RahujbWycpYMAKxcc5XpHEtLI4ze Ns27ql3+lAAxY/y8S9Pi4R6OaoVXTBZzaz+pxx+///lmmCrjwnUbOv1nbntxtrO3SuMTl8onKrm D+o5RxHkGLIhfbA3GLnaX0AMPEJDyqSE3krQhpOnuZKJnqkpZF0= X-Google-Smtp-Source: AGHT+IHKErtBofMBPkKdVBXFdnABq54/jBmrTk0I3oM9V2qqA8HmhEhsAHIkz62xA4Y6AOCSNBSnbg== X-Received: by 2002:a05:6602:4a0a:b0:861:d71f:33e3 with SMTP id ca18e2360f4ac-861dbe0d25emr377632539f.5.1744997008523; Fri, 18 Apr 2025 10:23:28 -0700 (PDT) Received: from [192.168.1.14] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f6a3833b1esm536214173.59.2025.04.18.10.23.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Apr 2025 10:23:28 -0700 (PDT) Message-ID: Date: Fri, 18 Apr 2025 11:23:27 -0600 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Shuah Khan Subject: [GIT PULL] Kselftest fixes update for Linux 6.15-rc3 To: Linus Torvalds Cc: shuah , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Hi Linus, Please pull the following kselftest fixes update for Linux 6.15-rc3. Fixes dynevent_limitations.tc test failure on dash by detecting and handling bash and dash differences in evaluating \\. diff is attached. thanks, -- Shuah ---------------------------------------------------------------- The following changes since commit 8ffd015db85fea3e15a77027fda6c02ced4d2444: Linux 6.15-rc2 (2025-04-13 11:54:49 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-6.15-rc3 for you to fetch changes up to 07be53cfa81afe94b14fb4bfee8243f2e0125d5e: selftests/ftrace: Differentiate bash and dash in dynevent_limitations.tc (2025-04-16 12:47:41 -0600) ---------------------------------------------------------------- linux_kselftest-fixes-6.15-rc3 Fixes dynevent_limitations.tc test failure on dash by detecting and handling bash and dash differences in evaluating \\. ---------------------------------------------------------------- Steven Rostedt (1): selftests/ftrace: Differentiate bash and dash in dynevent_limitations.tc .../ftrace/test.d/dynevent/dynevent_limitations.tc | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) ---------------------------------------------------------------- diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/dynevent_limitations.tc b/tools/testing/selftests/ftrace/test.d/dynevent/dynevent_limitations.tc index 6b94b678741a..f656bccb1a14 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/dynevent_limitations.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/dynevent_limitations.tc @@ -7,11 +7,32 @@ MAX_ARGS=128 EXCEED_ARGS=$((MAX_ARGS + 1)) +# bash and dash evaluate variables differently. +# dash will evaluate '\\' every time it is read whereas bash does not. +# +# TEST_STRING="$TEST_STRING \\$i" +# echo $TEST_STRING +# +# With i=123 +# On bash, that will print "\123" +# but on dash, that will print the escape sequence of \123 as the \ will +# be interpreted again in the echo. +# +# Set a variable "bs" to save a double backslash, then echo that +# to "ts" to see if $ts changed or not. If it changed, it's dash, +# if not, it's bash, and then bs can equal a single backslash. +bs='\\' +ts=`echo $bs` +if [ "$ts" = '\\' ]; then + # this is bash + bs='\' +fi + check_max_args() { # event_header TEST_STRING=$1 # Acceptable for i in `seq 1 $MAX_ARGS`; do - TEST_STRING="$TEST_STRING \\$i" + TEST_STRING="$TEST_STRING $bs$i" done echo "$TEST_STRING" >> dynamic_events echo > dynamic_events