Home
last modified time | relevance | path

Searched refs:abfd (Results 1 – 21 of 21) sorted by relevance

/external/wpa_supplicant_8/src/utils/
Dtrace.c48 bfd *abfd; in open_bfd() local
51 abfd = bfd_openr(prg_fname, NULL); in open_bfd()
52 if (abfd == NULL) { in open_bfd()
57 if (bfd_check_format(abfd, bfd_archive)) { in open_bfd()
59 bfd_close(abfd); in open_bfd()
63 if (!bfd_check_format_matches(abfd, bfd_object, &matching)) { in open_bfd()
66 bfd_close(abfd); in open_bfd()
70 return abfd; in open_bfd()
74 static void read_syms(bfd *abfd) in read_syms() argument
82 if (!(bfd_get_file_flags(abfd) & HAS_SYMS)) { in read_syms()
[all …]
/external/oprofile/pp/
Dopgprof.cpp44 void op_write_vma(FILE * fp, op_bfd const & abfd, bfd_vma vma) in op_write_vma() argument
48 switch (abfd.bfd_arch_bits_per_address()) { in op_write_vma()
108 void output_cg(FILE * fp, op_bfd const & abfd, profile_t const & cg_db) in output_cg() argument
113 offset = abfd.get_start_offset(0); in output_cg()
123 op_write_vma(fp, abfd, abfd.offset_to_pc(from + offset)); in output_cg()
124 op_write_vma(fp, abfd, abfd.offset_to_pc(to + offset)); in output_cg()
136 void output_gprof(op_bfd const & abfd, profile_container const & samples, in output_gprof() argument
176 op_write_vma(fp, abfd, low_pc); in output_gprof()
177 op_write_vma(fp, abfd, high_pc); in output_gprof()
221 output_cg(fp, abfd, cg_db); in output_gprof()
[all …]
/external/oprofile/libutil++/
Dbfd_support.cpp226 void fixup_linenr(bfd * abfd, asection * section, asymbol ** syms, in fixup_linenr() argument
242 size_t section_size = bfd_section_size(abfd, section); in fixup_linenr()
247 bool ret = bfd_find_nearest_line(abfd, section, syms, pc + i, in fixup_linenr()
413 for (asection const * sect = abfd->sections; sect; sect = sect->next) { in has_debug_info()
431 if (abfd) in close()
432 bfd_close(abfd); in close()
455 bfd * image_bfd = image_bfd_info->abfd; in translate_debuginfo_syms()
480 if (sym->section->owner && sym->section->owner == abfd) { in translate_debuginfo_syms()
508 bool is_elf64_powerpc_target = (abfd->xvec == &bfd_elf64_powerpc_vec) in get_synth_symbols()
509 || (abfd->xvec == &bfd_elf64_powerpcle_vec); in get_synth_symbols()
[all …]
Dop_spu_bfd.cpp84 ibfd.abfd = spu_open_bfd(image_path, fd, spu_offset); in op_bfd()
96 note = bfd_get_section_by_name(ibfd.abfd, ".note.spu_name"); in op_bfd()
104 oct_per_byte = bfd_octets_per_byte(ibfd.abfd); in op_bfd()
105 sec_size = bfd_section_size(ibfd.abfd, note)/oct_per_byte; in op_bfd()
108 if (!bfd_get_section_contents(ibfd.abfd, note, sec_contents, in op_bfd()
156 for (sect = ibfd.abfd->sections; sect; sect = sect->next) { in op_bfd()
Dbfd_support.h27 bfd_info() : abfd(0), nr_syms(0), synth_syms(0), image_bfd_info(0) {} in bfd_info()
35 bool valid() const { return abfd; } in valid()
44 bfd * abfd; member
Dop_bfd.cpp145 ibfd.abfd = fdopen_bfd(image_path, fd); in op_bfd()
160 for (sect = ibfd.abfd->sections; sect; sect = sect->next) { in op_bfd()
303 asection const * sect = ibfd.abfd->sections; in offset_to_pc()
332 if (!bfd_get_section_contents(ibfd.abfd, bfd_sym.symbol()->section, in get_symbol_contents()
353 if (find_separate_debug_file(ibfd.abfd, filename, debug_filename, extra_found_images)) { in has_debug_info()
355 dbfd.abfd = open_bfd(debug_filename); in has_debug_info()
468 return ::bfd_arch_bits_per_address(ibfd.abfd); in bfd_arch_bits_per_address()
Dbfd_spu_support.cpp68 spu_bfd_iovec_pread(bfd * abfd, void * stream, void * buf, in spu_bfd_iovec_pread() argument
78 if (abfd) in spu_bfd_iovec_pread()
/external/oprofile/opjitconv/
Dcreate_bfd.c75 asection * create_section(bfd * abfd, char const * section_name, in create_section() argument
81 section = bfd_make_section(abfd, section_name); in create_section()
86 if (bfd_set_section_vma(abfd, section, vma) == FALSE) { in create_section()
90 if (bfd_set_section_size(abfd, section, size) == FALSE) { in create_section()
94 if (bfd_set_section_flags(abfd, section, flags) == FALSE) { in create_section()
133 int fill_section_content(bfd * abfd, asection * section, in fill_section_content() argument
136 if (bfd_set_section_contents(abfd, section, b, offset, sz) == FALSE) { in fill_section_content()
252 bfd * abfd; in open_elf() local
254 abfd = bfd_openw(filename, dump_bfd_target_name); in open_elf()
255 if (!abfd) { in open_elf()
[all …]
Dopjitconv.h102 asection * create_section(bfd * abfd, char const * section_name,
104 int fill_section_content(bfd * abfd, asection * section,
108 int init_debug_line_info(bfd * abfd);
109 int finalize_debug_line_info(bfd * abfd);
Ddebug_line.c440 int init_debug_line_info(bfd * abfd) in init_debug_line_info() argument
477 line_section = create_section(abfd, ".debug_line", b_line.size, 0, in init_debug_line_info()
482 debug_info = create_section(abfd, ".debug_info", b_debug_info.size, 0, in init_debug_line_info()
487 debug_abbrev = create_section(abfd, ".debug_abbrev", in init_debug_line_info()
497 int finalize_debug_line_info(bfd * abfd) in finalize_debug_line_info() argument
501 line_section = bfd_get_section_by_name(abfd, ".debug_line"); in finalize_debug_line_info()
505 debug_info = bfd_get_section_by_name(abfd, ".debug_info"); in finalize_debug_line_info()
510 debug_abbrev = bfd_get_section_by_name(abfd, ".debug_abbrev"); in finalize_debug_line_info()
514 fill_section_content(abfd, line_section, b_line.p, 0, b_line.size); in finalize_debug_line_info()
515 fill_section_content(abfd, debug_info, b_debug_info.p, in finalize_debug_line_info()
[all …]
/external/oprofile/libpp/
Dpopulate_for_spu.cpp56 op_bfd * abfd = NULL; in populate_spu_profile_from_files() local
68 abfd = new op_bfd(header.embedded_offset, in populate_spu_profile_from_files()
75 abfd = new op_bfd(ip.image, in populate_spu_profile_from_files()
79 fname_to_check = abfd->get_filename(); in populate_spu_profile_from_files()
81 profile.set_offset(*abfd); in populate_spu_profile_from_files()
89 samples.add(profile, *abfd, app_image, ip_grp_num); in populate_spu_profile_from_files()
99 *has_debug_info = abfd->has_debug_info(); in populate_spu_profile_from_files()
100 delete abfd; in populate_spu_profile_from_files()
Dpopulate.cpp33 populate_from_files(profile_t & profile, op_bfd const & abfd, in populate_from_files() argument
47 profile.set_offset(abfd); in populate_from_files()
69 op_bfd abfd(ip.image, symbol_filter, in populate_for_image() local
92 if (populate_from_files(profile, abfd, it->files)) { in populate_for_image()
94 samples.add(profile, abfd, it->app_image, i); in populate_for_image()
109 *has_debug_info = abfd.has_debug_info(); in populate_for_image()
Dprofile_container.cpp74 op_bfd const & abfd, string const & app_name, in add() argument
77 string const image_name = abfd.get_filename(); in add()
80 for (symbol_index_t i = 0; i < abfd.syms.size(); ++i) { in add()
85 abfd.get_symbol_range(i, start, end); in add()
100 symb_entry.name = symbol_names.create(abfd.syms[i].name()); in add()
106 if (abfd.get_linenr(i, start, filename, in add()
116 symb_entry.sample.vma = abfd.syms[i].vma(); in add()
121 image_names.create(abfd.get_embedding_filename()); in add()
128 add_samples(abfd, i, p_it, symbol, pclass, start); in add()
134 profile_container::add_samples(op_bfd const & abfd, symbol_index_t sym_index, in add_samples() argument
[all …]
Dformat_output.cpp658 xml_formatter::get_bfd_object(symbol_entry const * symb, op_bfd * & abfd) const in get_bfd_object()
670 if (abfd && abfd->get_filename() == tmp) in get_bfd_object()
672 delete abfd; in get_bfd_object()
673 abfd = new op_bfd(symb->spu_offset, tmp, in get_bfd_object()
676 if (abfd && abfd->get_filename() == image_name) in get_bfd_object()
678 delete abfd; in get_bfd_object()
679 abfd = new op_bfd(image_name, symbol_filter, in get_bfd_object()
687 delete abfd; in get_bfd_object()
688 abfd = 0; in get_bfd_object()
696 output_the_symbol_data(ostream & out, symbol_entry const * symb, op_bfd * & abfd) in output_the_symbol_data() argument
[all …]
Dprofile_container.h66 void add(profile_t const & profile, op_bfd const & abfd,
145 void add_samples(op_bfd const & abfd, symbol_index_t sym_index,
162 std::string create_artificial_symbol(op_bfd const & abfd, u32 start,
Dprofile.cpp128 void profile_t::set_offset(op_bfd const & abfd) in set_offset() argument
134 if (abfd.valid()) { in set_offset()
139 start_offset = abfd.get_start_offset(0); in set_offset()
Dformat_output.h290 bool get_bfd_object(symbol_entry const * symb, op_bfd * & abfd) const;
293 symbol_entry const * symb, op_bfd * & abfd);
296 cg_symbol::children const cg_symb, op_bfd * & abfd);
Dxml_utils.h48 size_t sym_id, op_bfd const & abfd);
Dprofile.h79 void set_offset(op_bfd const & abfd);
Dxml_utils.cpp374 size_t sym_id, op_bfd const & abfd) in output_symbol_bytes() argument
378 if (abfd.get_symbol_contents(symb->sym_index, contents.get())) { in output_symbol_bytes()
/external/oprofile/
DChangeLog-20032119 the abfd