Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2717421lqz; Wed, 3 Apr 2024 06:46:44 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCV3BGspRm3oIAp9NvWhhpEf+riFftTcy/p0MiV9ABHzFmpgU3yAAaOB+uVZeuFpHCBJQCbilI2DUZtlp/7NwQ8xzr8A6mV5aKwIlB5DLQ== X-Google-Smtp-Source: AGHT+IHwqi3DBEqj3Y3s85/uEI9V7MgincLdn+Ib9+FsJLuPgQBdYWrOoo/K29ZuXMBLzGcCPyvO X-Received: by 2002:a17:90a:b117:b0:2a2:61a0:d1f4 with SMTP id z23-20020a17090ab11700b002a261a0d1f4mr3533133pjq.18.1712152003971; Wed, 03 Apr 2024 06:46:43 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1712152003; cv=pass; d=google.com; s=arc-20160816; b=NfRwzaXAbVIJvZ8M77es2xDLmM7ljb8EpBmuFmJWt26pn3LFJfYew6ON85X+p06x6r 9lNKE8yA+pAeXD3RaDUl8Mr83AVOXiZAjEgg+ZR5KveSZBsql3iGd0ZK+cdJcVmTkI9y yhOkeR8Iq4SpwqVEMD6hCBBAA59ihTH4VetWFclfn52GdpzscO0VfEW35oZNy2Oq2ZKO 0m8RO3cm9ZEy7nNndQxjIFNoDyNFlwL+B6Zw2CAZZYa1yia6PNhDXJTvBTsKhhxaAPiG riPGcFSlZKYDbrGk9fI4FZyzoohWnZksDleoiVMQ/UQjluagDwulCdekAVv2Klv9U7r/ eCCw== 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=/G/nzSQ7kdwKRJT389pLw6gQqAhf/jq7kfm0Q/TR32c=; fh=SotPdUFMeEEyMi/Tle40x0qcsTe88+U78qIS3skPpMM=; b=hoZ3B/7ms3PWoMmI8DqX/+ItzMl6D45CWSUJSV4cdmNwT/3Kr3xd6dIqmI2LGUgRcY ksxGFwgtS+IUlUALfI3Kovg8SdK3VyP2HxCZhYp9637Nmk9VJqVbBbRlOsH0zTzxvKqf lSpwYjoLSss3XmJig6koJxgkEIyq6SMRsPg9h3y23nhcWNmTZtX6Os5Zi7scPTRzVd4e 6d59YsElQyAFx2/pL+IF2MCyM7df7pxvGD0tC1g9MZyf074Ogjbut88iBK1I8a4wlBEI 5FnpOw9AM3D78QZKZFeImnmNEb18k6p7sRYkLgYpPPbV4BkpmUfKhyTzgcOP8NEEVx1S p6hg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b="MNYYXbv/"; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-129835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129835-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o13-20020a17090ac70d00b002a20a09e5c8si12710593pjt.10.2024.04.03.06.46.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b="MNYYXbv/"; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-129835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129835-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 0DC0FB20EEE for ; Wed, 3 Apr 2024 13:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 342AE1487D3; Wed, 3 Apr 2024 13:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b="MNYYXbv/" 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 1CAFA147C8C for ; Wed, 3 Apr 2024 13:28:56 +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=1712150939; cv=pass; b=r/uJewssxmx1GfDvpVSPQnayMoUZma12rFdGeEyOOC4JHl8uGoTdaHpGsdBEdwiIRXnQyioTuO0LuAZpoZdBKOBJiOahh5Bl39ccmzbUo/tbYkEffJxwSpuVmap2koED4BPo1fi+lenBsEXjz80ULYK+wHQbBjKLuUSetwo+lAY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150939; c=relaxed/simple; bh=HFBn8Va2EJRRaykJqU54uJ2V9festAwLtakbcR7l1cc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=O0LzhTryOz/48X69iytx6LciS28decURUdaVA8nduCeFk+zFambuWzkF/PA8sMMklaNa6Z+Uf0F9xbGvsua9S5JWAnUn037sGYwDUvgoZu5SLgy/4AMMwHkm2Ehvx7XXLptToGPsetP1O0jxhv/Jf5AvoPtkfuvMCdYqkUTmemA= 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=MNYYXbv/; 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=1712150904; cv=none; d=zohomail.eu; s=zohoarc; b=aWIrxTIW7F6b/pJERf47VnpgMm7j3CkLlArVoHatESuRZVQZvkzuJ9I2m/WXzli2OYuHP3ItVzuXX9gBmQMXzILK4ElaD6E8DhOnIJ6B9yLHVfAtYE+JKzaOEJYaUZdgA4geGyP7GbO8GLY0hB3KDq/rhKE2oXCPb0jAw2Ar+A4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1712150904; 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=/G/nzSQ7kdwKRJT389pLw6gQqAhf/jq7kfm0Q/TR32c=; b=Zl4CShTyJvq9plfA9Iz05KG+EPExeC3wNRm9y0EZ6Ef7LeGo1CpWovzygoJTPXNlSaJf7bxeelaUYfm225RRqhF7ADTnEKy0RmgqAtE8Mu7O2EDOhEtEUjHm1bgBCb9zbNZTakl/4VRH+AaYhPemgNiQuzbBJ9eLW6CJpBHJjwA= 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=1712150904; 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=/G/nzSQ7kdwKRJT389pLw6gQqAhf/jq7kfm0Q/TR32c=; b=MNYYXbv/+MsnMTJuH2ezJ3BYpD9EcldGsHFsx7cc6GKxoa2kXWyatuLluzAVkPty arJFwflOZOiVxTo6PSJy+xg3A65yWU6Ahi7DcLmWkKhYMS6AE2FnZIPWQSnRmpP+kh/ RvShgoHzNT6/raTj07xMc53zXN7PVwetPyRyfPq4= Received: from localhost.localdomain (217.20.170.230 [217.20.170.230]) by mx.zoho.eu with SMTPS id 1712150902076254.87269508142435; Wed, 3 Apr 2024 15:28:22 +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 v3 2/3] sched/debug: dump domains' level Date: Wed, 3 Apr 2024 16:28:05 +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 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