-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bpf2bpf to simplify libpcap ebpf injection
By using bpf2bpf: 1. We don't have to search for registers holding skb->data and skb-data_end, because they must be at R4 and R5 as arguments. 2. We no longer need a bpf_printk() to be replaced, so pwru developers can use printk for debugging again. 3. We don't need to assume clang behavior or rely on specific clang version. 4. We can delete a lot of code to simplify logic. To achieve it, we mustn't strip bpf objects because we need symbols to find `filter_pcap_ebpf`. Signed-off-by: Zhichuan Liang <gray.liang@isovalent.com>
- Loading branch information
1 parent
03e1711
commit 97ab6e2
Showing
4 changed files
with
46 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters