@@ -81,16 +81,11 @@ impl ZoneInfo {
8181 /// from event parameters and looks up the corresponding FD info.
8282 ///
8383 /// Returns None if the event doesn't use an FD or if the FD info is not found.
84- pub fn get_event_fdinfo (
85- & self ,
86- event : & ZoneKernelSyscallEvent ,
87- ) -> Option < ZoneKernelFdInfo > {
84+ pub fn get_event_fdinfo ( & self , event : & ZoneKernelSyscallEvent ) -> Option < ZoneKernelFdInfo > {
8885 // Only exit events are captured by modern_bpf driver
8986 if parsers:: has_fd ( event) {
9087 parsers:: get_fdi ( event) . and_then ( |fdi| {
91- self . with_leader_fdlist_ctx ( event, |fdlist| {
92- fdlist. get ( & fdi) . cloned ( )
93- } )
88+ self . with_leader_fdlist_ctx ( event, |fdlist| fdlist. get ( & fdi) . cloned ( ) )
9489 } )
9590 } else {
9691 None
@@ -690,7 +685,9 @@ impl ZoneInfo {
690685 // This is the old OPENAT format that required enter event data.
691686 // Modern_bpf generates PPME_SYSCALL_OPENAT_2_X instead (see openat.bpf.c line 20).
692687 // If we somehow receive this event type, we can't process it without enter events.
693- warn ! ( "Received unsupported PPME_SYSCALL_OPENAT_X event (requires enter event data)" ) ;
688+ warn ! (
689+ "Received unsupported PPME_SYSCALL_OPENAT_X event (requires enter event data)"
690+ ) ;
694691 return Ok ( ( ) ) ;
695692 }
696693 PPME_SYSCALL_OPENAT_2_X | PPME_SYSCALL_OPENAT2_X => {
@@ -1656,7 +1653,8 @@ impl ZoneInfo {
16561653 ) ;
16571654
16581655 if tinfo. clone_ts != 0 {
1659- tinfo. exe_ino_ctime_duration_clone_ts = tinfo. clone_ts . wrapping_sub ( tinfo. exe_ino_ctime ) ;
1656+ tinfo. exe_ino_ctime_duration_clone_ts =
1657+ tinfo. clone_ts . wrapping_sub ( tinfo. exe_ino_ctime ) ;
16601658 }
16611659
16621660 if tinfo. pidns_init_start_ts != 0 && tinfo. exe_ino_ctime > tinfo. pidns_init_start_ts
@@ -3123,7 +3121,6 @@ impl ZoneInfo {
31233121 }
31243122 }
31253123 }
3126-
31273124}
31283125
31293126impl ThreadState {
@@ -3496,7 +3493,6 @@ mod tests {
34963493 assert_eq ! ( result, Some ( 100 ) ) ;
34973494 }
34983495
3499-
35003496 #[ test]
35013497 fn maybe_get_event_fdinfo_returns_none_no_thread ( ) {
35023498 let zinfo = ZoneInfo :: default ( ) ;
0 commit comments