2021-02-09 19:32:41 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# Practical BPF examples
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								This git repository contains a diverse set of **practical BPF examples** that
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								solve (or demonstrate) a specific use-case using BPF.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								It is meant to ease doing **rapid prototyping and development**, writing C-code
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-06 12:33:09 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BPF programs using libbpf.  The goal is to make it **easier for developers** to
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-09 19:32:41 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								get started coding.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-15 17:18:38 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Many developers struggle to get a working BPF build environment.  The repo
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-09 19:32:41 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								enviroment makes it easy to build/compile BPF programs by doing the necessary
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								libbpf setup transparently and detect missing compile dependencies (via the
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-06 12:33:09 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[configure](configure) script). It is a declared goal to **make BPF programming
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-09 19:32:41 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								more consumable** by detecting and reporting issues (when possible).
							 |