Home
last modified time | relevance | path

Searched refs:section (Results 1 – 25 of 85) sorted by relevance

1234

/tools/objtool/
Delf.h28 struct section { struct
36 struct section *base, *reloc; argument
51 struct section *sec; argument
74 struct section *sec;
109 static inline u32 sec_offset_hash(struct section *sec, unsigned long offset) in sec_offset_hash()
129 struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t…
131 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset,
133 int elf_add_reloc_to_insn(struct elf *elf, struct section *sec,
135 struct section *insn_sec, unsigned long insn_off);
137 int elf_write_insn(struct elf *elf, struct section *sec,
[all …]
Delf.c130 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name()
132 struct section *sec; in find_section_by_name()
141 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
144 struct section *sec; in find_section_by_index()
164 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
178 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
192 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
206 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
231 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
260 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
[all …]
Dorc_gen.c89 static int write_orc_entry(struct elf *elf, struct section *orc_sec, in write_orc_entry()
90 struct section *ip_sec, unsigned int idx, in write_orc_entry()
91 struct section *insn_sec, unsigned long insn_off, in write_orc_entry()
111 struct section *insn_sec;
116 struct section *sec, unsigned long offset) in orc_list_add()
142 struct section *sec, *orc_sec; in orc_create()
Dspecial.h23 struct section *orig_sec;
26 struct section *new_sec;
Dspecial.c58 static void reloc_to_sec_off(struct reloc *reloc, struct section **sec, in reloc_to_sec_off()
66 struct section *sec, int idx, in get_alt_entry()
126 struct section *sec; in special_get_alts()
Dcheck.h44 struct section *sec;
91 struct section *sec, unsigned long offset);
/tools/perf/util/
Dconfig.c537 struct perf_config_section *section; in find_section() local
539 list_for_each_entry(section, sections, node) in find_section()
540 if (!strcmp(section->name, section_name)) in find_section()
541 return section; in find_section()
547 struct perf_config_section *section) in find_config_item() argument
551 list_for_each_entry(item, &section->items, node) in find_config_item()
561 struct perf_config_section *section = zalloc(sizeof(*section)); in add_section() local
563 if (!section) in add_section()
566 INIT_LIST_HEAD(&section->items); in add_section()
567 section->name = strdup(section_name); in add_section()
[all …]
Dconfig.h52 #define perf_config_sections__for_each_entry(list, section) \ argument
53 list_for_each_entry(section, list, node)
69 #define perf_config_set__for_each_entry(set, section, item) \ argument
70 perf_config_sections__for_each_entry(&set->sections, section) \
71 perf_config_items__for_each_entry(&section->items, item)
Dsrcline.c191 static void find_address_in_section(bfd *abfd, asection *section, void *data) in find_address_in_section() argument
202 flags = bfd_get_section_flags(abfd, section); in find_address_in_section()
204 flags = bfd_section_flags(section); in find_address_in_section()
211 vma = bfd_get_section_vma(abfd, section); in find_address_in_section()
213 vma = bfd_section_vma(section); in find_address_in_section()
216 size = bfd_get_section_size(section); in find_address_in_section()
218 size = bfd_section_size(section); in find_address_in_section()
224 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
/tools/perf/
Dbuiltin-config.c39 struct perf_config_section *section = NULL; in set_config() local
54 perf_config_items__for_each_entry(&set->sections, section) { in set_config()
55 if (!use_system_config && section->from_system_config) in set_config()
57 fprintf(fp, "[%s]\n", section->name); in set_config()
59 perf_config_items__for_each_entry(&section->items, item) { in set_config()
74 struct perf_config_section *section; in show_spec_config() local
80 perf_config_items__for_each_entry(&set->sections, section) { in show_spec_config()
81 if (!strstarts(var, section->name)) in show_spec_config()
84 perf_config_items__for_each_entry(&section->items, item) { in show_spec_config()
85 const char *name = var + strlen(section->name) + 1; in show_spec_config()
[all …]
/tools/testing/selftests/tc-testing/
Daction.c12 __attribute__((section("action-ok"),used)) int action_ok(struct __sk_buff *s) in action_ok()
17 __attribute__((section("action-ko"),used)) int action_ko(struct __sk_buff *s) in action_ko()
23 char _license[] __attribute__((section("license"),used)) = "GPL";
/tools/lib/bpf/
Dbpf_helpers.h30 #define SEC(NAME) __attribute__((section(NAME), used))
133 #define __kconfig __attribute__((section(".kconfig")))
134 #define __ksym __attribute__((section(".ksyms")))
/tools/perf/tests/
Dattr.py207 for section in filter(self.is_event, parser_event.sections()):
209 parser_items = parser_event.items(section);
213 if (':' in section):
214 base = section[section.index(':') + 1:]
219 e = Event(section, parser_items, base_items)
220 events[section] = e
Dbpf-script-test-kbuild.c10 #define SEC(NAME) __attribute__((section(NAME), used))
Dbpf-script-test-prologue.c10 #define SEC(NAME) __attribute__((section(NAME), used))
Dbpf-script-test-relocation.c27 #define SEC(NAME) __attribute__((section(NAME), used))
Dbpf-script-example.c27 #define SEC(NAME) __attribute__((section(NAME), used))
/tools/perf/include/bpf/
Dbpf.h32 struct ____btf_map_##name __attribute__((section(".maps." #name), used)) \
50 #define SEC(NAME) __attribute__((section(NAME), used))
/tools/power/acpi/
DMakefile.config87 STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
/tools/perf/bench/
Dmem-memset-x86-64-asm.S15 .section .note.GNU-stack,"",@progbits
Dmem-memcpy-x86-64-asm.S20 .section .note.GNU-stack,"",@progbits
/tools/testing/selftests/bpf/
Dbpf_legacy.h11 __attribute__ ((section(".maps." #name), used)) \
/tools/testing/selftests/powerpc/copyloops/
Dcopy_tofrom_user_reference.S21 .section __ex_table,"a"
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst8 :Manual section: 8
62 .BTF section with well-defined BTF binary format data,
119 struct my_struct struct_global_var __attribute__((section("data_sec"))) = {
123 int global_var __attribute__((section("data_sec"))) = 7;
128 static int static_var __attribute__((section("data_sec"))) = 123;
Dbpftool-struct_ops.rst8 :Manual section: 8
52 the ELF section ".struct_ops" will be registered to

1234