From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83EF2C433FE for ; Tue, 22 Nov 2022 20:26:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234653AbiKVU0S (ORCPT ); Tue, 22 Nov 2022 15:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbiKVU0N (ORCPT ); Tue, 22 Nov 2022 15:26:13 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8448827DFF; Tue, 22 Nov 2022 12:26:12 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id b1-20020a17090a7ac100b00213fde52d49so15356593pjl.3; Tue, 22 Nov 2022 12:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Ql2FYZtChC8kHpVI2e9mEHckclAXpvmwn/fO5tPh578=; b=elh+z0q1qqevOLCYpwBkrBAb6yjmtaCYgataLx2FY3l8CrqJmnwjYJWWkb5XE113YF wt+kf4HIRlorudrICrtnK9/H2DPLaZSXNrbpt8G62NLJIKN8sfcQUFdKwfg06jc0C5+p 8Gtx4MymzEdA0l8pyQ1Cf2LPpu2Wp+22iPTyGXFjEnggAQxp1UPsc++daU16duq13EKY a2VTX51iWrP73LKhnvgT0RVcYOFWdyJDccZ5b8xGiTGmp43Ls+jmMr1jHEkDDh3SyE1e x8u9Div/D2HUKk1ec770Bu2vK+iXmlPe3ItbyjMQdRWapEXVc54OAKYChtCcD2e+K3ke q0uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ql2FYZtChC8kHpVI2e9mEHckclAXpvmwn/fO5tPh578=; b=gIYWqxh7EllkvI87XOFlwLSmIeriqzWfpu4BIGUyHEdSNj1JtcAxcqFWZT29iYZvCo j+mHnEpVqub2wSmKr3+UyLKZ3EFMTlM04/wsXHEl9o03hHF4EUX38fqfc5fvvOJwZCSf 9yXDXVufuOHnev+ijO7Yr/9SC/7QKshIczxi0ZlM914dIpujX7KNBjuuMfjDPlinV9dQ CgXJsd6Jw+J6VmZEtkTNvIpzgDzPrGvS6e6pqAKNkvAMLvu6eGX9f4ofPQRpE+TjBssZ prECv+5W653qsjJ3Z/88T44zeaRqVQXzlBYz9vfl+DBKRkvthxDiQjetLeSq301ttCXg XpiA== X-Gm-Message-State: ANoB5pmEc9g8U0mUYRd+KRe1AEb4MpwT8xYYUEUuDP6KMteOQMJHDqFb NfhGKcmC+DWT8HW3W+9ouFo= X-Google-Smtp-Source: AA0mqf5oGIFMVmy9BowMY5qnMQENYrRn8wXpwe2NFMB9qFE6FmgU4Tc323G37NWDBgbwSvOoByvZwg== X-Received: by 2002:a17:90a:8a03:b0:218:9f92:d1a0 with SMTP id w3-20020a17090a8a0300b002189f92d1a0mr16072431pjn.53.1669148771369; Tue, 22 Nov 2022 12:26:11 -0800 (PST) Received: from localhost ([2620:10d:c090:400::5:bb3]) by smtp.gmail.com with ESMTPSA id y10-20020a1709027c8a00b00186cf82717fsm12407693pll.165.2022.11.22.12.26.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 12:26:11 -0800 (PST) Sender: Tejun Heo Date: Tue, 22 Nov 2022 10:26:09 -1000 From: Tejun Heo To: Kamalesh Babulal Cc: Waiman Long , Zefan Li , Johannes Weiner , Shuah Khan , Tom Hromatka , cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest/cgroup: Add cleanup() to test_cpuset_prs.sh Message-ID: References: <20221118101330.251332-1-kamalesh.babulal@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221118101330.251332-1-kamalesh.babulal@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 03:43:30PM +0530, Kamalesh Babulal wrote: > Install a cleanup function using the trap command for signals EXIT, > SIGINT, SIGQUIT and SIGABRT. The cleanup function will perform: > 1. Online the CPUs that were made offline during the test. > 2. Removing the cgroups created. > 3. Restoring the original /sys/kernel/debug/sched/verbose value, > currently it's left turned on, irrespective of the original > configuration value. > > the test performs steps 1 and 2, on the successful runs, but not during > all of the failed runs. With the cleanup(), the system will perform all > three steps during failed/passed test runs. > > Signed-off-by: Kamalesh Babulal Applied cgroup/for-6.2. Thanks. -- tejun