Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp248686lqb; Thu, 23 May 2024 17:48:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKrMSterGoCKs+w+OlHakQdSRDIlLnGHauYI1wrZSvenX+LSguEqAREW6k9avJesNDsGyGT740Ul1kPNzxRvd5G6CndEvpNMBwU4ldDg== X-Google-Smtp-Source: AGHT+IERRjiReusR92ABi3bnGQO9ZTvg9SCk1p9BGDH74tzw2cIBz7HM5h0wrgNGVabTuc0XpqQ7 X-Received: by 2002:a05:6a21:3e05:b0:1af:5d8e:c6c with SMTP id adf61e73a8af0-1b212d5df8emr1048318637.18.1716511689902; Thu, 23 May 2024 17:48:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716511689; cv=pass; d=google.com; s=arc-20160816; b=qlb42ZZ1QY56+nW/ewoTJd6hrUF9Zg5tDkMJB1v28z72E4+IxrdO6POQN3Dva/K+KW YfSLfuoERVxFfITmpUCvIKYahKsp9fJw/VbbyJ+D1BFSIYAsoQx0XjiXyQNRnTvKgZF5 tju4WBEJHcuaAxwyg2hKi0zok1fZTnHosdeFQ5Y/ug7+dVIOFN3ABy0ut93FejLqZBtC FSZX3thL/41zByI8gwsHIykdeJ8sz4XJoG9rARKoebz+WhzBgYsvg2L+O2oJMcCOdpVu lPxcRdxBgHOzboo6GEdp8juRGQ4hOPCevY1Yz/eMgGEcedyNIay0KLmOE+MKhHG8Ru31 VuzA== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=03p91N2BP7MhdLS8B2EfNBwPIkzjF5NK1jVb4YYcoh8=; fh=KRWu0mNTMgum4e+bFObagjFdArEUHopItoZQ0TM/QNk=; b=IRkaHIAO5jw8+0zuLWOmoxDYBqSF8jlG1T1vY+H/t+BMa/zx7s6ck2SdOZueytU8+0 BhQPZrebYhLursfywqz31t0zGC4V5kyX5ml14BcqUlArEYOZ2pTJ8I1wC47lC01pwfKq f1eAp7S/10AAm1a7oxlmIfnes7PTQ9UJhvFAgfHHMx9Zw6E+Ov1G5sNXqkbyVJJ98Xck 9QxOG6iX+jz+jrKk4CfyUrpQFTP2mfSfvNmyF3128tuUGBM+1jVmYCn4jEH2hBBtIREn U2ON/4DOwHgyL1gmLuF9PPYaMG6bUkGgyExhCN6mVjqHfbrrdqzyq/lbXJM0x4ZdNSVt 15wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJVXwHyB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fd4d2581si374149b3a.255.2024.05.23.17.48.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 17:48:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJVXwHyB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188187-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B6A82831C1 for ; Fri, 24 May 2024 00:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6070E6FC3; Fri, 24 May 2024 00:48:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HJVXwHyB" 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 64B47EEAA; Fri, 24 May 2024 00:48:01 +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=1716511681; cv=none; b=HBK+XLeGKuDxlrD5jJonJfr3aoC322mOXE4vO5IlpHf92bz95aiWJnYHD4JQ0N6HpHI+qDq2UJb1iyJMy/Zoxmm/Xd3+D2weO30z9PP7yqt4IUwpMUUPieSy0StQ4Pn6iV5j3p0e2NH0zm1WWbHTkME0jJPKLeDXk8dSA2ZnBFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716511681; c=relaxed/simple; bh=KTLZyqwm/bxcyXU3DPeiOAIMZgJ5GgaNFY5/kM7KbLU=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=X4G8RJqMIPjYJdT4RiifZMCBPwoVA1VXYiOCl2dhFmaKKA1tvHPJEfV034iF/buNHNviQVK8HAVQZt1sjV6skt9K0CkGOXfvP+UENeRjSX+F6FIyZ9JWy4TOaYvJGia+XSKft7EySAsym6whzAQCYFrAyeQOyJmz23tm8O/6B9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HJVXwHyB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63488C2BD10; Fri, 24 May 2024 00:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716511680; bh=KTLZyqwm/bxcyXU3DPeiOAIMZgJ5GgaNFY5/kM7KbLU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HJVXwHyBeyjEK2zCH6OXcGN4I66qDgnXHSDTawSc6CCcqN6Mpn+rjN+4VhWGQtB0z 5Wb7Rh3vgJVQa0iYsVSLoaBd+bIB/1UJlioxRr/dSI4ytyDrDjACbERKDSxjEOqN93 W3YViq2y0S9HLU0APvM8EFvwUlk+A4o0QBa5NcgJSFnNSMAI723Kd9jimTI+rnr4AE DVUsnZR0ab9VYpgU9ptXpGA41DjQksOSNgQNtvSTvny2zPNZ7/vrvDJY6nUGyvYmVJ kDDsDK6Zqlp1EFfYNTSvS8uAMLdOxUrhlg1/e2YcPPwPSuQjtFeuYQgUcLswnvD1gt AOfa9LwoKpAcA== Date: Fri, 24 May 2024 09:47:56 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mathieu Desnoyers , Ali Zahraee , Shuah Khan , Shuah Khan , linux-kselftest@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH] tracing/selftests: Run the ownership test twice Message-Id: <20240524094756.1f3dc4f67ea174770f54fdff@kernel.org> In-Reply-To: <20240523124541.7dd4cca9@gandalf.local.home> References: <20240523124541.7dd4cca9@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 23 May 2024 12:45:41 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > A regression happened where running the ownership test passes on the first > iteration but fails running it a second time. This was caught and fixed, > but a later change brought it back. The regression was missed because the > automated tests only run the tests once per boot. > > Change the ownership test to iterate through the tests twice, as this will > catch the regression with a single run. > Looks good to me. Acked-by: Masami Hiramatsu (Google) Thanks! > Signed-off-by: Steven Rostedt (Google) > --- > .../ftrace/test.d/00basic/test_ownership.tc | 34 +++++++++++-------- > 1 file changed, 20 insertions(+), 14 deletions(-) > > diff --git a/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc b/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc > index c45094d1e1d2..71e43a92352a 100644 > --- a/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc > +++ b/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc > @@ -83,32 +83,38 @@ run_tests() { > done > } > > -mount -o remount,"$new_options" . > +# Run the tests twice as leftovers can cause issues > +for loop in 1 2 ; do > > -run_tests > + echo "Running iteration $loop" > > -mount -o remount,"$mount_options" . > + mount -o remount,"$new_options" . > > -for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do > - test "$d" $original_group > -done > + run_tests > + > + mount -o remount,"$mount_options" . > + > + for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do > + test "$d" $original_group > + done > > # check instances as well > > -chgrp $other_group instances > + chgrp $other_group instances > > -instance="$(mktemp -u test-XXXXXX)" > + instance="$(mktemp -u test-XXXXXX)" > > -mkdir instances/$instance > + mkdir instances/$instance > > -cd instances/$instance > + cd instances/$instance > > -run_tests > + run_tests > > -cd ../.. > + cd ../.. > > -rmdir instances/$instance > + rmdir instances/$instance > > -chgrp $original_group instances > + chgrp $original_group instances > +done > > exit 0 > -- > 2.43.0 > > -- Masami Hiramatsu (Google)