From d4945eaa6f14efe63220392c3e267cb6ab0f9899 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 28 Jun 2019 21:01:10 +0000 Subject: dtas-graph: show inode number in hex, too 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(-) (limited to 'perl/dtas-graph') 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 <=> $b } keys %pids) { print "\nPIPEID PIPE_INO\n"; foreach my $pipe_id (sort { $a <=> $b } keys %graphed) { printf "% 6s", "|$pipe_id"; - print " ", $graphed{$pipe_id}, "\n"; + my $ino = $graphed{$pipe_id}; + printf " %u (0x%0x)\n", $ino, $ino; } print $graph->as_ascii; -- cgit v1.2.3-24-ge0c7