|  |  | @ -71,13 +71,14 @@ async fn main() -> Result<(), anyhow::Error> { | 
			
		
	
		
		
			
				
					
					|  |  |  | {% endif %} |  |  |  | {% endif %} | 
			
		
	
		
		
			
				
					
					|  |  |  |     env_logger::init(); |  |  |  |     env_logger::init(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     let rlim = libc::rlimit{ |  |  |  |     // Allow current process to lock memory for eBPF resources.
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     let rlim = libc::rlimit { | 
			
		
	
		
		
			
				
					
					|  |  |  |         rlim_cur: libc::RLIM_INFINITY, |  |  |  |         rlim_cur: libc::RLIM_INFINITY, | 
			
		
	
		
		
			
				
					
					|  |  |  |         rlim_max: libc::RLIM_INFINITY, |  |  |  |         rlim_max: libc::RLIM_INFINITY, | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     let ret = unsafe { libc::setrlimit(libc::RLIMIT_MEMLOCK, &rlim) }; |  |  |  |     let ret = unsafe { libc::setrlimit(libc::RLIMIT_MEMLOCK, &rlim) }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if !ret == 0{ |  |  |  |     if ret != 0 { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         warn!("cannot remove mem lock"); |  |  |  |         warn!("remove limit on locked memory failed, ret is: {}", ret); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     // This will include your eBPF object file as raw bytes at compile-time and load it at
 |  |  |  |     // This will include your eBPF object file as raw bytes at compile-time and load it at
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |