81e07e9661 
								
									
								
							
								 
							
						 
						
							
							
								
								Implement query for lirc programs ( #32 )  
							
							... 
							
							
							
							Signed-off-by: Sean Young <sean@mess.org> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fa2cbe2f82 
								
							
								 
							
						 
						
							
							
								
								aya: fix clippy warnings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c2a90c2c01 
								
							
								 
							
						 
						
							
							
								
								aya: tc: add qdisc_detach_program  
							
							... 
							
							
							
							qdisc_detach_program can be used to detach all the programs that have
the given name. It's useful when you want to detach programs that were
attached by some other process (eg. iproute2), or when you want to
detach programs that were previously left attached because the program
that attached them was killed. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0a9d02140a 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: fix alignment when writing attributes  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								abb199e6f4 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: fix handling of multipart messages  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								9185f32f6f 
								
							
								 
							
						 
						
							
							
								
								aya: tc: clean up netlink code a bit  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b4b019e447 
								
									
								
							
								 
							
						 
						
							
							
								
								fix: pass BTF object by reference in order to allow multiple eBPF programs to share it and save memory ( closes   #30 ). ( #31 )  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								55ba0538f2 
								
									
								
							
								 
							
						 
						
							
							
								
								bpf: add support for tracepoint program ( #29 )  
							
							... 
							
							
							
							This patch add initial support for tracepoint program type.
Hope you enjoy.
Signed-off-by: Tw <wei.tan@intel.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d996a88de4 
								
							
								 
							
						 
						
							
							
								
								aya: fix formatting  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								12ea9f3500 
								
							
								 
							
						 
						
							
							
								
								CI: enable clippy for aya, aya-gen and xtask  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								2d16843d5d 
								
							
								 
							
						 
						
							
							
								
								xtask: clippy warnings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5dfd27dbd0 
								
							
								 
							
						 
						
							
							
								
								bpf: fix some clippy warnings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1159741eda 
								
							
								 
							
						 
						
							
							
								
								aya-gen: fix clippy warnings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0878c4505a 
								
							
								 
							
						 
						
							
							
								
								aya: fix clippy warnings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								21e01df242 
								
							
								 
							
						 
						
							
							
								
								aya: obj: improve parse_map_def tests  
							
							... 
							
							
							
							Add a test that checks that we handle ELF section padding correctly and
simplify the other tests. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b657930a3e 
								
							
								 
							
						 
						
							
							
								
								aya: don't error out parsing padded map sections  
							
							... 
							
							
							
							Fixes  #28  
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8311abfdcb 
								
									
								
							
								 
							
						 
						
							
							
								
								added support for armv7-unknown-linux-gnueabi and armv7-unknown-linux-gnueabihf  
							
							... 
							
							
							
							* new: added support for armv7-unknown-linux-gnueabi (closes alessandrod/aya/issues/22)
* fix: replaced custom type defintions with proper libc types
* fix: fixed pointless parameter binding
* new: added linker for armv7-unknown-linux-gnueabihf to cargo config 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b3ecbe7c54 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #27  from tw4452852/minor_fix_for_stackid  
							
							... 
							
							
							
							bpf: fix a minor bug due to stackid allocation 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d1b7b024dc 
								
							
								 
							
						 
						
							
							
								
								bpf: fix a minor bug due to stackid allocation  
							
							... 
							
							
							
							The type casting introduces an allocation, this will cause compiling failure when linking final bpf target.
So remove this casting to fix this issue.
BTW, the following is the failure I met:
= note: 07:24:12 [ERROR] fatal error: "unable to allocate function return #1"
          PLEASE submit a bug report to https://bugs.llvm.org/  and include the crash backtrace.
          Stack dump:
          0.    Running pass 'Function Pass Manager' on module 'trace_bpf-001a275b17e9eb12'.
          1.    Running pass 'BPF DAG->DAG Pattern Instruction Selection' on function '@_ZN7aya_bpf4maps11stack_trace10StackTrace11get_stackid17h32b649bc3780c0aaE'
Signed-off-by: Tw <wei.tan@intel.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								7eddffb962 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #25  from tw4452852/stacktrace  
							
							... 
							
							
							
							bpf: add support for STACK_TRACE map 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fd20bd5e23 
								
							
								 
							
						 
						
							
							
								
								bpf: add support for STACK_TRACE map  
							
							... 
							
							
							
							This path support initial support for BPF_MAP_TYPE_STACK_TRACE.
Signed-off-by: Tw <wei.tan@intel.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								ef39e0ebd2 
								
							
								 
							
						 
						
							
							
								
								bpf: sk_skb: add ::cb() and ::cb_mut() to work with skb->cb  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								9c8e78b7d4 
								
							
								 
							
						 
						
							
							
								
								aya: tc: make qdisc_add_clsact return io::Error  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								35e9b4e639 
								
							
								 
							
						 
						
							
							
								
								bpf: don't generate bpf_map_def and fix aya_bpf::bindings overrides  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								ec5822d78e 
								
							
								 
							
						 
						
							
							
								
								bpf: sk_skb: wrap more helpers  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								122a5306e7 
								
							
								 
							
						 
						
							
							
								
								aya, aya-bpf-bindings: regenerate bindings  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a847d6d53b 
								
							
								 
							
						 
						
							
							
								
								xtask: aya-bpf-bindings: add bpf_adj_room_mode  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8cd669ca9a 
								
							
								 
							
						 
						
							
							
								
								xtask: fix include paths for kernel headers bundled with libbpf  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								08c71dfeb1 
								
							
								 
							
						 
						
							
							
								
								aya: kprobe: remove pid argument  
							
							... 
							
							
							
							Kprobes can only be attached globally. Per-pid logic needs to be
implemented on the BPF side with bpf_get_current_pid_tgid. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								35f15f70e0 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: add minimum kernel version for each map and program type ( #18 )  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								be035bf42c 
								
							
								 
							
						 
						
							
							
								
								CI: add lint workflow  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1d294ba34c 
								
							
								 
							
						 
						
							
							
								
								CI: don't install bpf-linker  
							
							... 
							
							
							
							The bpf code isn't tested in CI yet 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								bb15e82c1d 
								
							
								 
							
						 
						
							
							
								
								aya: add missing load() in kprobe example  
							
							... 
							
							
							
							Fixes  #17  
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d8d311738c 
								
									
								
							
								 
							
						 
						
							
							
								
								aya: support both bpf_map_def layout variants  
							
							... 
							
							
							
							Libbpf and iproute2 use two slightly different `bpf_map_def` layouts. This change implements support for loading both.
Refs: #10 , #14  
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								97cb0db0ad 
								
							
								 
							
						 
						
							
							
								
								bpf/aya-bpf-cty: target_arch for bpf*-unknown-none was renamed to "bpf"  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d0a0be65d2 
								
							
								 
							
						 
						
							
							
								
								Add contributing section to readme  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								58e45f8513 
								
							
								 
							
						 
						
							
							
								
								Add CONTRIBUTING.md  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5f0ff1698a 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: tc: use ptr::read_unaligned instead of deferencing a potentially unaligned ptr  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								7f2ceaf12e 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: port TC code to using new nlattr utils  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d9b5ab575f 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: refactor nlattr writing code  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c240a2c733 
								
							
								 
							
						 
						
							
							
								
								aya: netlink: introduce NestedAttrs builder and switch XDP to it  
							
							... 
							
							
							
							NestedAttrs is a safe interface for writing nlattrs. This is the first
step towards making the netlink code safer and easier to maintain. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								76baefe61b 
								
							
								 
							
						 
						
							
							
								
								Add discord link to readme  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								bb595c4e69 
								
							
								 
							
						 
						
							
							
								
								aya: refactor program section parsing  
							
							... 
							
							
							
							This renames aya::obj::ProgramKind to aya::obj::ProgramSection and moves
all the program section parsing to ProgramSection::from_str. 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0188622580 
								
							
								 
							
						 
						
							
							
								
								aya: fix tracepoint prefix in a couple more places  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a0151dd485 
								
							
								 
							
						 
						
							
							
								
								aya: fix trace point section name  
							
							... 
							
							
							
							Trace points have prefix "tracepoint" not "trace_point". 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								521ef09463 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4  from seanyoung/doctest  
							
							... 
							
							
							
							Fix doctest and run them during CI 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								d70e291580 
								
							
								 
							
						 
						
							
							
								
								(cargo-release) version 0.10.2  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								fee71b42f1 
								
							
								 
							
						 
						
							
							
								
								aya: tc: fix QdiscRequest layout  
							
							
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1196ba1dcc 
								
							
								 
							
						 
						
							
							
								
								Fix doctest and run them during CI  
							
							... 
							
							
							
							Signed-off-by: Sean Young <sean@mess.org> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								59cfbc51c8 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3  from seanyoung/lirc  
							
							... 
							
							
							
							Add support for lirc programs 
							
						 
						
							4 years ago