| /linux/tools/objtool/include/objtool/ |
| H A D | elf.h | 42 struct section { struct 49 struct section *base, *rsec; argument 57 struct section *twin; argument 67 struct section *sec; 94 struct section *group_sec; 101 struct section *sec; 129 struct section *section_data; 136 struct section *elf_create_section(struct elf *elf, const char *name, 140 struct section *elf_create_section_pair(struct elf *elf, const char *name, 144 struct section *elf_create_rela_section(struct elf *elf, struct section *sec, [all …]
|
| /linux/tools/perf/util/ |
| H A D | config.c | 629 struct perf_config_section *section; in find_section() local 631 list_for_each_entry(section, sections, node) in find_section() 632 if (!strcmp(section->name, section_name)) in find_section() 633 return section; in find_section() 639 struct perf_config_section *section) in find_config_item() argument 643 list_for_each_entry(item, §ion->items, node) in find_config_item() 653 struct perf_config_section *section = zalloc(sizeof(*section)); in add_section() local 655 if (!section) in add_section() 658 INIT_LIST_HEAD(§ion->items); in add_section() 659 section->name = strdup(section_name); in add_section() [all …]
|
| H A D | libbfd.c | 122 static void find_address_in_section(bfd *abfd, asection *section, void *data) in find_address_in_section() argument 133 flags = bfd_get_section_flags(abfd, section); in find_address_in_section() 135 flags = bfd_section_flags(section); in find_address_in_section() 142 vma = bfd_get_section_vma(abfd, section); in find_address_in_section() 144 vma = bfd_section_vma(section); in find_address_in_section() 147 size = bfd_get_section_size(section); in find_address_in_section() 149 size = bfd_section_size(section); in find_address_in_section() 155 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section() 319 asection *section; in dso__load_bfd_symbols() local 356 section = bfd_get_section_by_name(abfd, ".text"); in dso__load_bfd_symbols() [all …]
|
| /linux/scripts/ |
| H A D | check_extable.sh | 55 …eval $(objdump -rj .altinstructions ${obj} | grep -B1 "${section}+${section_offset}" | head -n1 | … 62 find_alt_replacement_target ${section} ${section_offset} 72 objdump -hwj ${section} ${obj} | grep -q CODE 78 if is_executable_section ${section}; then 83 echo "Warning: found a reference to section \"${section}\" in __ex_table:" 84 addr2line -fip -j ${section} -e ${obj} ${section_offset} | awk '{print "\t" $0}' 89 …echo "Error: found a reference to non-executable section \"${section}\" in __ex_table at offset ${… 96 case "${section}" in 98 handle_alt_replacement_reloc ${section} ${section_offset} 101 handle_suspicious_generic_reloc ${section} ${section_offset} [all …]
|
| /linux/drivers/mtd/nand/spi/ |
| H A D | winbond.c | 135 static int w25m02gv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_ecc() argument 138 if (section > 3) in w25m02gv_ooblayout_ecc() 141 region->offset = (16 * section) + 8; in w25m02gv_ooblayout_ecc() 147 static int w25m02gv_ooblayout_free(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_free() argument 150 if (section > 3) in w25m02gv_ooblayout_free() 153 region->offset = (16 * section) + 2; in w25m02gv_ooblayout_free() 174 static int w25n01kv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n01kv_ooblayout_ecc() argument 177 if (section > 3) in w25n01kv_ooblayout_ecc() 180 region->offset = 64 + (8 * section); in w25n01kv_ooblayout_ecc() 186 static int w25n02kv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n02kv_ooblayout_ecc() argument [all …]
|
| H A D | ato.c | 30 static int ato25d1ga_ooblayout_ecc(struct mtd_info *mtd, int section, in ato25d1ga_ooblayout_ecc() argument 33 if (section > 3) in ato25d1ga_ooblayout_ecc() 36 region->offset = (16 * section) + 8; in ato25d1ga_ooblayout_ecc() 41 static int ato25d1ga_ooblayout_free(struct mtd_info *mtd, int section, in ato25d1ga_ooblayout_free() argument 44 if (section > 3) in ato25d1ga_ooblayout_free() 47 if (section) { in ato25d1ga_ooblayout_free() 48 region->offset = (16 * section); in ato25d1ga_ooblayout_free()
|
| H A D | fmsh.c | 37 static int fm25s01a_ooblayout_ecc(struct mtd_info *mtd, int section, in fm25s01a_ooblayout_ecc() argument 43 static int fm25s01a_ooblayout_free(struct mtd_info *mtd, int section, in fm25s01a_ooblayout_free() argument 46 if (section) in fm25s01a_ooblayout_free() 81 static int fm25s01bi3_ooblayout_ecc(struct mtd_info *mtd, int section, in fm25s01bi3_ooblayout_ecc() argument 84 if (section) in fm25s01bi3_ooblayout_ecc() 93 static int fm25s01bi3_ooblayout_free(struct mtd_info *mtd, int section, in fm25s01bi3_ooblayout_free() argument 96 if (section > 3) in fm25s01bi3_ooblayout_free() 99 region->offset = (16 * section) + 4; in fm25s01bi3_ooblayout_free()
|
| H A D | dosilicon.c | 26 static int ds35xx_ooblayout_ecc(struct mtd_info *mtd, int section, in ds35xx_ooblayout_ecc() argument 29 if (section > 3) in ds35xx_ooblayout_ecc() 32 region->offset = 8 + (section * 16); in ds35xx_ooblayout_ecc() 38 static int ds35xx_ooblayout_free(struct mtd_info *mtd, int section, in ds35xx_ooblayout_free() argument 41 if (section > 3) in ds35xx_ooblayout_free() 44 if (section == 0) { in ds35xx_ooblayout_free() 49 region->offset = section * 16; in ds35xx_ooblayout_free()
|
| H A D | paragon.c | 41 static int pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in pn26g0xa_ooblayout_ecc() argument 44 if (section > 3) in pn26g0xa_ooblayout_ecc() 47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */ in pn26g0xa_ooblayout_ecc() 53 static int pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in pn26g0xa_ooblayout_free() argument 56 if (section > 4) in pn26g0xa_ooblayout_free() 59 if (section == 4) { in pn26g0xa_ooblayout_free() 63 region->offset = 4 + (15 * section); in pn26g0xa_ooblayout_free()
|
| H A D | gigadevice.c | 147 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() argument 150 if (section > 3) in gd5fxgq4xa_ooblayout_ecc() 153 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc() 159 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() argument 162 if (section > 3) in gd5fxgq4xa_ooblayout_free() 165 if (section) { in gd5fxgq4xa_ooblayout_free() 166 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free() 205 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc() argument 208 if (section) in gd5fxgqx_variant2_ooblayout_ecc() 217 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free() argument [all …]
|
| /linux/arch/x86/kernel/cpu/sgx/ |
| H A D | sgx.h | 33 unsigned int section; member 68 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in sgx_get_epc_phys_addr() local 71 index = ((unsigned long)page - (unsigned long)section->pages) / sizeof(*page); in sgx_get_epc_phys_addr() 73 return section->phys_addr + index * PAGE_SIZE; in sgx_get_epc_phys_addr() 78 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in sgx_get_epc_virt_addr() local 81 index = ((unsigned long)page - (unsigned long)section->pages) / sizeof(*page); in sgx_get_epc_virt_addr() 83 return section->virt_addr + index * PAGE_SIZE; in sgx_get_epc_virt_addr()
|
| H A D | main.c | 82 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in __sgx_sanitize_pages() local 83 struct sgx_numa_node *node = section->node; in __sgx_sanitize_pages() 609 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in sgx_free_epc_page() local 610 struct sgx_numa_node *node = section->node; in sgx_free_epc_page() 627 struct sgx_epc_section *section) in sgx_setup_epc_section() argument 632 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB); in sgx_setup_epc_section() 633 if (!section->virt_addr) in sgx_setup_epc_section() 636 section->pages = vmalloc_array(nr_pages, sizeof(struct sgx_epc_page)); in sgx_setup_epc_section() 637 if (!section->pages) { in sgx_setup_epc_section() 638 memunmap(section->virt_addr); in sgx_setup_epc_section() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-config.c | 40 struct perf_config_section *section = NULL; in set_config() local 55 perf_config_items__for_each_entry(&set->sections, section) { in set_config() 56 if (!use_system_config && section->from_system_config) in set_config() 58 fprintf(fp, "[%s]\n", section->name); in set_config() 60 perf_config_items__for_each_entry(§ion->items, item) { in set_config() 75 struct perf_config_section *section; in show_spec_config() local 81 perf_config_items__for_each_entry(&set->sections, section) { in show_spec_config() 82 if (!strstarts(var, section->name)) in show_spec_config() 85 perf_config_items__for_each_entry(§ion->items, item) { in show_spec_config() 86 const char *name = var + strlen(section->name) + 1; in show_spec_config() [all …]
|
| /linux/Documentation/firmware-guide/acpi/apei/ |
| H A D | output_format.rst | 13 section: <integer>, severity: <integer>, <severity string> 15 <section flags strings> 18 section_type: <section type string> 19 <section data> 23 <section flags strings># := 27 <section type string> := generic processor error | memory error | \ 30 <section data> := 31 <generic processor section data> | <memory section data> | \ 32 <pcie section data> | <null> 34 <generic processor section data> := [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | sm_common.c | 12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc() argument 15 if (section > 1) in oob_sm_ooblayout_ecc() 19 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc() 24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free() argument 27 switch (section) { in oob_sm_ooblayout_free() 61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc() argument 64 if (section) in oob_sm_small_ooblayout_ecc() 73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free() argument 76 switch (section) { in oob_sm_small_ooblayout_free()
|
| /linux/Documentation/locking/ |
| H A D | seqlock.rst | 17 read side critical section is even and the same sequence count value is 18 read again at the end of the critical section. The data in the set must 19 be copied out inside the read side critical section. If the sequence 20 count has changed between the start and the end of the critical section, 24 critical section. After starting the critical section the sequence count 26 the end of the write side critical section the sequence count becomes 29 A sequence counter write side critical section must never be preempted 50 write side section. If the read section can be invoked from hardirq or 52 disabled before entering the write section. 78 /* ... [[write-side critical section]] ... */ [all …]
|
| /linux/arch/m68k/ifpsp060/ |
| H A D | TEST.DOC | 60 | | - 128 byte-sized section 68 | | - code section 74 The first section of this module is the "Call-out" section. This section 75 is NOT INCLUDED in {i,f}test.sa (an example "Call-out" section is provided at 76 the end of this file). The purpose of this section is to allow the test 78 by the host operating system. This section MUST be exactly 128 bytes in 83 the starting address of the "call-out" section. The "Call-out" section must 87 The second section, the "Entry-point" section, is used by external routines 89 no symbol names, this section contains function entry points that are fixed 91 are listed in section "68060{ISP,FPSP}-TEST entry points" below. A calling [all …]
|
| H A D | fpsp.doc | 66 | | - 128 byte-sized section 74 | | - code section 80 The first section of this module is the "Call-out" section. This section 81 is NOT INCLUDED in fpsp.sa (an example "Call-out" section is provided at 82 the end of the file fskeleton.s). The purpose of this section is to allow 84 by the host operating system. This section MUST be exactly 128 bytes in 89 of the "call-out" section. The "Call-out" section must sit adjacent to the 92 The second section, the "Entry-point" section, is used by external routines 94 no symbol names, this section contains function entry points that are fixed 96 are listed in section "68060 FPSP entry points" below. A calling routine [all …]
|
| H A D | isp.doc | 74 | | - 128 byte-sized section 82 | | - code section 88 The first section of this module is the "Call-out" section. This section 89 is NOT INCLUDED in isp.sa (an example "Call-out" section is provided at 90 the end of the file iskeleton.s). The purpose of this section is to allow 92 by the host operating system. This section MUST be exactly 128 bytes in 97 of the "call-out" section. The "Call-out" section must sit adjacent to the 100 The second section, the "Entry-point" section, is used by external routines 102 no symbol names, this section contains function entry points that are fixed 104 are listed in section "68060 ISP entry points" below. A calling routine [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | nvm.c | 33 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_chunk() argument 39 .type = cpu_to_le16(section), in iwl_nvm_write_chunk() 64 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk() 72 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument 78 .type = cpu_to_le16(section), in iwl_nvm_read_chunk() 145 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument 158 ret = iwl_nvm_write_chunk(mvm, section, offset, in iwl_nvm_write_section() 179 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_section() argument 199 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section() 203 section, offset, length); in iwl_nvm_read_section() [all …]
|
| /linux/tools/testing/selftests/x86/bugs/ |
| H A D | common.py | 108 section = elffile.get_section_by_name(section_name) 109 if section is None: 114 return section['sh_addr'], section['sh_offset'], section['sh_size'] 131 def get_instruction_from_vmlinux(elffile, section, virtual_address, target_address): argument 133 section_start = section['sh_addr'] 134 section_end = section_start + section['sh_size'] 140 code = section.data()[offset:offset + 16]
|
| /linux/Documentation/livepatch/ |
| H A D | module-elf-format.rst | 29 Since apply_relocate_add() requires access to a module's section header 30 table, symbol table, and relocation section indices, ELF information is 31 preserved for livepatch modules (see section 5). Livepatch manages its own 52 relas reference are special livepatch symbols (see section 2 and 3). The 87 relocation section(s) to the driver once it loads. 92 between a livepatch relocation section and the target section (usually the 93 text section of a function) to which the relocation(s) apply. It is 99 livepatch relocation section can be applied simply by passing in the 100 appropriate section index to apply_relocate_add(), which then uses it to 101 access the relocation section and apply the relocations. [all …]
|
| /linux/tools/objtool/ |
| H A D | elf.c | 133 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name() 135 struct section *sec; in find_section_by_name() 145 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index() 148 struct section *sec; in find_section_by_index() 150 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index() 170 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset() 183 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset() 196 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing() 227 int find_symbol_hole_containing(const struct section *sec, unsigned long offset) in find_symbol_hole_containing() 264 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing() [all …]
|
| /linux/drivers/mtd/nand/ |
| H A D | ecc.c | 163 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp() argument 169 if (section > 1) in nand_ooblayout_ecc_sp() 172 if (!section) { in nand_ooblayout_ecc_sp() 189 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp() argument 192 if (section > 1) in nand_ooblayout_free_sp() 196 if (section) in nand_ooblayout_free_sp() 203 if (!section) in nand_ooblayout_free_sp() 223 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp() argument 229 if (section || !total_ecc_bytes) in nand_ooblayout_ecc_lp() 238 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp() argument [all …]
|
| /linux/scripts/gcc-plugins/ |
| H A D | stackleak_plugin.c | 451 tree section; in stackleak_gate() local 453 section = lookup_attribute("section", in stackleak_gate() 455 if (section && TREE_VALUE(section)) { in stackleak_gate() 456 section = TREE_VALUE(TREE_VALUE(section)); in stackleak_gate() 458 if (STRING_EQUAL(section, ".init.text")) in stackleak_gate() 460 if (STRING_EQUAL(section, ".devinit.text")) in stackleak_gate() 462 if (STRING_EQUAL(section, ".cpuinit.text")) in stackleak_gate() 464 if (STRING_EQUAL(section, ".meminit.text")) in stackleak_gate() 466 if (STRING_EQUAL(section, ".noinstr.text")) in stackleak_gate() 468 if (STRING_EQUAL(section, ".entry.text")) in stackleak_gate() [all …]
|