commit | 36575d066e1e04718a51eb1493a2c96c1ff8b3fd | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Mon Feb 05 15:19:15 2018 -0800 |
committer | Chenbo Feng <fengc@google.com> | Wed Feb 28 20:40:50 2018 -0800 |
tree | 2fdbcb75fbff74bc8b8815fd745846f247ad0fd3 | |
parent | eac6c476e252ad9943b4854acf0163a861cb8aec [diff] |
Use c program as the eBPF kernel program With proper Clang and LLVM support. The eBPF program can be compiled and generated from simplified C program. The original c program is bpf_ingress.c and bpf_egress.c and the corresponding .o file the output containing the BPF bytecode that need to be loaded into the kernel at runtime. Bug: 30950746 Test: run cts -m CtsNetTestCases -t android.net.cts.TrafficStatsTest Change-Id: Iedff82bf759c979bbe8e698570eabba436b56d80