@@ -22,7 +22,7 @@ class SockHandlers(interfaces.configuration.VersionableInterface):
2222
2323 _required_framework_version = (2 , 0 , 0 )
2424
25- _version = (1 , 0 , 0 )
25+ _version = (2 , 0 , 0 )
2626
2727 def __init__ (self , vmlinux , task ):
2828 self ._vmlinux = vmlinux
@@ -507,7 +507,7 @@ def list_sockets(
507507 dfop_addr = vmlinux .object_from_symbol ("sockfs_dentry_operations" ).vol .offset
508508
509509 fd_generator = lsof .Lsof .list_fds (context , vmlinux .name , filter_func )
510- for _pid , _task_comm , task , fd_fields in fd_generator :
510+ for _pid , task_comm , task , fd_fields in fd_generator :
511511 fd_num , filp , _full_path = fd_fields
512512
513513 if filp .f_op not in (sfop_addr , dfop_addr ):
@@ -548,7 +548,7 @@ def list_sockets(
548548 except AttributeError :
549549 netns_id = NotAvailableValue ()
550550
551- yield task , netns_id , fd_num , family , sock_type , protocol , sock_fields
551+ yield task_comm , task , netns_id , fd_num , family , sock_type , protocol , sock_fields
552552
553553 def _format_fields (self , sock_stat , protocol ):
554554 """Prepare the socket fields to be rendered
@@ -595,6 +595,7 @@ def _generator(self, pids: List[int], netns_id_arg: int, symbol_table: str):
595595 )
596596
597597 for (
598+ task_comm ,
598599 task ,
599600 netns_id ,
600601 fd_num ,
@@ -617,6 +618,7 @@ def _generator(self, pids: List[int], netns_id_arg: int, symbol_table: str):
617618
618619 fields = (
619620 netns_id ,
621+ task_comm ,
620622 task .pid ,
621623 fd_num ,
622624 format_hints .Hex (sock .vol .offset ),
@@ -636,6 +638,7 @@ def run(self):
636638
637639 tree_grid_args = [
638640 ("NetNS" , int ),
641+ ("Process Name" , str ),
639642 ("Pid" , int ),
640643 ("FD" , int ),
641644 ("Sock Offset" , format_hints .Hex ),
0 commit comments