07a6016ebb 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #120  from eero-thia/thia/dedup  
							
							... 
							
							
							
							aya: eliminate name duplication in maps and programs. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								f56dd0a70b 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: eliminate name duplication in maps and programs.  
							
							... 
							
							
							
							Map and ProgramData objects had unnecessarily cloned strings for their
names, despite them being just as easily available to external users via
bpf.maps() and bpf.programs(). 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8043451973 
								
							
								 
							
						 
						
							
							
								
								bpf: re-export Lru hash maps from aya_bpf::maps  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a340c2a9fa 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #130  from wg/main  
							
							... 
							
							
							
							aya: use correct program name when relocating 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								bb8a813eef 
								
							
								 
							
						 
						
							
							
								
								aya: use correct program name when relocating  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								e4d9774bf7 
								
							
								 
							
						 
						
							
							
								
								obj: Improve section detection  
							
							... 
							
							
							
							This commit improves section detection.
Previously, a section named "xdp_metadata" would be interpretted as a
program section, which is incorrect. This commit first attempts to
identify a BPF section by name, then by section.kind() ==
SectionKind::Text (executable code). The computed section kind is
stored in the Section so variants can be easily matched on later.
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c0f695c4b6 
								
							
								 
							
						 
						
							
							
								
								bpf: Add LruHashMap and LruPerCpuHashMap  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a03426f194 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #115  from eero-thia/thia/impl_trait  
							
							... 
							
							
							
							aya: remove unnecessary usage of &dyn trait in favor of impl trait. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								61299e128e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #119  from eero-thia/thia/xdp_metadata  
							
							... 
							
							
							
							aya-bpf: expose xdp_md of XdpContext and add metadata functions. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d280b856bd 
								
									
								
							
								 
							
						 
						
							
							
								
								aya-bpf: expose xdp_md of XdpContext and add metadata functions.  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								daa7ea6d0d 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: remove unnecessary usage of &dyn trait in favor of impl trait.  
							
							... 
							
							
							
							This should improve performance in most situations by eliminating
unnecessary fat pointer indirection. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								98b36b23bc 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #116  from eero-thia/thia/close  
							
							... 
							
							
							
							aya: close file descriptors on Map drop. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								2955ca1d1f 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #121  from eero-thia/thia/programs_mut  
							
							... 
							
							
							
							aya: programs_mut iterator to complement programs. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c7f8db9a0b 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: programs_mut iterator to complement programs.  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a6bf554a74 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #122  from eero-thia/thia/include_bytes_aligned  
							
							... 
							
							
							
							aya: expand include_bytes_aligned to accept expressions. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1584bc47bd 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: close file descriptors on Map drop.  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								f8f17a09fb 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: expand include_bytes_aligned to accept expressions.  
							
							... 
							
							
							
							This allows one to this macro with literal expressions involving macros
such as concat! and env!. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								df393690d3 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #114  from deverton/wrap-bpf_get_current_uid_gid  
							
							... 
							
							
							
							Add wrapper and docs for for bpf_get_current_uid_gid 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fa23052e34 
								
									
								
							
								 
							
						 
						
							
							
								
								Add wrapper and docs for for bpf_get_current_uid_gid  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								6db30fad9c 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #108  from deverton/kprobe-debugfs  
							
							... 
							
							
							
							Support k/uprobes on older kernels. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0e84610976 
								
									
								
							
								 
							
						 
						
							
							
								
								Refactoring after feedback.  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d983836959 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #112  from dave-tucker/fix_cgroup_skb_attach  
							
							... 
							
							
							
							bpf: Fix cgroup_skb macro 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								eadba79deb 
								
							
								 
							
						 
						
							
							
								
								bpf: Add tests for cgroup_skb macro  
							
							... 
							
							
							
							This checks that the expand function produces the expected link_section
given certain input
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fa037a88e2 
								
							
								 
							
						 
						
							
							
								
								bpf: Fix cgroup_skb macro  
							
							... 
							
							
							
							This commit ensures that if no attach type is provided, that we use the
cgroup/skb section. If an attach type is provided we use the
cgroup_skb/$attach_type section.
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								761cb79fe3 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: fix test warnings ( #111 )  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								606c3267c4 
								
									
								
							
								 
							
						 
						
							
							
								
								Support pid filtering in debugfs  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1dc75542b4 
								
									
								
							
								 
							
						 
						
							
							
								
								Handle probe entry offsets  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								4e6aeb2e69 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'main' into kprobe-debugfs  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b82d7f0515 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #109  from deverton/dynamic-kver  
							
							... 
							
							
							
							Use current kernel version as default if not specified 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								3dff6e8555 
								
									
								
							
								 
							
						 
						
							
							
								
								Updates based on feedback  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								4277205e9d 
								
									
								
							
								 
							
						 
						
							
							
								
								Use current kernel version as default if not specified  
							
							... 
							
							
							
							When a BPF program doesn't specify the target kernel version, the
most compatible option is to set the program kernel version to match
the currently running kernel. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								42c9737d47 
								
									
								
							
								 
							
						 
						
							
							
								
								Functional detach of debugfs probes.  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a4faabcf93 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix event_alias comparison when looking in event list  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								84fa2197ec 
								
									
								
							
								 
							
						 
						
							
							
								
								Don't duplicate perf_attach code and formatting  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d0321bd1ee 
								
									
								
							
								 
							
						 
						
							
							
								
								Attempt auto detach of probe for debugfs  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								34aa790a91 
								
									
								
							
								 
							
						 
						
							
							
								
								Support k/uprobes on older kernels.  
							
							... 
							
							
							
							Prior to kernel 4.17 probes were attached via debugfs and this patch
attempts to make that work.
Tested on kernel 4.14. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5b0e518641 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #107  from deverton/skip-map-name  
							
							... 
							
							
							
							fix: make maps compatible with kernel <= 4.14 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								07e3824aa4 
								
									
								
							
								 
							
						 
						
							
							
								
								chore: formatting  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								49f6a8e819 
								
									
								
							
								 
							
						 
						
							
							
								
								Stub `kernel_version` for tests  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d966881e46 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix lint issues  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fc0861105a 
								
									
								
							
								 
							
						 
						
							
							
								
								fix: make maps compatible with kernel <= 4.14  
							
							... 
							
							
							
							In kernel 4.15 and additional parameter was added to allow maps to have
names but using this breaks on older kernels.
This change makes it so the name is only added on kernels 4.15 and
newer. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								182182d840 
								
							
								 
							
						 
						
							
							
								
								(cargo-release) version 0.10.6  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								170e98e71e 
								
							
								 
							
						 
						
							
							
								
								bpf: fix doc tests  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								31f96450d4 
								
							
								 
							
						 
						
							
							
								
								bpf: add bpf_probe_read_buf, bpf_probe_read_user_buf and bpf_probe_read_kernel_buf  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								f1fe817022 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #106  from dave-tucker/skbcontext  
							
							... 
							
							
							
							bpf: Rename SkSkbContext to SkBuffContext 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8a6fe4a640 
								
							
								 
							
						 
						
							
							
								
								bpf: Rename SkSkbContext to SkBuffContext  
							
							... 
							
							
							
							This is necessary since the context is used in many other program types
and not just in SK_SKB programs.
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								685b68359e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #105  from dave-tucker/socket_filter  
							
							... 
							
							
							
							bpf: Add macro for socket_filter programs 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a4bb29a3cc 
								
							
								 
							
						 
						
							
							
								
								bpf: Add macro for socket_filter programs  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5ea450f0ec 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #102  from dave-tucker/skskb  
							
							... 
							
							
							
							bpf: Add macros for sk_skb programs 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0b3e398f11 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #103  from dave-tucker/redirect_sk  
							
							... 
							
							
							
							bpf: Implement redirect for skbs on sockmap/sockhash 
							
						 
						
							4 years ago