[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] dtas-graph: show inode number in hex, too
From: |
Eric Wong |
Subject: |
[PATCH] dtas-graph: show inode number in hex, too |
Date: |
Fri, 28 Jun 2019 21:01:10 +0000 |
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 <=> $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;
--
EW
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] dtas-graph: show inode number in hex, too,
Eric Wong <=