Searched refs:efile (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/tools/lib/bpf/
H A Dlibbpf.c196 } efile; member in struct:bpf_object
205 #define obj_elf_valid(o) ((o)->efile.elf)
319 obj->efile.fd = -1; bpf_object__new()
327 obj->efile.obj_buf = obj_buf; bpf_object__new()
328 obj->efile.obj_buf_sz = obj_buf_sz; bpf_object__new()
342 if (obj->efile.elf) { bpf_object__elf_finish()
343 elf_end(obj->efile.elf); bpf_object__elf_finish()
344 obj->efile.elf = NULL; bpf_object__elf_finish()
346 obj->efile.symbols = NULL; bpf_object__elf_finish()
348 zfree(&obj->efile.reloc); bpf_object__elf_finish()
349 obj->efile.nr_reloc = 0; bpf_object__elf_finish()
350 zclose(obj->efile.fd); bpf_object__elf_finish()
351 obj->efile.obj_buf = NULL; bpf_object__elf_finish()
352 obj->efile.obj_buf_sz = 0; bpf_object__elf_finish()
365 if (obj->efile.obj_buf_sz > 0) { bpf_object__elf_init()
370 obj->efile.elf = elf_memory(obj->efile.obj_buf, bpf_object__elf_init()
371 obj->efile.obj_buf_sz); bpf_object__elf_init()
373 obj->efile.fd = open(obj->path, O_RDONLY); bpf_object__elf_init()
374 if (obj->efile.fd < 0) { bpf_object__elf_init()
380 obj->efile.elf = elf_begin(obj->efile.fd, bpf_object__elf_init()
385 if (!obj->efile.elf) { bpf_object__elf_init()
392 if (!gelf_getehdr(obj->efile.elf, &obj->efile.ehdr)) { bpf_object__elf_init()
398 ep = &obj->efile.ehdr; bpf_object__elf_init()
418 switch (obj->efile.ehdr.e_ident[EI_DATA]) { bpf_object__check_endianness()
492 Elf *elf = obj->efile.elf; bpf_object__elf_collect()
493 GElf_Ehdr *ep = &obj->efile.ehdr; bpf_object__elf_collect()
549 if (obj->efile.symbols) { bpf_object__elf_collect()
554 obj->efile.symbols = data; bpf_object__elf_collect()
568 void *reloc = obj->efile.reloc; bpf_object__elf_collect()
569 int nr_reloc = obj->efile.nr_reloc + 1; bpf_object__elf_collect()
572 sizeof(*obj->efile.reloc) * nr_reloc); bpf_object__elf_collect()
579 obj->efile.reloc = reloc; bpf_object__elf_collect()
580 obj->efile.nr_reloc = nr_reloc; bpf_object__elf_collect()
582 obj->efile.reloc[n].shdr = sh; bpf_object__elf_collect()
583 obj->efile.reloc[n].data = data; bpf_object__elf_collect()
782 for (i = 0; i < obj->efile.nr_reloc; i++) { bpf_object__collect_reloc()
783 GElf_Shdr *shdr = &obj->efile.reloc[i].shdr; bpf_object__collect_reloc()
784 Elf_Data *data = obj->efile.reloc[i].data; bpf_object__collect_reloc()
804 obj->efile.symbols); bpf_object__collect_reloc()
/linux-4.4.14/mm/
H A Dmemcontrol.c3894 struct fd efile; memcg_write_event_control() local
3922 efile = fdget(efd); memcg_write_event_control()
3923 if (!efile.file) { memcg_write_event_control()
3928 event->eventfd = eventfd_ctx_fileget(efile.file); memcg_write_event_control()
3992 efile.file->f_op->poll(efile.file, &event->pt); memcg_write_event_control()
3999 fdput(efile); memcg_write_event_control()
4010 fdput(efile); memcg_write_event_control()

Completed in 174 milliseconds