Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 58) sorted by relevance

123

/tools/objtool/
A Dspecial.c21 const char *sec; member
31 .sec = ".altinstructions",
41 .sec = "__jump_table",
49 .sec = "__ex_table",
64 *sec = reloc->sym->sec; in reloc_to_sec_off()
69 struct section *sec, int idx, in get_alt_entry() argument
133 struct section *sec; in special_get_alts() local
140 for (entry = entries; entry->sec; entry++) { in special_get_alts()
141 sec = find_section_by_name(elf, entry->sec); in special_get_alts()
142 if (!sec) in special_get_alts()
[all …]
A Delf.c136 return sec; in find_section_by_name()
361 if (sec->sh.sh_size != 0 && !is_dwarf_section(sec)) { in read_sections()
368 sec->data->d_size != sec->sh.sh_size) { in read_sections()
375 elf_hash_add(section, &sec->hash, sec->idx); in read_sections()
560 if (sym->sec == pfunc->sec && in read_symbols()
836 sym->sec = sec; in elf_create_section_symbol()
868 sym->sec = orig->sec; in elf_create_prefix_symbol()
1128 sec = malloc(sizeof(*sec)); in elf_create_section()
1133 memset(sec, 0, sizeof(*sec)); in elf_create_section()
1193 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section()
[all …]
A Dorc_gen.c25 struct section *sec, unsigned long offset) in orc_list_add() argument
35 entry->insn_sec = sec; in orc_list_add()
51 struct section *sec, *orc_sec; in orc_create() local
60 for_each_sec(file, sec) { in orc_create()
65 if (!sec->text) in orc_create()
68 sec_for_each_insn(file, sec, insn) { in orc_create()
77 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
102 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
116 orc_list_add(&orc_list, &null, sec, sec->sh.sh_size); in orc_create()
125 if (sec) { in orc_create()
[all …]
A Dcheck.c43 if (insn->sec == sec && insn->offset == offset) in find_insn()
478 insn->sec = sec; in decode_instructions()
657 if (!sec) in create_static_call_sections()
739 if (!sec) in create_retpoline_sites_sections()
777 if (!sec) in create_return_sites_sections()
821 if (!sec) in create_ibt_endbr_seal_sections()
877 if (!sec) in create_cfi_sections()
922 if (!sec) in create_mcount_loc_sections()
967 if (!sec) in create_direct_call_sections()
2024 if (reloc->sym->sec == pfunc->sec && in add_jump_table()
[all …]
/tools/objtool/include/objtool/
A Dwarn.h22 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
28 sym = find_func_containing(sec, offset); in offstr()
30 sym = find_symbol_containing(sec, offset); in offstr()
36 sprintf(str+len, " (%s+0x%lx)", sec->name, offset); in offstr()
38 str = malloc(strlen(sec->name) + 20); in offstr()
39 sprintf(str, "%s+0x%lx", sec->name, offset); in offstr()
67 char *_str = offstr(sec, offset); \
75 #define WARN_FUNC(sec, offset, format, ...) __WARN_FUNC(WARN_STR, sec, offset, format, ##__VA_ARGS_… argument
81 WARN_FUNC(_insn->sec, _insn->offset, format, \
91 char *_str = offstr(_insn->sec, _insn->offset); \
[all …]
A Delf.h55 struct section *sec; member
80 struct section *sec; member
182 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; in is_reloc_sec()
187 return sec->_changed; in sec_changed()
193 sec->_changed = changed; in mark_sec_changed()
199 return sec->sh.sh_size / sec->sh.sh_entsize; in sec_num_entries()
204 return reloc - reloc->sec->relocs; in reloc_idx()
209 struct section *rsec = reloc->sec; in reloc_rel()
222 return reloc->sec->sh.sh_entsize < 16; in is_32bit_reloc()
327 #define for_each_sec(file, sec) \ argument
[all …]
A Dcheck.h48 struct section *sec; member
119 struct section *sec, unsigned long offset);
125 insn && insn->sec == _sec; \
/tools/lib/bpf/
A Dlinker.c400 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf()
404 sec->data = elf_newdata(sec->scn); in init_output_elf()
414 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf()
425 sec->shdr->sh_size = sec->sec_sz = 0; in init_output_elf()
439 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf()
443 sec->data = elf_newdata(sec->scn); in init_output_elf()
455 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf()
1244 if (!sec || sec->ephemeral) in is_exec_sec()
1339 if (!sec || sec->skipped) in is_data_sec()
1349 if (!sec || sec->skipped || sec->ephemeral) in is_relo_sec()
[all …]
A Dlibbpf_internal.h435 #define for_each_btf_ext_sec(seg, sec) \ argument
436 for (sec = (seg)->info; \
437 (void *)sec < (seg)->info + (seg)->len; \
438 sec = (void *)sec + sizeof(struct btf_ext_info_sec) + \
439 (seg)->rec_size * sec->num_info)
441 #define for_each_btf_ext_rec(seg, sec, i, rec) \ argument
442 for (i = 0, rec = (void *)&(sec)->data; \
443 i < (sec)->num_info; \
/tools/perf/tests/workloads/
A Dsqrtloop.c17 static int __sqrtloop(int sec) in __sqrtloop() argument
20 alarm(sec); in __sqrtloop()
29 int sec = 1; in sqrtloop() local
32 sec = atoi(argv[0]); in sqrtloop()
36 return __sqrtloop(sec); in sqrtloop()
A Dleafloop.c33 int sec = 1; in leafloop() local
36 sec = atoi(argv[0]); in leafloop()
40 alarm(sec); in leafloop()
42 parent(sec); in leafloop()
A Dnoploop.c18 int sec = 1; in noploop() local
22 sec = atoi(argv[0]); in noploop()
26 alarm(sec); in noploop()
A Ddatasym.c28 int sec = 1; in datasym() local
31 sec = atoi(argv[0]); in datasym()
35 alarm(sec); in datasym()
A Dthloop.c34 int sec = 1; in thloop() local
38 sec = atoi(argv[0]); in thloop()
42 alarm(sec); in thloop()
/tools/objtool/arch/loongarch/
A Dspecial.c39 if (reloc->sym->sec->rodata) in get_rodata_table_size_by_table_annotate()
42 if (strcmp(insn->sec->name, reloc->sym->sec->name)) in get_rodata_table_size_by_table_annotate()
60 if (strcmp(insn->sec->name, (reloc + 1)->sym->sec->name)) { in get_rodata_table_size_by_table_annotate()
125 if (reloc->sym->sec->rodata) in find_reloc_by_table_annotate()
128 if (strcmp(insn->sec->name, reloc->sym->sec->name)) in find_reloc_by_table_annotate()
142 static struct reloc *find_reloc_of_rodata_c_jump_table(struct section *sec, in find_reloc_of_rodata_c_jump_table() argument
149 rsec = sec->rsec; in find_reloc_of_rodata_c_jump_table()
157 if (!strcmp(reloc->sym->sec->name, C_JUMP_TABLE_SECTION)) { in find_reloc_of_rodata_c_jump_table()
178 insn->sec, insn->offset, table_size); in arch_find_switch_table()
183 table_sec = annotate_reloc->sym->sec; in arch_find_switch_table()
/tools/perf/scripts/python/
A Dnetdev-times.py235 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
241 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
262 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
268 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
274 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
280 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
286 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
292 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
298 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
[all …]
A Dpowerpc-hcalls.py173 def powerpc__hcall_exit(name, context, cpu, sec, nsec, pid, comm, callchain, argument
176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode]
197 def powerpc__hcall_entry(event_name, context, cpu, sec, nsec, pid, comm, argument
200 d_enter[cpu][opcode] = nsecs(sec, nsec)
202 d_enter[cpu] = {opcode: nsecs(sec, nsec)}
/tools/testing/selftests/ptp/
A Dtestptp.c113 return t->sec * NSEC_PER_SEC + t->nsec; in pctns()
469 event.t.sec, event.t.nsec); in main()
581 (pct+2*i)->sec, (pct+2*i)->nsec); in main()
583 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main()
585 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
614 i, soe->ts[i][0].sec, in main()
619 i, soe->ts[i][0].sec, in main()
624 i, soe->ts[i][0].sec, in main()
635 soe->ts[i][2].sec, in main()
640 soe->ts[i][2].sec, in main()
[all …]
/tools/perf/Documentation/
A Dperf-bench.txt33 Total time:5.855 sec
35 170792 ops/sec
108 Total time:0.308 sec
114 Total time:0.582 sec
142 Total time:8.091 sec
144 123581 ops/sec
149 Total time:0.016 sec
151 59004 ops/sec
158 Total time: 6.886 [sec]
161 145217 ops/sec
[all …]
/tools/objtool/arch/x86/
A Dspecial.c90 text_reloc = find_reloc_by_dest_range(file->elf, insn->sec, in arch_find_switch_table()
93 !text_reloc->sym->sec->rodata) in arch_find_switch_table()
97 table_sec = text_reloc->sym->sec; in arch_find_switch_table()
A Ddecode.c173 ret = insn_decode(&ins, sec->data->d_buf + offset, maxlen, in arch_decode_instruction()
176 ERROR("can't decode instruction at %s:0x%lx", sec->name, offset); in arch_decode_instruction()
460 WARN("invalid LEA encoding at %s:0x%lx", sec->name, offset); in arch_decode_instruction()
577 WARN("ENQCMD instruction at %s:%lx", sec->name, offset); in arch_decode_instruction()
644 if (ins.length == 3+4+4 && !strncmp(sec->name, ".init.text", 10)) { in arch_decode_instruction()
649 immr = find_reloc_by_dest(elf, (void *)sec, offset+3); in arch_decode_instruction()
650 disp = find_reloc_by_dest(elf, (void *)sec, offset+7); in arch_decode_instruction()
659 func = find_symbol_by_offset(disp->sym->sec, reloc_addend(disp)); in arch_decode_instruction()
675 sym = find_symbol_containing(sec, offset); in arch_decode_instruction()
726 WARN("notrack prefix found at %s:0x%lx", sec->name, offset); in arch_decode_instruction()
[all …]
/tools/testing/nvdimm/test/
A Dnfit.c950 nd_cmd->state = sec->state; in nd_intel_test_cmd_security_status()
951 nd_cmd->extended_state = sec->ext_state; in nd_intel_test_cmd_security_status()
968 sec->state); in nd_intel_test_cmd_unlock_unit()
975 sec->state = ND_INTEL_SEC_STATE_ENABLED; in nd_intel_test_cmd_unlock_unit()
1044 sec->state = 0; in nd_intel_test_cmd_disable_pass()
1074 sec->state = 0; in nd_intel_test_cmd_secure_erase()
1097 sec->old_state = sec->state; in nd_intel_test_cmd_overwrite()
1118 sec->overwrite_end_time = 0; in nd_intel_test_cmd_query_overwrite()
1119 sec->state = sec->old_state; in nd_intel_test_cmd_query_overwrite()
1120 sec->old_state = 0; in nd_intel_test_cmd_query_overwrite()
[all …]
/tools/objtool/arch/powerpc/
A Ddecode.c42 int arch_decode_instruction(struct objtool_file *file, const struct section *sec, in arch_decode_instruction() argument
51 ins = bswap_if_needed(file->elf, *(u32 *)(sec->data->d_buf + offset)); in arch_decode_instruction()
/tools/perf/util/
A Dsymbol-elf.c184 while ((sec = elf_nextscn(elf, sec)) != NULL) { in elf_addr_to_index()
207 while ((sec = elf_nextscn(elf, sec)) != NULL) { in elf_section_by_name()
215 return sec; in elf_section_by_name()
801 Elf_Scn *sec; in elf_read_build_id() local
826 if (sec) in elf_read_build_id()
831 if (sec) in elf_read_build_id()
836 if (sec) in elf_read_build_id()
1066 Elf_Scn *sec; in filename__read_debuglink() local
1358 while ((sec = elf_nextscn(elf, sec)) != NULL) { in max_text_section()
1699 if (!sec) in dso__load_sym_internal()
[all …]
/tools/bpf/bpftool/
A Dgen.c150 const struct btf_type *sec, in codegen_datasec_def() argument
280 const struct btf_type *sec; in codegen_datasecs() local
302 if (!sec) { in codegen_datasecs()
329 const struct btf_type *sec, *var; in codegen_subskel_datasecs() local
347 if (!sec) in codegen_subskel_datasecs()
357 sec_var = btf_var_secinfos(sec); in codegen_subskel_datasecs()
358 vlen = btf_vlen(sec); in codegen_subskel_datasecs()
503 const struct btf_type *sec; in codegen_asserts() local
524 if (!sec) { in codegen_asserts()
529 sec_var = btf_var_secinfos(sec); in codegen_asserts()
[all …]

Completed in 62 milliseconds

123