Lines Matching defs:e_flags
1251 uint16_t dso__read_e_machine_endian(struct dso *optional_dso, int fd, uint32_t *e_flags,
1259 if (e_flags)
1260 *e_flags = 0;
1304 /* In production code the e_flags are only needed on CSKY. */
1305 need_e_flags = e_flags && e_machine == EM_CSKY;
1307 /* Debug code will always read the e_flags. */
1308 need_e_flags = e_flags != NULL;
1312 ? offsetof(Elf32_Ehdr, e_flags)
1313 : offsetof(Elf64_Ehdr, e_flags);
1315 if (pread(fd, e_flags, sizeof(*e_flags), offset) != sizeof(*e_flags)) {
1316 *e_flags = 0;
1317 return EM_NONE; // e_flags read failed.
1323 uint16_t dso__e_machine_endian(struct dso *dso, struct machine *machine, uint32_t *e_flags,
1348 return perf_env__e_machine(machine ? machine->env : NULL, e_flags);
1362 if (e_flags)
1363 *e_flags = 0;
1376 e_machine = dso__read_e_machine_endian(dso, fd, e_flags, is_big_endian);
1377 else if (e_flags)
1378 *e_flags = 0;