BpfLoader: split bpffs subdir creation out
Needs to be before program loading, this should eventually allow loading programs in parallel.
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I95933a5ffbe2230c19d0f91c167e1256ea2f3713
diff --git a/loader/bpfloader.rs b/loader/bpfloader.rs
index 0cd5e0e..b934d98 100644
--- a/loader/bpfloader.rs
+++ b/loader/bpfloader.rs
@@ -18,10 +18,11 @@
fn main() {
// SAFETY: Linking in the existing legacy bpfloader functionality.
- // Any of the three following bindgen functions can abort() or exit()
+ // Any of the four following bindgen functions can abort() or exit()
// on failure and execNetBpfLoadDone() execve()'s.
unsafe {
bpf_android_bindgen::initLogging();
+ bpf_android_bindgen::createBpfFsSubDirectories();
bpf_android_bindgen::legacyBpfLoader();
bpf_android_bindgen::execNetBpfLoadDone();
}