@@ -287,15 +287,17 @@ static int del_proc_info_from_cache(struct symbolizer_cache_kvp *kv)
287287
288288int get_proc_info_from_cache (pid_t pid , uint8_t * cid , int cid_size ,
289289 uint8_t * name , int name_size , int mnt_id ,
290- uint32_t mntns_id , kern_dev_t s_dev ,
291- char * mount_point , char * mount_source ,
292- int mount_size , fs_type_t * file_type )
290+ uint32_t mntns_id , uint32_t * self_mntns_id ,
291+ kern_dev_t s_dev , char * mount_point ,
292+ char * mount_source , int mount_size ,
293+ fs_type_t * file_type )
293294{
294295 int ret = -1 ;
295296 symbol_caches_hash_t * h = & syms_cache_hash ;
296297 struct symbolizer_cache_kvp kv ;
297298 kv .k .pid = (u64 ) pid ;
298299 kv .v .proc_info_p = 0 ;
300+ * self_mntns_id = 0 ;
299301 memset (cid , 0 , cid_size );
300302 memset (name , 0 , name_size );
301303 memset (mount_point , 0 , mount_size );
@@ -314,6 +316,7 @@ int get_proc_info_from_cache(pid_t pid, uint8_t * cid, int cid_size,
314316 memcpy_s_inline ((void * )name , name_size , p -> comm ,
315317 sizeof (p -> comm ));
316318 }
319+ * self_mntns_id = p -> mntns_id ;
317320 AO_DEC (& p -> use );
318321 ret = 0 ;
319322 }
@@ -1015,10 +1018,12 @@ void check_and_update_proc_info(bool output_log)
10151018
10161019int get_proc_info_from_cache (pid_t pid , uint8_t * cid , int cid_size ,
10171020 uint8_t * name , int name_size , int mnt_id ,
1018- uint32_t mntns_id , kern_dev_t s_dev ,
1019- char * mount_point , char * mount_source ,
1020- int mount_size , fs_type_t * file_type )
1021+ uint32_t mntns_id , uint32_t * self_mntns_id ,
1022+ kern_dev_t s_dev , char * mount_point ,
1023+ char * mount_source , int mount_size ,
1024+ fs_type_t * file_type )
10211025{
1026+ * self_mntns_id = 0 ;
10221027 memset (cid , 0 , cid_size );
10231028 memset (name , 0 , name_size );
10241029 memset (mount_point , 0 , mount_size );
0 commit comments