From patchwork Fri Oct 26 09:25:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 29 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F0D0E16762; Fri, 26 Oct 2018 10:26:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 96A9216760 for ; Fri, 26 Oct 2018 10:26:09 +0100 (BST) Received: from localhost ([::1]:59104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFyNc-00037G-RM for patchwork@mira.cbaines.net; Fri, 26 Oct 2018 05:26:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFyNZ-00035R-KM for guix-patches@gnu.org; Fri, 26 Oct 2018 05:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFyNW-00081z-F8 for guix-patches@gnu.org; Fri, 26 Oct 2018 05:26:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFyNW-00081t-Aa for guix-patches@gnu.org; Fri, 26 Oct 2018 05:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFyNW-0002mf-5G for guix-patches@gnu.org; Fri, 26 Oct 2018 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#33161] [PATCH 0/1] Add 'guix processes' Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Oct 2018 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33161 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33161@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154054594610677 (code B ref -1); Fri, 26 Oct 2018 09:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Oct 2018 09:25:46 +0000 Received: from localhost ([127.0.0.1]:43182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFyNF-0002m9-Os for submit@debbugs.gnu.org; Fri, 26 Oct 2018 05:25:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFyNE-0002lw-8B for submit@debbugs.gnu.org; Fri, 26 Oct 2018 05:25:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFyN8-0007j4-EX for submit@debbugs.gnu.org; Fri, 26 Oct 2018 05:25:39 -0400 Received: from lists.gnu.org ([2001:4830:134:3::11]:47634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFyN8-0007il-Aj for submit@debbugs.gnu.org; Fri, 26 Oct 2018 05:25:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFyN5-0002r7-4n for guix-patches@gnu.org; Fri, 26 Oct 2018 05:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFyN3-0007gx-1w for guix-patches@gnu.org; Fri, 26 Oct 2018 05:25:34 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFyMt-0007ci-S7; Fri, 26 Oct 2018 05:25:25 -0400 Received: from dhcp-64-177.ens-lyon.fr ([140.77.64.177]:57956 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFyMs-0002F6-4E; Fri, 26 Oct 2018 05:25:23 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Fri, 26 Oct 2018 11:25:12 +0200 Message-Id: <20181026092512.28810-1-ludo@gnu.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! This patch adds a ‘guix processes’ command that I find handy to inspect/debug Guix activity. In particular, I realized I had been doing this by hand on berlin when trying to understand what’s going on, so this tool will be helpful there. :-) Note that it’s low-tech: it works by browsing the processes in /proc and extracting the relevant info from there. Thoughts? Ludo’. Ludovic Courtès (1): Add 'guix processes'. Makefile.am | 2 + doc/guix.texi | 56 ++++++++++ guix/scripts/processes.scm | 223 +++++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 1 + tests/processes.scm | 86 ++++++++++++++ 5 files changed, 368 insertions(+) create mode 100644 guix/scripts/processes.scm create mode 100644 tests/processes.scm