Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp949823lqs; Fri, 14 Jun 2024 10:04:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9O1DZEIv3f56h4j0KF8yPQ0SxUBoR+fXBOKOk0OikfV2lJSbID/HfN39MUTL6tXNnde4JOziFlX2owgQP8hWj8z0MwBh1cSsjNc4VRQ== X-Google-Smtp-Source: AGHT+IFCxBrQ36QZavZUtZ6EupbJu6Y6PHgvPWXdK6PbY18sf3mcxISzQyWhgYZm6633RVxxmY+V X-Received: by 2002:a17:902:d2c5:b0:1f6:7f8f:65b5 with SMTP id d9443c01a7336-1f862a0a2e0mr37874875ad.56.1718384668853; Fri, 14 Jun 2024 10:04:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718384668; cv=pass; d=google.com; s=arc-20160816; b=0bradlrEvcSZ0JdRFQmom/HLpGeRcCYVZ3m6tND1CSyUFQRcKhtLbZANpIo8uTAAlL e52wGAys1ofiZKDYXss8mLOqh2FHLJEmlmVHEg4iyYpJtUJGFUKrOIOBlxY37KHDskvb Mvg1gdndDZAXqcjq7YZ0kGy3zCvlotsh1vYw4R/iozeiVpovraaIDvzFPNcpNHCGpna+ 8PPweboSy8cEeweLYix8AWjxzTWENWK6o3QyPNJpWxGFYQH+CbNWhgYvuXd/OWNeUogw +NPukIY/RNy4Ju0LE8EXjtssjWLisS49I9BPhduc8u/miSKnVQ6rXBYWxf3wCGAdR2rk uoVw== 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; bh=/LZZ5g2B532y72y3i9deKh7UdY6yBDInuoTKCp+PkwA=; fh=/SlXxeAXqvE22YyP1l778pZJwqAWNVkI0uRzHvuw5js=; b=dZtn9Bw2z8yIq8pr/5znIOBx8wZ+uCDcNXhKpsu16wdIA3fFikzXxlowbEXnD6qTDF rxaObRVx9PtH/Xa4lkPqdxdmeicx+G/QOwxzsQ5ojAMwszj6bkmw+HkgdYe6Py5yOic2 nYZpVmXJ8388giBETqxylTD2Atsf0ulM4cbFP4ETzy26NkX2C4aDNWnjMv6PtaSFD1Qv oJNDAqVcQ1h9rsKjCiC17Zs9wymgaLY3kdFR150GfI1SxmrsDZOfQRbuH5yuFNbbhcPz HkprhZgn0nIRwLqdBbJZuOEnOkdsSpFOVeq0CEgraJq8VBIKbUh/2lQmRsYs+C0cuzBI NZpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215286-linux.lists.archive=gmail.com@vger.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 d9443c01a7336-1f855ecac20si39406215ad.274.2024.06.14.10.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 10:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215286-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215286-linux.lists.archive=gmail.com@vger.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 3CDF5B25965 for ; Fri, 14 Jun 2024 16:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29FBD1922ED; Fri, 14 Jun 2024 16:41:55 +0000 (UTC) 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 96D5516DEB8; Fri, 14 Jun 2024 16:41:54 +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=1718383314; cv=none; b=nJ47RHXT2McGJJYSkFJ9mPL2rYmZJzgMVYyg8tfypCeKqENHkRQ7ftyTWD+R2wwnZ9AlIM8+JXz2VQZDizf0ibrVWh4vFTcK95mpnQ8yYuZ5QyuBcCMeLOmAZnsfkPVZ4PbWE5du4MCawE2uEve7dHd4Jt1jlgz8Q+30VGYwGF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718383314; c=relaxed/simple; bh=/Uw6tWeDCRT+Vh+fNOGNy+yjTZXxTtHoYiAnj+slZ44=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=o7rIZvrujT+Vnjw5DtEK++9t85a2iXb9IufEkuan7tMNlOowit0u3k4v6Tdf/9n86ciARPbL9+H8nLKqM8h0JP8VTuYERJG5LwR7NYmbjWxxXz4k6MT8YSkJn85mWL/gClyXcFt3e6okExawz9lEkvM+O8WIT+RoURtLszIBfIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A1F1C2BD10; Fri, 14 Jun 2024 16:41:52 +0000 (UTC) Date: Fri, 14 Jun 2024 12:41:51 -0400 From: Steven Rostedt To: LKML , Linux Trace Kernel Cc: 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: <20240614124151.33ee0dc6@rorschach.local.home> In-Reply-To: <20240523124541.7dd4cca9@gandalf.local.home> References: <20240523124541.7dd4cca9@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (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 Shuah, Can you take this through your tree? -- Steve 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. > > 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