about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-28 21:01:10 +0000
committerEric Wong <e@80x24.org>2019-07-04 23:44:40 +0000
commitd4945eaa6f14efe63220392c3e267cb6ab0f9899 (patch)
tree9cf034337487993b43b5fec0405f15fb9393f4fc
parent2c269685ffbb1bb522e16502cdc3bedc0c29664e (diff)
downloaddtas-d4945eaa6f14efe63220392c3e267cb6ab0f9899.tar.gz
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)
-rwxr-xr-xperl/dtas-graph3
1 files changed, 2 insertions, 1 deletions
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;