Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp165034pxb; Mon, 31 Jan 2022 18:22:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHecLV4wQ1OEtbA2R/Xh66WIaeBQoED3Hg3VJ2ZGJWvIeWGHVk31Tgx4WRkg4tWUDzhpFu X-Received: by 2002:a05:6402:254c:: with SMTP id l12mr21558554edb.321.1643682138148; Mon, 31 Jan 2022 18:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643682138; cv=none; d=google.com; s=arc-20160816; b=ZILZRLHUp1OiGFGe/atXngOTCIjS/0CHyCpj2MxOpnaXwsaAZj5Ln0BR9D6sVJL9Ih MuuFnX1nZyvq0od7QDz/NJKTx5THVGFtSGwRP4QsOpf9C1m/GiqcKkF7o+gh+qRwZuTa tZBpQcbhILk15a+tmqm2stNQN3HTEELOzLtkfwJ1W3lWPTbIlnbrHUFkeM3Oc7z99UdC Rteq5aEaUbMKBpBL2kbKqfEAK8a6qKC/+LwzqbWz47ymnFWi0F4cIbwFh//3SjgTVZKS RjULFabZINXX+16QFhrmGV6KjcwZwMzKErXQCV6Kk7U6vE6o4bYW/r3iU88UkhrovkR9 7Vvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0mCWH6Tux8tcx0O8BuZbvK36ydxh3XeFUHA8Flrblcc=; b=JkwgPvaZdbgrx/AM32ICiE8V5nDEgtL6RGEN9Pca4MnwcGN8CKIvIYmGrWPvm4qBaQ HsXXLcK0xzj6SyRH4RdPPJUKesvgNLlXmq1YrqkFPW4PihKC/+sos97gYxJo/lX9ieFk IhLrCYsyB/rHU1r7Di93pRicD+1fyFi2XepXBTBhpfR1p+tNP/oZvcg+jnKnEwqkxTGl ivvTcjt7pILDc0eahVxbm7yM99XaxQEmHbNcl5zuY8sfuS0FpEoavG1Cnryyoedp7o/5 S60R438h1g5NvDAvZx95PCvRsYPUikVyaHLZ8pvbu8MnC0AX+dtJ0ejwz5dsFS4yU/+Y kTRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@drummond.us header.s=google header.b=cmvGYiFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=drummond.us Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq3si9477928ejc.417.2022.01.31.18.21.53; Mon, 31 Jan 2022 18:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@drummond.us header.s=google header.b=cmvGYiFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=drummond.us Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351485AbiA2PXp (ORCPT + 99 others); Sat, 29 Jan 2022 10:23:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351193AbiA2PXl (ORCPT ); Sat, 29 Jan 2022 10:23:41 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA3AC061753 for ; Sat, 29 Jan 2022 07:23:40 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id z7so13239368ljj.4 for ; Sat, 29 Jan 2022 07:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drummond.us; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0mCWH6Tux8tcx0O8BuZbvK36ydxh3XeFUHA8Flrblcc=; b=cmvGYiFpo2ar6tVj5q2BCQVYb9k8BBD0XwhyxqAVItAmy2DCdgiftAuj8oc7BBE49Q LjK1fzbe0hOX97nInIogSNxADc9w4GpCfyauU6NFtNktDIG03u61lrQy9hqdUvd6EUft C6I/tHY4kzyBauIRoXYOzo9LGSe929OK0jEzQ59wjAL3By0a+QjA0M9X3G7I1kcoxcb7 Q0AdPG8TS8c6yTTOUze5l0qFpdoVitgV/p2s3UNbwqPC0EG+SKAZieLlLnSPMO8rnFD5 +FIv54+PLtXCBluE0vkOLnAVfI1OEciJIeE6mtAgIHH1+Z3qSeTB6dFp5Kah63auycAx k05w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0mCWH6Tux8tcx0O8BuZbvK36ydxh3XeFUHA8Flrblcc=; b=5QbVldsMzY9FN8Xeuz2gcXBz21XZUiWRfzKITMv6urQskIQpynnNiuf1l4C+vWQCAX IIc12dlQZAfQ3xuqdIhWlE2oHlgnS+FUzbpEl4elGn9XbWkXmzmoJ9UpV+/Y8cL5X+ge vvb6cZ/28p7T3AJfq3KumFqn7TGOS0lEm2Ki9ZUFmYQ9ZDIt63WusLH9PWzdHHjkDIm3 uinuagWfmG+JtDRB5enRIA8e0hS2vWYXtKO7+pQlIVJgxqCPhi8vcARsSQhfKrz4QYxh nh+Rje3dnd51uvgAw+Nr3Gl8j1IMIdZGZKTdg62ndmS0QpvGVxF6VFYhz1W/l+S97+jJ mleg== X-Gm-Message-State: AOAM532DRGCPSPvGQM+k3X2buTPcTZtTpWtTooJj+n3DGSeRSoOZynLM 63eSfXvRcYzm8SR3Td5gP1tpkZSy2DS5K9bJIkrRvA== X-Received: by 2002:a2e:994a:: with SMTP id r10mr8482884ljj.254.1643469817879; Sat, 29 Jan 2022 07:23:37 -0800 (PST) MIME-Version: 1.0 References: <20220118044259.764945-1-walt@drummond.us> In-Reply-To: From: Walt Drummond Date: Sat, 29 Jan 2022 07:23:26 -0800 Message-ID: Subject: Re: [PATCH 0/3] status: TTY status message request To: Greg KH Cc: agordeev@linux.ibm.com, arnd@arndb.de, benh@kernel.crashing.org, borntraeger@linux.ibm.com, chris@zankel.net, davem@davemloft.net, hca@linux.ibm.com, deller@gmx.de, ink@jurassic.park.msu.ru, James.Bottomley@hansenpartnership.com, jirislaby@kernel.org, mattst88@gmail.com, jcmvbkbc@gmail.com, mpe@ellerman.id.au, paulus@samba.org, rth@twiddle.net, dalias@libc.org, tsbogend@alpha.franken.de, gor@linux.ibm.com, ysato@users.osdn.me, linux-kernel@vger.kernel.org, ar@cs.msu.ru, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, sparclinux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ACK, will do. On Wed, Jan 26, 2022 at 5:45 AM Greg KH wrote: > > On Mon, Jan 17, 2022 at 08:42:57PM -0800, Walt Drummond wrote: > > This patchset adds TTY status message request feature to the n_tty > > line dicipline. This feature prints a brief message containing basic > > system and process group information to a user's TTY in response to a > > new control character in the line dicipline (default Ctrl-T) or the > > TIOCSTAT ioctl. The message contains the current system load, the > > name and PID of an interesting process in the forground process group, > > it's run time, percent CPU usage and RSS. An example of this message > > is: > > > > load: 0.31 cmd: sleep 3616843 [sleeping] 0.36r 0.00u 0.00s 0% 696k > > > > User API visible changes are limited to: > > - The addition of VSTATUS in termios.c_cc[] > > - The addition of NOKERNINFO bit in termios.l_cflags > > - The addition of the TIOCSTAT ioctl number > > > > None of these changes break the existing kernel api as the termios > > structure on all architectures has enough space in the control > > character array (.c_cc) for the new character, and the other changes > > are space agnostic. > > > > This feature is in many other Unix-like systems, both current and > > historical. In other implementations, this feature would also send > > SIGINFO to the process group; this implementation does not. > > > > Walt Drummond (3): > > vstatus: Allow the n_tty line dicipline to write to a user tty > > vstatus: Add user space API definitions for VSTATUS, NOKERNINFO and > > TIOCSTAT > > status: Display an informational message when the VSTATUS character is > > pressed or TIOCSTAT ioctl is called. > > > > arch/alpha/include/asm/termios.h | 4 +- > > arch/alpha/include/uapi/asm/ioctls.h | 1 + > > arch/alpha/include/uapi/asm/termbits.h | 34 ++--- > > arch/ia64/include/asm/termios.h | 4 +- > > arch/ia64/include/uapi/asm/termbits.h | 34 ++--- > > arch/mips/include/asm/termios.h | 4 +- > > arch/mips/include/uapi/asm/ioctls.h | 1 + > > arch/mips/include/uapi/asm/termbits.h | 36 ++--- > > arch/parisc/include/asm/termios.h | 4 +- > > arch/parisc/include/uapi/asm/ioctls.h | 1 + > > arch/parisc/include/uapi/asm/termbits.h | 34 ++--- > > arch/powerpc/include/asm/termios.h | 4 +- > > arch/powerpc/include/uapi/asm/ioctls.h | 2 + > > arch/powerpc/include/uapi/asm/termbits.h | 34 ++--- > > arch/s390/include/asm/termios.h | 4 +- > > arch/sh/include/uapi/asm/ioctls.h | 1 + > > arch/sparc/include/uapi/asm/ioctls.h | 1 + > > arch/sparc/include/uapi/asm/termbits.h | 38 +++--- > > arch/xtensa/include/uapi/asm/ioctls.h | 1 + > > drivers/tty/Makefile | 2 +- > > drivers/tty/n_tty.c | 113 +++++++++++----- > > drivers/tty/n_tty_status.c | 162 +++++++++++++++++++++++ > > drivers/tty/tty_io.c | 2 +- > > include/asm-generic/termios.h | 4 +- > > include/linux/tty.h | 123 ++++++++--------- > > include/uapi/asm-generic/ioctls.h | 1 + > > include/uapi/asm-generic/termbits.h | 34 ++--- > > 27 files changed, 461 insertions(+), 222 deletions(-) > > create mode 100644 drivers/tty/n_tty_status.c > > > > -- > > 2.30.2 > > > > You forgot to cc: me on patch 2/3, which would be needed if I was to > take them all. > > Please fix up patch 2 and resend the whole series. > > thanks, > > greg k-h