/openbmc/libcper/ |
H A D | meson.build | 16 '-DLIBCPER_JSON_SPEC="' 17 + meson.current_source_dir() + '/specification/json/cper-json.json"', 21 add_project_arguments('-DLIBCPER_EXAMPLES="' 25 add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c') 27 if get_option('output-all-properties').enabled() 28 add_project_arguments('-DOUTPUT_ALL_PROPERTIES', language: ['c', 'cpp']) 34 'sections/cper-section-ampere.c', 35 'sections/cper-section-arm.c', 36 'sections/cper-section-ccix-per.c', 37 'sections/cper-section-cxl-component.c', [all …]
|
H A D | cper-parse.c | 3 * CPER headers and section descriptions into an intermediate JSON format. 13 #include <libcper/cper-parse.h> 14 #include <libcper/cper-parse-str.h> 15 #include <libcper/cper-utils.h> 16 #include <libcper/sections/cper-section.h> 18 //Private pre-definitions. 49 //Read the appropriate number of section descriptors & sections, and convert them into IR format. in cper_to_ir() 53 //Create the section descriptor. in cper_to_ir() 58 …printf("Invalid number of section headers: Header states %d sections, could not read section %d.\n… in cper_to_ir() 70 //Read the section itself. in cper_to_ir() [all …]
|
/openbmc/libcper/docs/ |
H A D | OEMExtensions.md | 1 # Extending `cper-parse` With OEM Sections 3 Section definitions within `cper-parse` are entirely modular, and can be easily 4 modified at compile time to include custom OEM section extensions. This document 8 ## Creating a Section Parser 11 section from CPER -> CPER-JSON and CPER-JSON -> CPER. For the purposes of 12 example here, we will create a fake CPER section, "myVendorSection", in 13 `cper-section-myvendor.h` and `cper-section-myvendor.c`. 15 _sections/cper-section-myvendor.h_: 24 json_object* cper_section_myvendor_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor); 25 void ir_section_myvendor_to_cper(json_object* section, FILE* out); [all …]
|
H A D | GeneratorExtensions.md | 1 # Extending `cper-generator` With OEM Sections 3 Much like `cper-parse`, `cper-generator` supports the addition of arbitrary OEM 4 sections as extensions. This document details how an OEM section generator could 5 be added to the `cper-generate` project from a stock version. 7 ## Creating a Section Generator 10 a function predefinition inside `sections/gen-section.h` as shown below, and 12 sake of example, we will create a generator for a fake OEM section 15 _sections/gen-section.h_: 18 //Section generator function predefinitions. 25 _sections/gen-myvendor.c_: [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | section.hpp | 13 * @class Section 15 * The base class for a PEL section. It contains the SectionHeader 19 class Section class 22 Section() = default; 23 virtual ~Section() = default; 24 Section(const Section&) = default; 25 Section& operator=(const Section&) = default; 26 Section(Section&&) = default; 27 Section& operator=(Section&&) = default; 38 * @brief Says if the section is valid. [all …]
|
H A D | extended_user_data.hpp | 3 #include "section.hpp" 12 * This represents the Extended User Data section in a PEL. It is free form 14 * sub-type fields in the section header are used to identify the format. 16 * This section is used for one subsystem to add FFDC data to a PEL created 17 * by another subsystem. It is basically the same as a UserData section, 18 * except it has the creator ID of the section creator stored in the section. 20 * The Section base class handles the section header structure that every 21 * PEL section has at offset zero. 23 class ExtendedUserData : public Section 38 * @param[in] pel - the PEL data stream [all …]
|
H A D | user_data.hpp | 3 #include "section.hpp" 14 * This represents the User Data section in a PEL. It is free form data 16 * and sub-type fields in the section header are used to identify the 19 * The Section base class handles the section header structure that every 20 * PEL section has at offset zero. 22 class UserData : public Section 37 * @param[in] pel - the PEL data stream 49 * @param[in] componentID - Component ID of the creator 50 * @param[in] subType - The type of user data 51 * @param[in] version - The version of the data [all …]
|
/openbmc/libcper/specification/document/ |
H A D | cper-json-specification.tex | 7 \title{CPER-JSON Specification} 42 % Introductory section. 44 \section{Introduction \& Summary} 47 in a human-readable JSON format, intended to be interoperable with standard CPER binary. 50 …ive JSON schema\footnote{As defined by \href{https://json-schema.org/draft/2020-12/json-schema-cor… 52 % Specification section. 54 \section{Parent Structure (Type 1): Full Log} 55 \label{section:parentstructuretype1} 56 This structure contains descriptions of the CPER log header, as well as the section descriptors and 57 section structures themselves within arrays, representing a full CPER log. This is the structure re… [all …]
|
/openbmc/qemu/hw/vfio/ |
H A D | spapr.c | 8 * the COPYING file in the top-level directory. 18 #include "exec/address-spaces.h" 20 #include "hw/vfio/vfio-common.h" 23 #include "qemu/error-report.h" 35 static bool vfio_prereg_listener_skipped_section(MemoryRegionSection *section) in vfio_prereg_listener_skipped_section() argument 37 if (memory_region_is_iommu(section->mr)) { in vfio_prereg_listener_skipped_section() 41 return !memory_region_is_ram(section->mr) || in vfio_prereg_listener_skipped_section() 42 memory_region_is_ram_device(section->mr); in vfio_prereg_listener_skipped_section() 45 static void *vfio_prereg_gpa_to_vaddr(MemoryRegionSection *section, hwaddr gpa) in vfio_prereg_gpa_to_vaddr() argument 47 return memory_region_get_ram_ptr(section->mr) + in vfio_prereg_gpa_to_vaddr() [all …]
|
H A D | common.c | 10 * the COPYING file in the top-level directory. 12 * Based on qemu-kvm device-assignment: 18 * Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com) 28 #include "hw/vfio/vfio-common.h" 30 #include "exec/address-spaces.h" 34 #include "qemu/error-report.h" 35 #include "qemu/main-loop.h" 44 #include "migration/qemu-file.h" 58 * we'll re-use it should another vfio device be attached before then. 60 int vfio_kvm_device_fd = -1; [all …]
|
/openbmc/linux/scripts/ |
H A D | check_extable.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 file ${obj} | grep -q ELF || (echo "${obj} is not an ELF file." 1>&2 ; exit 0) 9 # Bail out early if there isn't an __ex_table section in this object file. 10 objdump -hj __ex_table ${obj} 2> /dev/null > /dev/null 11 [ $? -ne 0 ] && exit 0 15 suspicious_relocs=$(objdump -rj __ex_table ${obj} | tail -n +6 | 16 grep -v $(eval echo -e{${white_list}}) | awk '{print $3}') 19 [ -z "${suspicious_relocs}" ] && exit 0 24 # white listed. If you're adding a new section in the Linux kernel, and 25 # you're expecting this section to contain code which can fault (i.e. the [all …]
|
/openbmc/phosphor-webui/app/common/styles/layout/ |
H A D | section.scss | 2 * Used for section layout. This should be used for the page container 4 <section class="section"> 5 <div class="section-header"> 6 <h2 class="section-title">Section Title</h2> 9 <div class="section-content"> 12 <div class="section-content"> 15 </section> 18 .section { 19 margin-bottom: 3rem; 22 .section-header { [all …]
|
/openbmc/libcper/specification/json/ |
H A D | cper-json-section-log.json | 3 "required": ["sectionDescriptor", "section"], 7 "$ref": "./cper-json-header.json" 10 "$ref": "./cper-json-section-descriptor.json" 12 "section": { object 16 "$id": "cper-json-generic-processor-section", 21 "$ref": "./sections/cper-generic-processor.json" 26 "$id": "cper-json-ia32x64-processor-section", 31 "$ref": "./sections/cper-ia32x64-processor.json" 36 "$id": "cper-json-arm-processor-section", 41 "$ref": "./sections/cper-arm-processor.json" [all …]
|
H A D | cper-json-full-log.json | 2 "$id": "cper-json-full-log", 3 "$schema": "https://json-schema.org/draft/2020-12/schema", 10 "$ref": "./cper-json-header.json" 16 "$ref": "./cper-json-section-descriptor.json" 25 "$id": "cper-json-generic-processor-section", 30 "$ref": "./sections/cper-generic-processor.json" 35 "$id": "cper-json-ia32x64-processor-section", 40 "$ref": "./sections/cper-ia32x64-processor.json" 45 "$id": "cper-json-arm-processor-section", 50 "$ref": "./sections/cper-arm-processor.json" [all …]
|
/openbmc/libcper/sections/ |
H A D | cper-section-memory.c | 10 #include <libcper/cper-utils.h> 11 #include <libcper/sections/cper-section-memory.h> 13 //Converts a single memory error CPER section into JSON IR. 14 json_object *cper_section_platform_memory_to_ir(void *section) in cper_section_platform_memory_to_ir() argument 17 (EFI_PLATFORM_MEMORY_ERROR_DATA *)section; in cper_section_platform_memory_to_ir() 21 .value.ui64 = memory_error->ValidFields }; in cper_section_platform_memory_to_ir() 26 &memory_error->ErrorStatus); in cper_section_platform_memory_to_ir() 36 json_object_new_uint64(memory_error->Bank)); in cper_section_platform_memory_to_ir() 41 json_object_new_uint64(memory_error->Bank & 0xFF)); in cper_section_platform_memory_to_ir() 44 json_object_new_uint64(memory_error->Bank >> 8)); in cper_section_platform_memory_to_ir() [all …]
|
H A D | cper-section.c | 7 #include <libcper/sections/cper-section.h> 8 #include <libcper/sections/cper-section-arm.h> 9 #include <libcper/sections/cper-section-generic.h> 10 #include <libcper/sections/cper-section-ia32x64.h> 11 #include <libcper/sections/cper-section-ipf.h> 12 #include <libcper/sections/cper-section-memory.h> 13 #include <libcper/sections/cper-section-pcie.h> 14 #include <libcper/sections/cper-section-firmware.h> 15 #include <libcper/sections/cper-section-pci-bus.h> 16 #include <libcper/sections/cper-section-pci-dev.h> [all …]
|
H A D | cper-section-dmar-vtd.c | 2 * Describes functions for converting VT-d specific DMAr CPER sections from binary and JSON format 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-dmar-vtd.h> 15 //Converts a single VT-d specific DMAr CPER section into JSON IR. 16 json_object *cper_section_dmar_vtd_to_ir(void *section) in cper_section_dmar_vtd_to_ir() argument 19 (EFI_DIRECTED_IO_DMAR_ERROR_DATA *)section; in cper_section_dmar_vtd_to_ir() 22 //Version, revision and OEM ID, as defined in the VT-d architecture. in cper_section_dmar_vtd_to_ir() 25 oem_id |= (UINT64)vtd_error->OemId[i] << (i * 8); in cper_section_dmar_vtd_to_ir() 28 json_object_new_int(vtd_error->Version)); in cper_section_dmar_vtd_to_ir() 30 json_object_new_int(vtd_error->Revision)); in cper_section_dmar_vtd_to_ir() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | head-64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * We can't do CPP stringification and concatination directly into the section 13 .section ".head.text.\name\()","ax",@progbits 16 .section ".head.data.\name\()","a",@progbits 19 .section ".head.text.\name\()","ax",@progbits 24 * fixed section entries into them before closing them. Multiple fixed sections 27 * Each fixed section created in a .S file must have corresponding linkage 30 * For each fixed section, code is generated into it in the order which it 31 * appears in the source. Fixed section entries can be placed at a fixed 32 * location within the section using _LOCATION postifx variants. These must [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/overview_menu/ |
H A D | test_overview_menu.robot | 27 ${xpath_launch_host_console} //*[@data-test-id='overviewQuickLinks-button-solCo… 28 ${xpath_led_button} //*[@data-test-id='overviewInventory-checkbox-iden… 30 ${xpath_critical_logs_count} //dt[contains(text(),'Critical')]/following-siblin… 31 ${xpath_warning_logs_count} //dt[contains(text(),'Warning')]/following-sibling… 32 ${xpath_asset_tag} //dt[contains(text(),'Asset tag')]/following-sibli… 33 ${xpath_operating_mode} //dt[contains(text(),'Operating mode')]/following-… 34 ${xpath_machine_model} //dt[contains(text(),'Model')]/following-sibling::… 35 ${xpath_serial_number} //dt[contains(text(),'Serial number')]/following-s… 54 [Documentation] Verify values under network information section. 67 Verify Server Information Section [all …]
|
/openbmc/u-boot/arch/arm/lib/ |
H A D | sections.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * We need a 0-byte-size type for these symbols, and the compiler 17 * thing: zero-sized arrays, which are both 0-byte-size and exempt from 21 char __bss_start[0] __attribute__((section(".__bss_start"))); 22 char __bss_end[0] __attribute__((section(".__bss_end"))); 23 char __image_copy_start[0] __attribute__((section(".__image_copy_start"))); 24 char __image_copy_end[0] __attribute__((section(".__image_copy_end"))); 25 char __rel_dyn_start[0] __attribute__((section(".__rel_dyn_start"))); 26 char __rel_dyn_end[0] __attribute__((section(".__rel_dyn_end"))); 27 char __secure_start[0] __attribute__((section(".__secure_start"))); [all …]
|
/openbmc/openpower-hw-diags/attn/pel/ |
H A D | pel_section.hpp | 10 * @class Section 12 * The base class for a PEL section. It contains the SectionHeader 16 class Section class 19 Section() = default; 20 virtual ~Section() = default; 21 Section(const Section&) = default; 22 Section& operator=(const Section&) = default; 23 Section(Section&&) = default; 24 Section& operator=(Section&&) = default; 35 * @brief Flatten the section into the stream [all …]
|
H A D | section_header.hpp | 15 * @brief This 8-byte header is at the start of every PEL section. 17 * |--------+------------+------------+-----------+------------| 19 * |--------+------------+------------+-----------+------------| 20 * | 4 | Section ID | Section Length | 21 * |--------+------------+-------------------------------------| 22 * | 4 | Version | Sub-type | Component ID | 23 * |--------+--------------------------------------------------| 25 * Section ID: 26 * A two-ASCII character field which uniquely identifies the type of section. 28 * Section length: [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | otg_fsm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/usb/otg-fsm.h> 14 * A-DEVICE timing constants 18 #define TA_WAIT_VRISE (100) /* a_wait_vrise: section 7.1.2 19 * a_wait_vrise_tmr: section 7.4.5.1 20 * TA_VBUS_RISE <= 100ms, section 4.4 21 * Table 4-1: Electrical Characteristics 22 * ->DC Electrical Timing 25 #define TA_WAIT_VFALL (1000) /* a_wait_vfall: section 7.1.7 26 * a_wait_vfall_tmr: section: 7.4.5.2 [all …]
|
/openbmc/libcper/generator/ |
H A D | cper-generate.c | 2 * Describes functions for generating pseudo-random specification compliant CPER records. 11 #include <libcper/generator/gen-utils.h> 12 #include <libcper/generator/sections/gen-section.h> 13 #include <libcper/generator/cper-generate.h> 22 //Generates a CPER record with the given section types, outputting to the given stream. 37 printf("Error encountered generating section %d of type '%s', length returned zero.\n", in generate_cper_record() 47 header->SignatureStart = 0x52455043; //CPER in generate_cper_record() 48 header->SectionCount = num_sections; in generate_cper_record() 49 header->SignatureEnd = 0xFFFFFFFF; in generate_cper_record() 50 header->Flags = 4; //HW_ERROR_FLAGS_SIMULATED in generate_cper_record() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/binutils/binutils/ |
H A D | 0015-CVE-2024-53589.patch | 6 Commit 8b5a212495 supported *ABS* symbols by allowing "section" to be 15 Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e032307191… 16 CVE: CVE-2024-53589 18 Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> 20 diff --git a/bfd/tekhex.c b/bfd/tekhex.c 22 --- a/bfd/tekhex.c 24 @@ -361,6 +361,7 @@ first_phase (bfd *abfd, int type, char *src, char * src_end) 26 asection *section, *alt_section; 32 @@ -368,20 +369,16 @@ first_phase (bfd *abfd, int type, char *src, char * src_end) 35 /* Data record - read it and store it. */ [all …]
|