Home
last modified time | relevance | path

Searched refs:sections (Results 1 – 25 of 1106) sorted by relevance

12345678910>>...45

/third_party/musl/porting/linux/user/ldso/
Dns_config.c168 section_list *sections; in sections_alloc() local
171 sections = (section_list *)__libc_calloc(1, sizeof *sections); in sections_alloc()
173 if (sections) { in sections_alloc()
174 sections->names = (char**)__libc_calloc(size, sizeof *sections->names); in sections_alloc()
175 sections->kvs = (kvlist**)__libc_calloc(size, sizeof *sections->kvs); in sections_alloc()
176 if (sections->names && sections->kvs) { in sections_alloc()
177 sections->size = size; in sections_alloc()
179 __libc_free(sections->names); in sections_alloc()
180 __libc_free(sections->kvs); in sections_alloc()
181 __libc_free(sections); in sections_alloc()
[all …]
/third_party/elfio/tests/
DELFIOTest.cpp59 EXPECT_EQ( reader.sections.size(), secNum ); in checkHeader()
213 const section* sec = reader.sections[0]; in TEST()
216 sec = reader.sections[1]; in TEST()
220 sec = reader.sections[9]; in TEST()
224 sec = reader.sections[19]; in TEST()
228 sec = reader.sections[27]; in TEST()
232 for ( Elf_Half i = 0; i < reader.sections.size(); ++i ) { in TEST()
233 sec = reader.sections[i]; in TEST()
237 const section* sec1 = reader.sections[".strtab"]; in TEST()
255 sec = reader.sections[".symtab"]; in TEST()
[all …]
DELFIOTest2.cpp39 section* modinfo_sec = reader.sections[".modinfo"]; in TEST()
85 section* modinfo_sec = writer.sections[".modinfo"]; in TEST()
101 modinfo_sec = reader.sections[".modinfo"]; in TEST()
149 section* array_sec = reader.sections[".ctors"]; in TEST()
167 section* array_sec = reader.sections[".ctors"]; in TEST()
186 section* array_sec = reader.sections[".init_array"]; in TEST()
196 array_sec = reader.sections[".fini_array"]; in TEST()
212 section* array_sec = reader.sections[".init_array"]; in TEST()
258 section* symsec = reader.sections[".dynsym"]; in TEST()
286 section* symsec = reader.sections[".dynsym"]; in TEST()
[all …]
DELFIOTest1.cpp49 section* text_sec = writer.sections.add( ".text" ); in write_obj_i386()
67 section* data_sec = writer.sections.add( ".data" ); in write_obj_i386()
78 section* str_sec = writer.sections.add( ".strtab" ); in write_obj_i386()
85 section* sym_sec = writer.sections.add( ".symtab" ); in write_obj_i386()
101 section* rel_sec = writer.sections.add( ".rel.text" ); in write_obj_i386()
119 section* note_sec = writer.sections.add( ".note" ); in write_obj_i386()
148 section* text_sec = writer.sections.add( ".text" ); in write_exe_i386()
177 section* data_sec = writer.sections.add( ".data" ); in write_exe_i386()
197 section* note_sec = writer.sections.add( ".note" ); in write_exe_i386()
471 section* psymsec = elf.sections[".symtab"]; in TEST()
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/tools/emacs/
Dgyp.el134 (defun gyp-add-parse-history (point sections)
139 (setq gyp-parse-history (cons (cons point sections) gyp-parse-history)))
157 (sections (gyp-parse-sections)))
159 (setq sections (cdr sections)) ; pop out a level
169 (setq sections (cons section (cdr sections)))))
175 (setq sections (cons 'unknown sections)))
179 (setq sections (cons 'list sections)))
183 (gyp-add-parse-history (point) sections)
192 (let ((sections (gyp-parse-sections)))
194 ((eq (car sections) 'conditions)
[all …]
/third_party/node/tools/gyp/tools/emacs/
Dgyp.el134 (defun gyp-add-parse-history (point sections)
139 (setq gyp-parse-history (cons (cons point sections) gyp-parse-history)))
157 (sections (gyp-parse-sections)))
159 (setq sections (cdr sections)) ; pop out a level
169 (setq sections (cons section (cdr sections)))))
175 (setq sections (cons 'unknown sections)))
179 (setq sections (cons 'list sections)))
183 (gyp-add-parse-history (point) sections)
192 (let ((sections (gyp-parse-sections)))
194 ((eq (car sections) 'conditions)
[all …]
/third_party/mesa3d/src/intel/tools/
Daubinator_error_decode.c294 static struct section sections[MAX_SECTIONS]; variable
396 if (sections[s].gtt_offset <= address && in get_intel_batch_bo()
397 address < sections[s].gtt_offset + sections[s].dword_count * 4) { in get_intel_batch_bo()
399 .addr = sections[s].gtt_offset, in get_intel_batch_bo()
400 .map = sections[s].data, in get_intel_batch_bo()
401 .size = sections[s].dword_count * 4, in get_intel_batch_bo()
442 sections[num_sections].data = data; in read_data_file()
443 sections[num_sections].dword_count = dword_count; in read_data_file()
481 sections[num_sections].buffer_name = b->name; in read_data_file()
482 sections[num_sections].ring_name = strdup(ring_name); in read_data_file()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Common/
DConfigurator.cpp131 for(unsigned int keyID = 0; keyID < sections.size(); keyID++) in writeFile()
135 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); valueID++) in writeFile()
137 file << sections[keyID].names[valueID] << "=" << sections[keyID].values[valueID] << endl; in writeFile()
161 if(!sections.size() || keyID >= sections.size()) in findValue()
166 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); ++valueID) in findValue()
168 if(sections[keyID].names[valueID] == valueName) in findValue()
180 sections.resize(sections.size() + 1); in addKeyName()
197 sections[keyID].names.resize(sections[keyID].names.size() + 1, valueName); in addValue()
198 sections[keyID].values.resize(sections[keyID].values.size() + 1, value); in addValue()
202 sections[keyID].values[valueID] = value; in addValue()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/System/
DConfigurator.cpp132 for(unsigned int keyID = 0; keyID < sections.size(); keyID++) in writeFile()
136 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); valueID++) in writeFile()
138 file << sections[keyID].names[valueID] << "=" << sections[keyID].values[valueID] << endl; in writeFile()
162 if(!sections.size() || keyID >= sections.size()) in findValue()
167 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); ++valueID) in findValue()
169 if(sections[keyID].names[valueID] == valueName) in findValue()
181 sections.resize(sections.size() + 1); in addKeyName()
198 sections[keyID].names.resize(sections[keyID].names.size() + 1, valueName); in addValue()
199 sections[keyID].values.resize(sections[keyID].values.size() + 1, value); in addValue()
203 sections[keyID].values[valueID] = value; in addValue()
[all …]
/third_party/node/deps/npm/node_modules/ip/lib/
Dip.js18 var sections = ip.split(':', 8);
21 for (i = 0; i < sections.length; i++) {
22 var isv4 = this.isV4Format(sections[i]);
26 v4Buffer = this.toBuffer(sections[i]);
27 sections[i] = v4Buffer.slice(0, 2).toString('hex');
31 sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex'));
35 if (sections[0] === '') {
36 while (sections.length < 8) sections.unshift('0');
37 } else if (sections[sections.length - 1] === '') {
38 while (sections.length < 8) sections.push('0');
[all …]
/third_party/skia/infra/bots/recipes/
Dcompute_buildstats.py153 sections = step_data.stdout.decode('utf-8').split(MAGIC_SEPERATOR)
156 logs['perf_json'] = sections[1].split('\n')
159 ast.literal_eval(sections[1])
181 sections = step_data.stdout.decode('utf-8').split(MAGIC_SEPERATOR)
184 logs['perf_json'] = sections[2].split('\n')
187 ast.literal_eval(sections[2])
214 sections = step_data.stdout.decode('utf-8').split(MAGIC_SEPERATOR)
219 logs['bloaty_file_symbol_short'] = sections[1].split('\n')
220 logs['bloaty_file_symbol_full'] = sections[2].split('\n')
221 logs['bloaty_symbol_file_short'] = sections[3].split('\n')
[all …]
/third_party/musl/libc-test/src/functionalext/unittest/
Dunit_test_ldso_ns_config.c441 void sections_realloc(section_list *sections);
493 section_list sections; in ns_config_test_0320() local
494 sections.size = 1; in ns_config_test_0320()
495 sections.names = (char**)calloc(sections.size, sizeof *sections.names); in ns_config_test_0320()
496 sections.kvs = (kvlist**)calloc(sections.size, sizeof *sections.kvs); in ns_config_test_0320()
497 sections_realloc(&sections); in ns_config_test_0320()
498 EXPECT_EQ(__FUNCTION__, sections.size, 2); in ns_config_test_0320()
499 if (sections.names){ in ns_config_test_0320()
500 free(sections.names); in ns_config_test_0320()
502 if (sections.kvs){ in ns_config_test_0320()
[all …]
/third_party/elfutils/libdwfl/
Dderelocate.c284 struct dwfl_relocation *sections = mod->reloc_info; in dwfl_module_relocation_info() local
286 if (idx >= sections->count) in dwfl_module_relocation_info()
290 *shndxp = elf_ndxscn (sections->refs[idx].scn); in dwfl_module_relocation_info()
292 return sections->refs[idx].name; in dwfl_module_relocation_info()
336 struct dwfl_relocation *sections = mod->reloc_info; in find_section() local
339 size_t l = 0, u = sections->count; in find_section()
343 if (*addr < sections->refs[idx].start) in find_section()
345 else if (*addr > sections->refs[idx].end) in find_section()
352 if (*addr == sections->refs[idx].end in find_section()
353 && idx + 1 < sections->count in find_section()
[all …]
/third_party/libbpf/docs/
Dapi.rst57 :sections: func define public-type enum
63 :sections: func define public-type enum
69 :sections: func define public-type enum
75 :sections: func define public-type enum
81 :sections: func define public-type enum
87 :sections: func define public-type enum
93 :sections: func define public-type enum
/third_party/flutter/skia/infra/bots/recipes/
Dcompute_buildstats.py162 sections = step_data.stdout.split(magic_seperator)
167 logs['bloaty_file_symbol_short'] = sections[1].split('\n')
168 logs['bloaty_file_symbol_full'] = sections[2].split('\n')
169 logs['bloaty_symbol_file_short'] = sections[3].split('\n')
170 logs['bloaty_symbol_file_full'] = sections[4].split('\n')
171 logs['perf_json'] = sections[5].split('\n')
190 sections = step_data.stdout.split(magic_seperator)
195 logs['bloaty_symbol_short'] = sections[1].split('\n')
196 logs['bloaty_symbol_full'] = sections[2].split('\n')
197 logs['perf_json'] = sections[3].split('\n')
/third_party/elfio/examples/write_obj/
Dwrite_obj.cpp67 section* text_sec = writer.sections.add( ".text" ); in main()
74 section* str_sec = writer.sections.add( ".strtab" ); in main()
83 section* sym_sec = writer.sections.add( ".symtab" ); in main()
100 section* rel_sec = writer.sections.add( ".rel.text" ); in main()
121 section* note_sec = writer.sections.add( ".note" ); in main()
/third_party/libabigail/src/
Dabg-ini.cc1640 sections_type& sections) in priv() argument
1642 sections_(sections) in priv()
1651 sections_type& sections) in config() argument
1652 : priv_(new priv(path, sections)) in config()
1683 config::set_sections(const sections_type& sections) in set_sections() argument
1684 {priv_->sections_ = sections;} in set_sections()
1701 config::sections_type& sections) in read_sections() argument
1709 sections.push_back(section); in read_sections()
1728 config::sections_type& sections) in read_sections() argument
1734 bool is_ok = read_sections(in, sections); in read_sections()
[all …]
/third_party/python/Lib/distutils/
Dconfig.py57 sections = config.sections()
58 if 'distutils' in sections:
66 if 'pypi' in sections:
97 elif 'server-login' in sections:
/third_party/elfio/elfio/
Delfio_segment.hpp112 sections.emplace_back( sec_index ); in add_section_index()
117 return (Elf_Half)sections.size(); in add_section_index()
130 return (Elf_Half)sections.size(); in get_sections_num()
136 if ( num < sections.size() ) { in get_section_index_at()
137 return sections[num]; in get_section_index_at()
164 return sections; in get_sections()
249 std::vector<Elf_Half> sections; member in ELFIO::segment_impl
Delfio.hpp69 elfio() noexcept : sections( this ), segments( this ) in elfio()
75 : sections( this ), segments( this ), in elfio()
82 : sections( this ), segments( this ), in elfio()
227 header->set_sections_num( sections.size() ); in save()
323 for ( int i = 0; i < sections.size(); ++i) { in validate()
324 for ( int j = i+1; j < sections.size(); ++j ) { in validate()
325 const section* a = sections[i]; in validate()
326 const section* b = sections[j]; in validate()
396 for ( const auto& sec : sections ) { in find_prog_section_for_offset()
491 section* shstrtab = sections.add( ".shstrtab" ); in create_mandatory_sections()
[all …]
/third_party/libxml2/doc/examples/
Dindex.py18 sections = {} variable
94 global sections
137 if sections.has_key(section):
138 sections[section].append(filename)
140 sections[section] = [filename]
203 global sections
206 keys = sections.keys()
210 info = sections[section]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/bloat/
Dbloat.py313 sections = []
327 sections.append((name, int(size, 16)))
329 return sections, debug_sections
332 def jsonify_sections(name, sections): argument
335 for section, size in sections:
352 sections, debug_sections = parse_objdump(objdump)
353 sections = jsonify_sections('sections', sections)
355 size = sections['data']['$area'] + debug_sections['data']['$area']
359 'children': [ debug_sections, sections ]})
/third_party/elfutils/src/
Dunstrip.c980 sections_match (const struct section *sections, size_t i, in sections_match() argument
983 return (sections_flags_match (sections[i].shdr.sh_flags, shdr->sh_flags, in sections_match()
984 sections[i].shdr.sh_type) in sections_match()
985 && (sections[i].shdr.sh_size == shdr->sh_size in sections_match()
986 || (sections[i].shdr.sh_size < shdr->sh_size in sections_match()
987 && section_can_shrink (&sections[i].shdr))) in sections_match()
988 && !strcmp (sections[i].name, name)); in sections_match()
994 struct section sections[], size_t nalloc) in find_alloc_section() argument
1001 if (addr < sections[i].shdr.sh_addr) in find_alloc_section()
1003 else if (addr > sections[i].shdr.sh_addr) in find_alloc_section()
[all …]
/third_party/elfio/
DREADME-OH.md49 1. 遍历elf文件的sections
53 for (const auto &section : elfIo.sections) {
60 1. 遍历elf文件的sections
64 for (const auto &section : elfIo_.sections) {
73 1. 遍历elf文件的symbol sections
/third_party/node/lib/internal/source_map/
Dsource_map.js161 if (this.#payload.sections) {
162 this.#parseSections(this.#payload.sections);
172 #parseSections = (sections) => {
173 for (let i = 0; i < sections.length; ++i) {
174 const section = sections[i];

12345678910>>...45