Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1005604lqz; Sun, 31 Mar 2024 09:05:46 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCXT40PZcwoeVBY+d7WSrdKJvc7EEGdTRVFflKrT9R/c8eh7S/KVWARYo7g7b9gGxmXgEml7rCDOiPCPR0JBXKqK0CqQH2KyC7mdxy/icA== X-Google-Smtp-Source: AGHT+IGBn/JQ23EFNjzgyBynkZfa6bL1c7ra3MrLk3PmxZevLgsYo3HqYbOhK4jpWXK4quZH/kyI X-Received: by 2002:a05:6358:788:b0:17e:c4e0:c153 with SMTP id n8-20020a056358078800b0017ec4e0c153mr11183858rwj.26.1711901146225; Sun, 31 Mar 2024 09:05:46 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1711901146; cv=pass; d=google.com; s=arc-20160816; b=uSmqYWl2Rv2pLwMLmYyApUPqFVfaC9InGynlMkunItF4DoAQJynOlB7F8hO7ij5XrS 6mVwlZ3mFZIr4JUfYk81RCHozKJFnVfFwurDYXh2t2buAtEijsbPjZeyOToFrgC08hAa 3Y8ueS7NFbK9/ivPO5Eq3W7TnHk+aOYEMhO1fGvQe7MPlWe8d6IfWsDYm3YGGzwiiOcq pj1zJ1GbfFAjIoLBkcY3MCYKrqz4k2PqOZ33KS+BQjxUVDJOFWiKOyWCpUXmYFGj/ftq OViD4OJ2U5BJCCGJMm134Jn0fjVH91CehBKPSf8SX5DMve7p7xgHYkrKz51Bk7en2uYG QqOQ== 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=C2WtKsBc1JRgHZZuJw4FpfBx5UPxzqv4dYWspQwk4eg=; fh=SotPdUFMeEEyMi/Tle40x0qcsTe88+U78qIS3skPpMM=; b=xypQWc9AlX76XuD50X7TLfH3IBHJKGKCtwhsrT+sIFigp33O06iOL2AfK9KK8xEvxl ppp0S9G7pDaxFbHCQUUWtVLnpru4tQ2wtx/Gsdtz9ew/Djh4sDDzcsjUzXKOQYP33GEv tSqfY6Fscs/MDg4HCko5aCg7Hj50unvdQWdpDKO0StW88hG0DPIbMFBsbDEwEbk1C70N IqdeRBBlOpWSzUBteGhfPAZzbiTlKkSlExXA7T1v7gdmi6wiwZajGYcMGNZJGo2qhwwR wLDPM2P8gyYcUGbplcZn6L6iLtugMkLM8GQI/gNlDsdykr1nWUFXx4sDpq6wYL/tNYG8 QfFw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b=r9VmLxBd; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-126114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126114-linux.lists.archive=gmail.com@vger.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 m3-20020a63f603000000b005e8428fe57dsi7289259pgh.454.2024.03.31.09.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 09:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126114-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=@bursov.com header.s=zoho header.b=r9VmLxBd; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-126114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126114-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CA86C281C0E for ; Sun, 31 Mar 2024 16:05:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EF0514883A; Sun, 31 Mar 2024 16:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b="r9VmLxBd" 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 A0947145B14 for ; Sun, 31 Mar 2024 16:02:26 +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=1711900949; cv=pass; b=pgLnE6Oh4/cdwtUmbXiG0TEtj2IkFSJ9eHgymftnwm3JWn7bxBn1vXRa32ZNCnazhHFA1KmXEUkHMCCgOShUB5M9BPMYBCMz7BXX0lcsmZissAj+detOD8b+EB8eSZQ2WWtBfRS1BU/+qH+pqHldmZ8JteJgSI359y0Omua9SSY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711900949; c=relaxed/simple; bh=prLx6gsZJs5Wv0DMByRz8ryTqBfhCeklEU78XQxEff0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tCkOzkkP5C4nRD0sdE4svYWxVm38ehB5zfboC6D0po58eL1azhmkzDUdy9h/KwkCrjmLjoelCQT33wWECRzN5yVU4gfas7RsIXDHM/tbktKrM/u/blAauy0ihaLgdbw3bMuleC9LMk2Z3qP0FEcNGKLzBO6yIt6K1HEtmETypv0= 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=r9VmLxBd; 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=1711900923; cv=none; d=zohomail.eu; s=zohoarc; b=ItdR4datuyeBHV9JGUunPjhdVKVQCHIsFAK7Nrx1erJ5kLFlZi5lZQOI59rDjIq+uaVNLi61wUhxtAzFsFJjvoqvbQ18A2Y1mCEhyz4X3yX733asrfJ8hOMbbxenSOdVcvCuIWbHKSZK1P7lIHmWT4+p7XvIzjhxu8It6ua5YAg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1711900923; 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=C2WtKsBc1JRgHZZuJw4FpfBx5UPxzqv4dYWspQwk4eg=; b=O6hccTJeyffTsk6vTPK+jJ3kTNekSZbcPMgPETjsarn4eZiXcVnTmI8soUl336Lc0qQZjGCl+cU1wZXYrRNHaUifsf1HuzzApXqfhCdF/cUxWbhT1q5eTYpnvL+ZpiFPgEXfNHcI+okwhDO1FsWCfoGAp/28t8b65R2/PgHF1AE= 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=1711900923; 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=C2WtKsBc1JRgHZZuJw4FpfBx5UPxzqv4dYWspQwk4eg=; b=r9VmLxBd8T52cb+baTrmgZjatyjlD5DYNwjTWpylUMK/Emdc96BR1Gvs7QrGOUr3 zKz903kpCZz23AjRF4HIwTqDXdLaH8zLTWYCDO048YcasdpWq4uhN6It/bG4chCclrq 76fnOejsJ+S8D6h5GNf3LSgLq7hOmlR+ltDsCZvo= Received: from localhost.localdomain (217.20.170.230 [217.20.170.230]) by mx.zoho.eu with SMTPS id 1711900921346329.18890410430356; Sun, 31 Mar 2024 18:02:01 +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 v2 2/3] sched/debug: dump domains' level Date: Sun, 31 Mar 2024 19:01:48 +0300 Message-Id: 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. Signed-off-by: Vitalii Bursov --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 8d5d98a58..c1eb9a1af 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