Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp27579rdb; Wed, 21 Feb 2024 15:54:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrBDwPeiieOgPVQqKsi6V/eh+N2yNgmme49SHM13k+ldmfjlON2NtVmd50QhDMGrlKgmVijqPyXOUODSdlW3geU2ePf9NnobjMPjko9Q== X-Google-Smtp-Source: AGHT+IH/+9lga4pjXzQcuXV9QJ7QQ/Sl2AnWgqcnKTZg6VSZ/UFlZ42Bh2ywVUujR+tOoAaWyDbZ X-Received: by 2002:a17:90a:f405:b0:299:c25f:962b with SMTP id ch5-20020a17090af40500b00299c25f962bmr7345218pjb.35.1708559654906; Wed, 21 Feb 2024 15:54:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708559654; cv=pass; d=google.com; s=arc-20160816; b=BZkXrfcaj4WPRaVp0AaO6igHgILzJj38ijrrDpGDcGpu6KH/pgFvs7RGu8/Amh1NhS uR7kLcXs0+7woNCqxLLN29Yyvtrd5sMVJKgIhRHat3mE0aMMfdgJv5pFMENvXsn5zS2F rfuUGu0jdijK9Zle3CZUX9zQ7MHUUn+Al/1TXA9vij5KiFBYxXYqNhKFothyHBkEaa72 Q9Uj0O59T7s3/H2+lw2fvkjQlhatHK18Pwyj+wgYe6JWUTSL85X5dLKg/iICQV6nBK0r KMwABd+TtP2jKOAri8FFsrLDfTznxLhmE2lC7VHg1s9VjeyCYQEFAYimp+KaYj3t1Xa/ hhEQ== 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=1su4bhjrBBMrdSqfbIgh/BKi3HeYy6aXCvEq3H+RXpw=; fh=tNaGHukN7lSQN8DcwUAqgbGfxHJKXayrqM2pgstJyVw=; b=pc4fkmasrAPNNS32DQEgrOIyyBZxNFEmlyS+aequqGomV2Nd32XWD2Z3mqPHcimlFD WuxHpQUNsV/DyK7JrxXwwFYp4xq5WOh13T8FmJFV+ja63qyNsg1436/2BcCUlUaVeNQv X5xGwwKl1+6g0KERGF/gUTfeYYlzHSTtVn9Ob41Ib7lSQMedJWil4xZI55XtQ69NcMm2 Qa03e9gcue211VNVMCcpXIz9TnbeO/j5NvyvdwDe3OnAUVU9XU0EgDPtND3KyrMY1Ufk cBBb7sOZsbsTHd6p1TaG1ZJXU5RQwUjjrFvW5jhhLPeqG3BEMHBB07JzJpOqi6eIyEWa Qs6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-75692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75692-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 m14-20020a17090aab0e00b0029908feb35dsi2354895pjq.159.2024.02.21.15.54.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 15:54:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75692-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-75692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75692-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 A3F0EB2322E for ; Wed, 21 Feb 2024 23:52:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19F4912D763; Wed, 21 Feb 2024 23:51:41 +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 91BE612C544 for ; Wed, 21 Feb 2024 23:51:40 +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=1708559500; cv=none; b=ZhZ3qeE05PqVohij44CsDWCmuWKmz1+Semdn1Fp2JviLDxR7ZQ11fbaQwt7jffkGR4dL2gbhtKmn/9n4xT6NXFcBQmd4Ic1CKZm2nm80m29DKSATjHxpZEtE1SlkU55M4df4jbVReZRUtzz68vu8Be63e5UMK/O5rqTU4mEwZW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708559500; c=relaxed/simple; bh=GEBGPPAlXg/DSVD8pbgIvIe1wHfhSDe11L2YQdQJz9A=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iiTohWn4ExVEJrF8u/NvqLuOA+nlblw4w4hgskScIdK/5trktkteerqURPKnkLPZMRVlklyg5qZgUBYirzYwtqb64x0C3s4SIpJUXzxvFjmV1N5ok/YpCfeJu5rlKuxRukQx18nVBYCwNieqyeOMzxAV1LIyAkrFxUet4ZcObTg= 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 248B3C433F1; Wed, 21 Feb 2024 23:51:36 +0000 (UTC) Date: Wed, 21 Feb 2024 18:53:24 -0500 From: Steven Rostedt To: Ankur Arora Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jpoimboe@kernel.org, mark.rutland@arm.com, jgross@suse.com, andrew.cooper3@citrix.com, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Masami Hiramatsu , Jonathan Corbet Subject: Re: [PATCH 29/30] Documentation: tracing: add TIF_NEED_RESCHED_LAZY Message-ID: <20240221185324.66986c9a@gandalf.local.home> In-Reply-To: <87bk89e72r.fsf@oracle.com> References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-30-ankur.a.arora@oracle.com> <20240221164334.6f8c69e8@gandalf.local.home> <87bk89e72r.fsf@oracle.com> X-Mailer: Claws Mail 3.19.1 (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 On Wed, 21 Feb 2024 15:22:20 -0800 Ankur Arora wrote: > > I wonder if we should also add this information in /sys/kernel/tracing/README > > so that it is easier to find on a machine. > > Yeah, there is a problem with the discovery. Seems a little out of place > in tracing/README though. > > How about something like this? Though this isn't really a model of clarity. Could work, but I would also have it check the configs that are set in the kernel, and only show the options that are available with the current configs that are enabled in the kernel. > > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -4292,7 +4292,7 @@ static void print_lat_help_header(struct seq_file *m) > { > seq_puts(m, "# _------=> CPU# \n" > "# / _-----=> irqs-off/BH-disabled\n" > - "# | / _----=> need-resched \n" > + "# | / _----=> need-resched [ l: lazy, n: now, p: preempt, b: l|n, L: l|p, N: n|p, B: l|n|p ]\n" > "# || / _---=> hardirq/softirq \n" > "# ||| / _--=> preempt-depth \n" > "# |||| / _-=> migrate-disable \n" > > > Also, haven't looked at trace-cmd. Anything I should be sending a patch > out for? There's really nothing that explains it. But that probably should be fixed. -- Steve