Searched refs:sec_hdr (Results 1 - 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/mce-test/tsrc/erst-inj/ |
H A D | erst-inject.c | 75 struct cper_section_descriptor *sec_hdr; in inject() local 78 len = sizeof(*rcd_hdr) + sizeof(*sec_hdr) + sizeof(*mem_err); in inject() 79 printf("sizes: %lu, %lu, %lu\n", sizeof(*rcd_hdr), sizeof(*sec_hdr), in inject() 86 sec_hdr = (void *)(rcd_hdr + 1); in inject() 87 mem_err = (void *)(sec_hdr + 1); in inject() 110 memset(sec_hdr, 0, sizeof(*sec_hdr)); in inject() 111 sec_hdr->section_offset = (void *)mem_err - (void *)rcd_hdr; in inject() 112 sec_hdr->section_length = sizeof(*mem_err); in inject() 113 sec_hdr in inject() 136 struct cper_section_descriptor *sec_hdr; poll() local [all...] |
/third_party/ltp/testcases/kernel/mce-test/hwpoison/erst-inj/ |
H A D | erst-inject.c | 75 struct cper_section_descriptor *sec_hdr; in inject() local 78 len = sizeof(*rcd_hdr) + sizeof(*sec_hdr) + sizeof(*mem_err); in inject() 79 printf("sizes: %lu, %lu, %lu\n", sizeof(*rcd_hdr), sizeof(*sec_hdr), in inject() 86 sec_hdr = (void *)(rcd_hdr + 1); in inject() 87 mem_err = (void *)(sec_hdr + 1); in inject() 110 memset(sec_hdr, 0, sizeof(*sec_hdr)); in inject() 111 sec_hdr->section_offset = (void *)mem_err - (void *)rcd_hdr; in inject() 112 sec_hdr->section_length = sizeof(*mem_err); in inject() 113 sec_hdr in inject() 136 struct cper_section_descriptor *sec_hdr; poll() local [all...] |
/third_party/mesa3d/src/amd/common/ |
H A D | ac_rgp_elf_object_pack.c | 380 Elf64_Shdr sec_hdr[5]; in ac_rgp_file_write_elf_object() local 437 memset(&sec_hdr[0], 0x00, sizeof(Elf64_Shdr) * 5); in ac_rgp_file_write_elf_object() 440 sec_hdr[1].sh_name = (uintptr_t)((struct ac_rgp_elf_string_table*)0)->strtab; in ac_rgp_file_write_elf_object() 441 sec_hdr[1].sh_type = SHT_STRTAB; in ac_rgp_file_write_elf_object() 442 sec_hdr[1].sh_offset = sizeof(Elf64_Ehdr); in ac_rgp_file_write_elf_object() 443 sec_hdr[1].sh_size = sizeof(rgp_elf_strtab); in ac_rgp_file_write_elf_object() 446 sec_hdr[2].sh_name = (uintptr_t)((struct ac_rgp_elf_string_table*)0)->text; in ac_rgp_file_write_elf_object() 447 sec_hdr[2].sh_type = SHT_PROGBITS; in ac_rgp_file_write_elf_object() 448 sec_hdr[2].sh_flags = SHF_ALLOC | SHF_EXECINSTR; in ac_rgp_file_write_elf_object() 449 sec_hdr[ in ac_rgp_file_write_elf_object() [all...] |
Completed in 2 milliseconds