Lines Matching refs:elfPath
383 static int createMaps(const char* elfPath, ifstream& elfFile, vector<int>& mapFds) { in createMaps() argument
388 string fname = pathToFilename(string(elfPath), true); in createMaps()
503 static int loadCodeSections(const char* elfPath, vector<codeSection>& cs, const string& license) { in loadCodeSections() argument
508 string fname = pathToFilename(string(elfPath), true); in loadCodeSections()
527 ALOGD("New bpf core prog_load for %s (%s) returned: %d\n", elfPath, cs[i].name.c_str(), in loadCodeSections()
548 int loadProg(const char* elfPath) { in loadProg() argument
554 ifstream elfFile(elfPath, ios::in | ios::binary); in loadProg()
559 ALOGE("Couldn't find license in %s\n", elfPath); in loadProg()
562 ALOGD("Loading ELF object %s with license %s\n", elfPath, (char*)license.data()); in loadProg()
567 ALOGE("Couldn't read all code sections in %s\n", elfPath); in loadProg()
574 ret = createMaps(elfPath, elfFile, mapFds); in loadProg()
576 ALOGE("Failed to create maps: (ret=%d) in %s\n", ret, elfPath); in loadProg()
581 ALOGD("map_fd found at %d is %d in %s\n", i, mapFds[i], elfPath); in loadProg()
585 ret = loadCodeSections(elfPath, cs, string(license.data())); in loadProg()