From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 7 18:14:33 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61457106566B for ; Wed, 7 Oct 2009 18:14:33 +0000 (UTC) (envelope-from brampton@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id E28DE8FC23 for ; Wed, 7 Oct 2009 18:14:32 +0000 (UTC) Received: by ewy18 with SMTP id 18so8601504ewy.43 for ; Wed, 07 Oct 2009 11:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=ru1lamSbnclZL1mju2Fu5gWUlz+2/CDXqIKzk4+8Vrc=; b=Ig9Ygunu82QirYqzIJ4Bfb4OvWK1fUG5l/udGa02yy1JuTytS45l4JInpSB/oWK814 MR6CpcJftVXuaJNH4GlsQ5p01nuOcjExfJpIzgaqX99eaRWgZPrEko4wjs8qulodGRyQ AaO4rJisYcQQDFSonnmHs9IFeaV96PBAjeXRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=gthRCyP6w2sfN97FXP+qej9Y5WGC4+VydZSfK60ceYuz11L4qX6xQPHKgJFv8E2ssG ZS7OTB6I9zjHocm52sT7PmLuRH9WsZ8ZQsD/pNyPBv6TiPkltkWW9zuxxQxgbZSNZ8W8 /2Jdu+VtlrEevtFDl6dNGgV/C6I0MuoMmu5Fg= MIME-Version: 1.0 Sender: brampton@gmail.com Received: by 10.216.89.84 with SMTP id b62mr56346wef.227.1254939271897; Wed, 07 Oct 2009 11:14:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Oct 2009 19:14:31 +0100 X-Google-Sender-Auth: da54a5f9f9ed74a4 Message-ID: From: Andrew Brampton To: Ryan Stone Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Make top display thread IDs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 18:14:33 -0000 2009/10/7 Ryan Stone : > If a thread has a name, top -H will display it in parentheses after > the executable name. =C2=A0One option would be to print the tid there if > the thread has no name. > Thanks for your suggestion. I would like the TID always to be displayed, so displaying it when there is no name wouldn't work for me. If you haven't looked at the patch I placed the TID directly after the PID column (when displaying threads in -H mode). thanks Andrew