Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp482050lqh; Tue, 7 May 2024 05:31:33 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCV3uuTU9zwWQ2M7+NG7lPHU5KIyYmyCIBYjFPedc8/LCsSosNhneP0gqDO6vg8JoQtHldbygPoUffwAhP+5UOz0Kmn9im3bcv/cyCwGpQ== X-Google-Smtp-Source: AGHT+IEdwGbTZURahAnahKIG2rTJd06cTMOsP/M5fiJW3HNevu+h26kLNfNao21PU2/TsOb9Q0bt X-Received: by 2002:ac8:5805:0:b0:43b:6fa:9756 with SMTP id g5-20020ac85805000000b0043b06fa9756mr13166636qtg.27.1715085093174; Tue, 07 May 2024 05:31:33 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1715085093; cv=pass; d=google.com; s=arc-20160816; b=ovN5908+WDxHnLTlBEWm3xAM1cEELXvMNRiZmZgrx0CGhpapCFNtjIWbiOUrjqrfqc DHcEYOl8X91nOsK0Tdfap9VrVeeNJR9TrTHJecasHHNA7FH5a1e7s5+h9Slq97No5Jhe xoo2kBzu06UQsi0IXnEixCaNj9/iTBKRzGa/fZ3Wve9rFILqmTvGBBiDBO5WduDDTBva 0hoHsAVuTJnC5BqO3zAJ5xL/DqZBcIVWOMM+vkxDGw4XuB+L8/sU6fztvphFVYhhkEp6 62vkeYuf3dxnIzt0Q2eFEJmwZB3278fMIdkUogxf7ldJFn89CAVtzNDqyVZsEQ3ydJfI AfDw== ARC-Message-Signature: i=3; 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 :date:subject:to:from:dkim-signature:delivered-to; bh=AlUlR02UFXlJEerPpMyC2hkxwpJ7T7Z0GszKEfkWHbk=; fh=SotPdUFMeEEyMi/Tle40x0qcsTe88+U78qIS3skPpMM=; b=fPpj0Oz4pgafed3B4FvxruGw+3GWnMhOEjfI7XC+iMQjsa1mme0ueA7k+PnFTOmKLT 6KCtAg3LVtkQUsdPQwsLv6/ii4IB/MrxsQgbyH7r5E/jFSlRnAN8jrhU5Z8D3OvvYPx5 4nax9EzP8TKW4RV5ZoEEln49YuVo4HN1XpLqPUgelM3oYHt7Fmcr2ydPuGSWWhC92JFi JjUnK34VoS/4pt8+2YMBuqEawszg+YTbiI4R9RmvgnQX8Su0mXgEaLMwTYh/KfFUwElr tl7WjV+ObzfzCf5RzfTzRjoIJ3zgCEBSNA/5NUmo4xDjugV2kMy6l5buWMcvHcJIZ89b TQtw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b=pqXfNRDR; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-171281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171281-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e15-20020ac8598f000000b00439e77baa55si11682277qte.134.2024.05.07.05.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b=pqXfNRDR; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-171281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171281-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C07311C2352B for ; Tue, 7 May 2024 12:31:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C24F15B150; Tue, 7 May 2024 12:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b="pqXfNRDR" Received: from sender-of-o51.zoho.eu (sender-of-o51.zoho.eu [136.143.169.51]) (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 070221EB39 for ; Tue, 7 May 2024 12:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715085070; cv=pass; b=szr4ykmtXP89O7WHTU2Uvw+ebbfL/DbNRHV+kL+F8hoiOfoNYw08GopAyPW3glHykqmBJz9OiDQS3GeLXbMyi3QRvcltUSBPV3N0ajoXU28JED4wV84jQ9BseBAfs+fqkP8EEM7bV6nMa6w8Jylgu3fzdz9TdvcWgSaKDBPBeWA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715085070; c=relaxed/simple; bh=bs+h8XBwWTekscegq5DgAwV/n02OCwwakDqEuTkElAA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KFzFFIcf8tyexW6+xBRfiJMyTtlw8KDvI5lYrRRqH7mmL+cRiRRsStQQCARK+A/IBR02KnYXcKppReVJ0gczgUFpoa2QDCjx7tu9pyYn+qP9e961CC9KnOY8aiwFTHzz5aTBzD/FiRY6++8tu4MYrkYmYPEUFWp5OGEWxgRxjrA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bursov.com; spf=pass smtp.mailfrom=bursov.com; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b=pqXfNRDR; arc=pass smtp.client-ip=136.143.169.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bursov.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bursov.com Delivered-To: vitaly@bursov.com ARC-Seal: i=1; a=rsa-sha256; t=1715084145; cv=none; d=zohomail.eu; s=zohoarc; b=kwVJ+N1mjKd6Co/P0zGuK5KQd/aoxmUeGKS+d2meh6+yVidMcN2HfEY43ZR96cJJSt8MOFzmYqTQ0GPIsFPIpeqc3AU7Nq6ypOPdRzJKSKe1fgVSCvsN3qr8LYZKk2CuH1P2nyk4JzhMZPHNiDehEvooeLQZTLL4jL9+OCQL7yA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1715084145; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=AlUlR02UFXlJEerPpMyC2hkxwpJ7T7Z0GszKEfkWHbk=; b=jqADz9Z2E1Mtx2NS6NLeMdLzIEFJ2PcXqzFO9j6q+ACDAk0qVu4UPYsMa0o8Eqpr7kQ420uOC4d/MVF7HPz8UJOf55ZMRUPtWKQe1u7gn875ZitK3YB7K7a3NDyX5iUtVNgINOTou+eicFU420XWBcHwOs0mQhuKUnfyyYDgnJY= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=bursov.com; spf=pass smtp.mailfrom=vitaly@bursov.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1715084145; s=zoho; d=bursov.com; i=vitaly@bursov.com; h=From:From:To:To:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To:Cc; bh=AlUlR02UFXlJEerPpMyC2hkxwpJ7T7Z0GszKEfkWHbk=; b=pqXfNRDRw1Rpm4pvBwrV29vB/We/8YAqmq9V6uEsm2K2BGq8jV+pU5PbQxj+XY/P YdSP1oIKE6cVGWFYOJaeBd+JvJ0McFo41m62SjXYaxM/CT65Jl+g/ZTQ5FmasZttjVs rhb6WzDNXntkLqOqaroXJp0F8Nvokyp4x6GAfJVc= Received: by mx.zoho.eu with SMTPS id 1715084143194878.4481998596577; Tue, 7 May 2024 14:15:43 +0200 (CEST) From: Vitalii Bursov To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Vitalii Bursov Subject: [PATCH v5 2/3] sched/debug: dump domains' level Date: Tue, 7 May 2024 15:15:32 +0300 Message-Id: <371eb783614dd9263cbcc91c9a560adcabe6e539.1715083479.git.vitaly@bursov.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Knowing domain's level exactly can be useful when setting relax_domain_level or cpuset.sched_relax_domain_level Usage: cat /debug/sched/domains/cpu0/domain1/level to dump cpu0 domain1's level. SDM macro is not used because sd->level is int and it would hide the type mismatch between int and u32. Signed-off-by: Vitalii Bursov Acked-by: Vincent Guittot Tested-by: Dietmar Eggemann Reviewed-by: Valentin Schneider --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 8d5d98a5834d..c1eb9a1afd13 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -425,6 +425,7 @@ static void register_sd(struct sched_domain *sd, struct dentry *parent) debugfs_create_file("flags", 0444, parent, &sd->flags, &sd_flags_fops); debugfs_create_file("groups_flags", 0444, parent, &sd->groups->flags, &sd_flags_fops); + debugfs_create_u32("level", 0444, parent, (u32 *)&sd->level); } void update_sched_domain_debugfs(void) -- 2.20.1