From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id EDC8C1F461 for ; Fri, 28 Jun 2019 21:01:36 +0000 (UTC) Received: from localhost ([::1]:36310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgxzz-0004An-6k for e@80x24.org; Fri, 28 Jun 2019 17:01:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52390) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgxzq-0004Ag-9m for dtas-all@nongnu.org; Fri, 28 Jun 2019 17:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgxzn-0001ci-JZ for dtas-all@nongnu.org; Fri, 28 Jun 2019 17:01:25 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:59110) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgxzl-0001UY-LB for dtas-all@nongnu.org; Fri, 28 Jun 2019 17:01:22 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 81BB01F461 for ; Fri, 28 Jun 2019 21:01:10 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH] dtas-graph: show inode number in hex, too Date: Fri, 28 Jun 2019 21:01:10 +0000 Message-Id: <20190628210110.12996-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" This makes it easier to match up pipes to the contents of /proc/$PID/fdinfo/$EVENTPOLL_FD (ep_show_fdinfo) for software using epoll. (I'm using this tool outside of dtas, too) --- perl/dtas-graph | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl/dtas-graph b/perl/dtas-graph index 9028303..b243086 100755 --- a/perl/dtas-graph +++ b/perl/dtas-graph @@ -123,7 +123,8 @@ foreach my $pid (sort { $a <=3D> $b } keys %pids) { print "\nPIPEID PIPE_INO\n"; foreach my $pipe_id (sort { $a <=3D> $b } keys %graphed) { printf "% 6s", "|$pipe_id"; - print " ", $graphed{$pipe_id}, "\n"; + my $ino =3D $graphed{$pipe_id}; + printf " %u (0x%0x)\n", $ino, $ino; } =20 print $graph->as_ascii; --=20 EW