Actually skip programs based on ignore_on
Bug: 246985031 Test: flash aosp/2374785, check loaded progs via adb shell ls Change-Id: I0f4ba45958e4d5805b69cf9e91759d58de390b0e
This commit is contained in:
parent
4fba4f7a22
commit
0fb433a965
1 changed files with 3 additions and 2 deletions
|
|
@ -30,9 +30,9 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// This is BpfLoader v0.32
|
||||
// This is BpfLoader v0.33
|
||||
#define BPFLOADER_VERSION_MAJOR 0u
|
||||
#define BPFLOADER_VERSION_MINOR 32u
|
||||
#define BPFLOADER_VERSION_MINOR 33u
|
||||
#define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR)
|
||||
|
||||
#include "BpfSyscallWrappers.h"
|
||||
|
|
@ -1038,6 +1038,7 @@ static int loadCodeSections(const char* elfPath, vector<codeSection>& cs, const
|
|||
(cs[i].prog_def->ignore_on_userdebug && isUserdebug())) {
|
||||
ALOGD("cs[%d].name:%s is ignored on %s builds", i, name.c_str(),
|
||||
getBuildType().c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (unrecognized(pin_subdir)) return -ENOTDIR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue