commit | d602835b4f24e93dfbbc8314fc14241ee9b4fd23 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Mon Aug 19 15:20:04 2024 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Wed Aug 21 13:18:59 2024 -0700 |
tree | cba023e3718c5de285291b5d0bc177dc669319df | |
parent | 6c2a00f0499fe31c620098eae6cdafc0e0aac387 [diff] |
bpf: move bpf_headers into /bpf subdirectory Generated via: git mv staticlibs/native/bpf_headers bpf/headers cd bpf/headers/include git mv bpf/bpf_helpers.h . git mv bpf/bpf_map_def.h . manually fix up bpf/bpf_map_def.h include path bpf_helpers.h is only used by bpf programs so the 'bpf/' prefix is spurious. bpf_map_def.h is only used by bpf programs and the two bpfloaders, which effectively means the 'bpf/' prefix isn't useful. Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic3fc4e354a15821c27c23b7dbc019daad9f6ad85
diff --git a/staticlibs/native/bpf_headers/Android.bp b/bpf/headers/Android.bp similarity index 100% rename from staticlibs/native/bpf_headers/Android.bp rename to bpf/headers/Android.bp
diff --git a/staticlibs/native/bpf_headers/BpfMapTest.cpp b/bpf/headers/BpfMapTest.cpp similarity index 100% rename from staticlibs/native/bpf_headers/BpfMapTest.cpp rename to bpf/headers/BpfMapTest.cpp
diff --git a/staticlibs/native/bpf_headers/BpfRingbufTest.cpp b/bpf/headers/BpfRingbufTest.cpp similarity index 100% rename from staticlibs/native/bpf_headers/BpfRingbufTest.cpp rename to bpf/headers/BpfRingbufTest.cpp
diff --git a/staticlibs/native/bpf_headers/TEST_MAPPING b/bpf/headers/TEST_MAPPING similarity index 100% rename from staticlibs/native/bpf_headers/TEST_MAPPING rename to bpf/headers/TEST_MAPPING
diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfClassic.h b/bpf/headers/include/bpf/BpfClassic.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/BpfClassic.h rename to bpf/headers/include/bpf/BpfClassic.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfMap.h b/bpf/headers/include/bpf/BpfMap.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/BpfMap.h rename to bpf/headers/include/bpf/BpfMap.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h b/bpf/headers/include/bpf/BpfRingbuf.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h rename to bpf/headers/include/bpf/BpfRingbuf.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h b/bpf/headers/include/bpf/BpfUtils.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/BpfUtils.h rename to bpf/headers/include/bpf/BpfUtils.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/KernelUtils.h b/bpf/headers/include/bpf/KernelUtils.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/KernelUtils.h rename to bpf/headers/include/bpf/KernelUtils.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/WaitForProgsLoaded.h b/bpf/headers/include/bpf/WaitForProgsLoaded.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/WaitForProgsLoaded.h rename to bpf/headers/include/bpf/WaitForProgsLoaded.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/bpf_helpers.h b/bpf/headers/include/bpf_helpers.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/bpf_helpers.h rename to bpf/headers/include/bpf_helpers.h
diff --git a/staticlibs/native/bpf_headers/include/bpf/bpf_map_def.h b/bpf/headers/include/bpf_map_def.h similarity index 100% rename from staticlibs/native/bpf_headers/include/bpf/bpf_map_def.h rename to bpf/headers/include/bpf_map_def.h
diff --git a/bpf/loader/NetBpfLoad.cpp b/bpf/loader/NetBpfLoad.cpp index 00362b4..a10c9e3 100644 --- a/bpf/loader/NetBpfLoad.cpp +++ b/bpf/loader/NetBpfLoad.cpp
@@ -60,7 +60,7 @@ #include "BpfSyscallWrappers.h" #include "bpf/BpfUtils.h" -#include "bpf/bpf_map_def.h" +#include "bpf_map_def.h" using android::base::EndsWith; using android::base::StartsWith;