Lines Matching refs:c_str
458 ALOGW("No %s section could be found in elf object", sectionName.c_str()); in getSectionSymNames()
517 ALOGV("Loaded code section %d (%s)", i, name.c_str()); in readCodeSections()
537 ALOGV("Loaded relo section %d (%s)", i, name.c_str()); in readCodeSections()
612 mapName.c_str(), type, fd_type, mapDef.key_size, fd_key_size, mapDef.value_size, in mapMatchesExpectations()
662 ALOGI("skipping map %s which requires bpfloader min ver 0x%05x", mapNames[i].c_str(), in createMaps()
669 ALOGI("skipping map %s which requires bpfloader max ver 0x%05x", mapNames[i].c_str(), in createMaps()
677 mapNames[i].c_str(), kvers, md[i].min_kver); in createMaps()
684 mapNames[i].c_str(), kvers, md[i].max_kver); in createMaps()
691 ALOGI("skipping map %s which is ignored on %s builds", mapNames[i].c_str(), in createMaps()
692 getBuildType().c_str()); in createMaps()
702 ALOGI("skipping map %s which is ignored on %s", mapNames[i].c_str(), in createMaps()
740 ALOGI("map %s selinux_context [%-32s] -> %d -> '%s' (%s)", mapNames[i].c_str(), in createMaps()
748 ALOGI("map %s pin_subdir [%-32s] -> %d -> '%s'", mapNames[i].c_str(), md[i].pin_subdir, in createMaps()
761 if (access(mapPinLoc.c_str(), F_OK) == 0) { in createMaps()
762 fd.reset(mapRetrieveRO(mapPinLoc.c_str())); in createMaps()
764 ALOGD("bpf_create_map reusing map %s, ret: %d", mapNames[i].c_str(), fd.get()); in createMaps()
775 strlcpy(req.map_name, mapNames[i].c_str(), sizeof(req.map_name)); in createMaps()
778 ALOGD("bpf_create_map name %s, ret: %d", mapNames[i].c_str(), fd.get()); in createMaps()
792 ret = bpfFdPin(fd, createLoc.c_str()); in createMaps()
795 ALOGE("create %s -> %d [%d:%s]", createLoc.c_str(), ret, err, strerror(err)); in createMaps()
798 ret = renameat2(AT_FDCWD, createLoc.c_str(), in createMaps()
799 AT_FDCWD, mapPinLoc.c_str(), RENAME_NOREPLACE); in createMaps()
802 ALOGE("rename %s %s -> %d [%d:%s]", createLoc.c_str(), mapPinLoc.c_str(), ret, in createMaps()
807 ret = bpfFdPin(fd, mapPinLoc.c_str()); in createMaps()
810 ALOGE("pin %s -> %d [%d:%s]", mapPinLoc.c_str(), ret, err, strerror(err)); in createMaps()
814 ret = chmod(mapPinLoc.c_str(), md[i].mode); in createMaps()
817 ALOGE("chmod(%s, 0%o) = %d [%d:%s]", mapPinLoc.c_str(), md[i].mode, ret, err, in createMaps()
821 ret = chown(mapPinLoc.c_str(), (uid_t)md[i].uid, (gid_t)md[i].gid); in createMaps()
824 ALOGE("chown(%s, %u, %u) = %d [%d:%s]", mapPinLoc.c_str(), md[i].uid, md[i].gid, in createMaps()
834 ALOGI("map %s id %d", mapPinLoc.c_str(), mapId); in createMaps()
857 ALOGE("Dumping cs %d, name %s", int(i), cs[i].name.c_str()); in dumpAllCs()
935 ALOGE("[%d] '%s' missing program definition! bad bpf.o build?", i, name.c_str()); in loadCodeSections()
941 ALOGD("cs[%d].name:%s min_kver:%x .max_kver:%x (kvers:%x)", i, name.c_str(), min_kver, in loadCodeSections()
953 ALOGD("cs[%d].name:%s requires bpfloader version [0x%05x,0x%05x)", i, name.c_str(), in loadCodeSections()
961 ALOGD("cs[%d].name:%s is ignored on %s builds", i, name.c_str(), in loadCodeSections()
962 getBuildType().c_str()); in loadCodeSections()
971 ALOGD("cs[%d].name:%s is ignored on %s", i, name.c_str(), describeArch()); in loadCodeSections()
978 ALOGI("prog %s selinux_context [%-32s] -> %d -> '%s' (%s)", name.c_str(), in loadCodeSections()
984 ALOGI("prog %s pin_subdir [%-32s] -> %d -> '%s'", name.c_str(), in loadCodeSections()
999 if (access(progPinLoc.c_str(), F_OK) == 0) { in loadCodeSections()
1000 fd.reset(retrieveProgram(progPinLoc.c_str())); in loadCodeSections()
1001 ALOGD("New bpf prog load reusing prog %s, ret: %d (%s)", progPinLoc.c_str(), fd.get(), in loadCodeSections()
1010 .license = ptr_to_u64(license.c_str()), in loadCodeSections()
1019 strlcpy(req.prog_name, cs[i].name.c_str(), sizeof(req.prog_name)); in loadCodeSections()
1023 cs[i].name.c_str(), fd.get(), (!fd.ok() ? std::strerror(errno) : "no error")); in loadCodeSections()
1029 for (const auto& line : lines) ALOGW("%s", line.c_str()); in loadCodeSections()
1046 ret = bpfFdPin(fd, createLoc.c_str()); in loadCodeSections()
1049 ALOGE("create %s -> %d [%d:%s]", createLoc.c_str(), ret, err, strerror(err)); in loadCodeSections()
1052 ret = renameat2(AT_FDCWD, createLoc.c_str(), in loadCodeSections()
1053 AT_FDCWD, progPinLoc.c_str(), RENAME_NOREPLACE); in loadCodeSections()
1056 ALOGE("rename %s %s -> %d [%d:%s]", createLoc.c_str(), progPinLoc.c_str(), ret, in loadCodeSections()
1061 ret = bpfFdPin(fd, progPinLoc.c_str()); in loadCodeSections()
1064 ALOGE("create %s -> %d [%d:%s]", progPinLoc.c_str(), ret, err, strerror(err)); in loadCodeSections()
1068 if (chmod(progPinLoc.c_str(), 0440)) { in loadCodeSections()
1070 ALOGE("chmod %s 0440 -> [%d:%s]", progPinLoc.c_str(), err, strerror(err)); in loadCodeSections()
1073 if (chown(progPinLoc.c_str(), (uid_t)cs[i].prog_def->uid, in loadCodeSections()
1076 ALOGE("chown %s %d %d -> [%d:%s]", progPinLoc.c_str(), cs[i].prog_def->uid, in loadCodeSections()
1086 ALOGI("prog %s id %d", progPinLoc.c_str(), progId); in loadCodeSections()