From owner-freebsd-hackers@freebsd.org Fri Nov 23 18:53:52 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C58C114ED52 for ; Fri, 23 Nov 2018 18:53:52 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66B98705E7 for ; Fri, 23 Nov 2018 18:53:51 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f42.google.com with SMTP id v10so3767897ios.13 for ; Fri, 23 Nov 2018 10:53:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=AKR+nckBiz3rTVsJy7PApZ15EG4ZWHRiLvNlhhlY6aQ=; b=fFTdoDHtPd7+zuDf+EPJaKKwf7c4qoHHRKgIFug6u009mPTFmWb+dXmM2rwRrNIV1k PtD0JIip4YlASN/KYtdFPP3iB55EoUjWUJaVenwXGao2+03oabqxJ23sJgTq9LHhlltS UP588tkpSdCPR45CWbgS9Npql9sF8Mo9D3RUYrK4Hz2ZKa3eymDYgvooEeZkCYyPQakL AbSLMhpQ35V8iUjYJKTI5tdkyaqb4UuoGv48W2Phf9J/NR0g6gsKlLOsuu+VZvEDcQeF WJtAW8uBtUIONurGTOQ0TT6bfF/pV6bZBe0fGP5hxfBEXumehMDBlLpeaRrgNYv3D5+p pC9g== X-Gm-Message-State: AA+aEWY+ghmnWwjYujjX/7w2SH+WnYHQQ24o8y+w4GcIDsR4gAFtZ8kJ NFv9AOlQaYU4YCvPNAiYD9ENGx/i X-Google-Smtp-Source: AFSGD/W9fa7T+AlcmgxzOGF7ToxZR34EQmDMu7V5YJ2jTirrD5NHAjcbWKGinnilR9JA6cwBF1XEXw== X-Received: by 2002:a6b:b717:: with SMTP id h23mr11937085iof.14.1542999224968; Fri, 23 Nov 2018 10:53:44 -0800 (PST) Received: from mail-io1-f54.google.com (mail-io1-f54.google.com. [209.85.166.54]) by smtp.gmail.com with ESMTPSA id c102sm3544406itd.38.2018.11.23.10.53.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 10:53:44 -0800 (PST) Received: by mail-io1-f54.google.com with SMTP id a3so9413343ioc.4 for ; Fri, 23 Nov 2018 10:53:44 -0800 (PST) X-Received: by 2002:a5d:94cc:: with SMTP id y12mr8353013ior.233.1542999224152; Fri, 23 Nov 2018 10:53:44 -0800 (PST) MIME-Version: 1.0 References: <878t1j1vrh.fsf@x230.onfire.org> In-Reply-To: <878t1j1vrh.fsf@x230.onfire.org> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 23 Nov 2018 10:53:33 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: top(1): adding grep like selection and system processes To: bch@online.de Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 66B98705E7 X-Spamd-Result: default: False [-3.85 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.83)[-0.831,0]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; IP_SCORE(-1.01)[ipnet: 209.85.128.0/17(-3.48), asn: 15169(-1.49), country: US(-0.09)]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[42.166.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 18:53:52 -0000 Hi Christian, I've wanted these features in top many times. Sounds great to me. Take care, Conrad On Fri, Nov 23, 2018 at 10:44 AM Christian Barthel wrote: > > Hello, > > I've added two features that I (personally) found useful in top(1): > > A grep-like feature to filter command names in top(1) (inspired by the > OpenBSD top version). One example may be to filter out all current > virtual machines by using "top -g bhyve" or interactively with "g > bhyve". (there was already a selection field ps.command; so, perhaps > someone is already working on a similar feature?). It is not possible > to filter with a regular expression. > > The second flag is selection of system processes with -K or > interactively toggle between user and system processes. > > I want to ask if this is of general interest for FreeBSD users or if its > useful for someone else here? I've tested it on FreeBSD 13.0-CURRENT. > > Christian > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"