1b1b4d261SWilliam A. Kennington IIIdescription: > 2b1b4d261SWilliam A. Kennington III Provides D-Bus access to OpenPower Platform Event Logs 3b1b4d261SWilliam A. Kennington IIImethods: 4b1b4d261SWilliam A. Kennington III - name: GetPEL 5b1b4d261SWilliam A. Kennington III description: > 6*921791c7SManojkiran Eda Returns a file descriptor to a PEL. 7b1b4d261SWilliam A. Kennington III parameters: 8b1b4d261SWilliam A. Kennington III - name: pelID 9b1b4d261SWilliam A. Kennington III type: uint32 10b1b4d261SWilliam A. Kennington III description: > 11b1b4d261SWilliam A. Kennington III The PEL log ID of the PEL to retrieve. 12b1b4d261SWilliam A. Kennington III returns: 13b1b4d261SWilliam A. Kennington III - name: data 14b1b4d261SWilliam A. Kennington III type: unixfd 15b1b4d261SWilliam A. Kennington III description: > 16b1b4d261SWilliam A. Kennington III A file descriptor for a file that contains the PEL. 17b1b4d261SWilliam A. Kennington III errors: 18b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.InternalFailure 19b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.InvalidArgument 20b1b4d261SWilliam A. Kennington III 21b1b4d261SWilliam A. Kennington III - name: GetPELFromOBMCID 22b1b4d261SWilliam A. Kennington III description: > 23b1b4d261SWilliam A. Kennington III Returns PEL data based on the OpenBMC event log ID. 24b1b4d261SWilliam A. Kennington III parameters: 25b1b4d261SWilliam A. Kennington III - name: obmcLogID 26b1b4d261SWilliam A. Kennington III type: uint32 27b1b4d261SWilliam A. Kennington III description: > 28b1b4d261SWilliam A. Kennington III The OpenBMC event log ID of the PEL to retrieve. 29b1b4d261SWilliam A. Kennington III returns: 30b1b4d261SWilliam A. Kennington III - name: data 31b1b4d261SWilliam A. Kennington III type: array[byte] 32b1b4d261SWilliam A. Kennington III description: > 33b1b4d261SWilliam A. Kennington III The PEL data 34b1b4d261SWilliam A. Kennington III errors: 35b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.InvalidArgument 36b1b4d261SWilliam A. Kennington III 37b1b4d261SWilliam A. Kennington III - name: HostAck 38b1b4d261SWilliam A. Kennington III description: > 39b1b4d261SWilliam A. Kennington III Notifies the PEL handler that the host (usually the OS) acked a PEL. 40b1b4d261SWilliam A. Kennington III parameters: 41b1b4d261SWilliam A. Kennington III - name: pelID 42b1b4d261SWilliam A. Kennington III type: uint32 43b1b4d261SWilliam A. Kennington III description: > 44b1b4d261SWilliam A. Kennington III The PEL log ID 45b1b4d261SWilliam A. Kennington III errors: 46b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.InvalidArgument 47b1b4d261SWilliam A. Kennington III 48b1b4d261SWilliam A. Kennington III - name: HostReject 49b1b4d261SWilliam A. Kennington III description: > 50b1b4d261SWilliam A. Kennington III Notifies the PEL handler that the host could not process a PEL. 51b1b4d261SWilliam A. Kennington III parameters: 52b1b4d261SWilliam A. Kennington III - name: pelID 53b1b4d261SWilliam A. Kennington III type: uint32 54b1b4d261SWilliam A. Kennington III description: > 55b1b4d261SWilliam A. Kennington III The PEL log ID 56b1b4d261SWilliam A. Kennington III - name: reason 57b1b4d261SWilliam A. Kennington III type: enum[self.RejectionReason] 58b1b4d261SWilliam A. Kennington III description: > 59b1b4d261SWilliam A. Kennington III The reason the PEL was rejected 60b1b4d261SWilliam A. Kennington III errors: 61b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.InvalidArgument 62b1b4d261SWilliam A. Kennington III 63b1b4d261SWilliam A. Kennington III - name: CreatePELWithFFDCFiles 64b1b4d261SWilliam A. Kennington III description: > 65b1b4d261SWilliam A. Kennington III Creates an OpenBMC event log and a corresponding PEL. This method 66b1b4d261SWilliam A. Kennington III returns the IDs of the created PEL and OpenBMC event log, unlike the 67b1b4d261SWilliam A. Kennington III 'xyz.openbmc_project.Logging.Create.CreateWithFFDCFiles' method which 68b1b4d261SWilliam A. Kennington III doesn't return anything. 69b1b4d261SWilliam A. Kennington III parameters: 70b1b4d261SWilliam A. Kennington III - name: Message 71b1b4d261SWilliam A. Kennington III type: string 72b1b4d261SWilliam A. Kennington III description: > 73a1347418SPatrick Williams The Message property of the OpenBMC event log entry. This is 74a1347418SPatrick Williams also the key into the PEL message registry. 75b1b4d261SWilliam A. Kennington III - name: Severity 76b1b4d261SWilliam A. Kennington III type: enum[xyz.openbmc_project.Logging.Entry.Level] 77b1b4d261SWilliam A. Kennington III description: > 78b1b4d261SWilliam A. Kennington III The Severity property of the event entry. 79b1b4d261SWilliam A. Kennington III - name: AdditionalData 80b1b4d261SWilliam A. Kennington III type: dict[string, string] 81b1b4d261SWilliam A. Kennington III description: > 82a1347418SPatrick Williams The AdditionalData property of the event entry. e.g.: 83b1b4d261SWilliam A. Kennington III { 84b1b4d261SWilliam A. Kennington III "key1": "value1", 85b1b4d261SWilliam A. Kennington III "key2": "value2" 86b1b4d261SWilliam A. Kennington III } 87b1b4d261SWilliam A. Kennington III ends up in AdditionaData like: 88b1b4d261SWilliam A. Kennington III ["KEY1=value1", "KEY2=value2"] 89b1b4d261SWilliam A. Kennington III - name: FFDC 90a1347418SPatrick Williams type: 91a1347418SPatrick Williams array[struct[enum[xyz.openbmc_project.Logging.Create.FFDCFormat], 92a1347418SPatrick Williams byte, byte, unixfd]] 93b1b4d261SWilliam A. Kennington III description: > 94a1347418SPatrick Williams File descriptors for any files containing FFDC, along with 95a1347418SPatrick Williams metadata about the contents: 96b1b4d261SWilliam A. Kennington III 97b1b4d261SWilliam A. Kennington III FFDCFormat- The format type of the contained data. 98b1b4d261SWilliam A. Kennington III subType - The format subtype, used for the 'Custom' type. 99a1347418SPatrick Williams version - The version of the data format, used for the 100a1347418SPatrick Williams 'Custom' 101b1b4d261SWilliam A. Kennington III type. 102b1b4d261SWilliam A. Kennington III unixfd - The file descriptor to the data file. 103b1b4d261SWilliam A. Kennington III 104a1347418SPatrick Williams e.g.: [ 105a1347418SPatrick Williams {"xyz.openbmc_project.Logging.Create.FFDCFormat.JSON", 0, 0, 106a1347418SPatrick Williams 5}, 107a1347418SPatrick Williams {"xyz.openbmc_project.Logging.Create.FFDCFormat.Custom", 1, 2, 108a1347418SPatrick Williams 6} ] 109b1b4d261SWilliam A. Kennington III returns: 110b1b4d261SWilliam A. Kennington III - name: IDs 111b1b4d261SWilliam A. Kennington III type: struct[uint32, uint32] 112b1b4d261SWilliam A. Kennington III description: > 113b1b4d261SWilliam A. Kennington III The IDs of the 2 created logs: 114b1b4d261SWilliam A. Kennington III - OpenBMC event log ID 115b1b4d261SWilliam A. Kennington III - PEL log ID: The unique ID of the PEL 116a1347418SPatrick Williams Note that the PEL's platform log ID (PLID) field is always equal 117a1347418SPatrick Williams to the PEL log ID for BMC created PELs. 118b1b4d261SWilliam A. Kennington III 119e7f718fcSRamesh Iyyar - name: GetPELIdFromBMCLogId 120e7f718fcSRamesh Iyyar description: > 121a1347418SPatrick Williams Returns the PEL Id (aka Entry ID (EID)) based on the given BMC event 122a1347418SPatrick Williams log id. 123e7f718fcSRamesh Iyyar parameters: 124e7f718fcSRamesh Iyyar - name: bmcLogId 125e7f718fcSRamesh Iyyar type: uint32 126e7f718fcSRamesh Iyyar description: > 127e7f718fcSRamesh Iyyar The BMC event log id of the PEL to retrieve the PEL id. 128e7f718fcSRamesh Iyyar returns: 129e7f718fcSRamesh Iyyar - name: pelId 130e7f718fcSRamesh Iyyar type: uint32 131e7f718fcSRamesh Iyyar description: > 132e7f718fcSRamesh Iyyar The Id of the PEL. 133e7f718fcSRamesh Iyyar errors: 134e7f718fcSRamesh Iyyar - xyz.openbmc_project.Common.Error.InvalidArgument 135e7f718fcSRamesh Iyyar 136406e3d47SRamesh Iyyar - name: GetBMCLogIdFromPELId 137406e3d47SRamesh Iyyar description: > 138a1347418SPatrick Williams Returns the BMC event log id based on the given PEL id (aka Entry ID 139a1347418SPatrick Williams (EID)). 140406e3d47SRamesh Iyyar parameters: 141406e3d47SRamesh Iyyar - name: pelId 142406e3d47SRamesh Iyyar type: uint32 143406e3d47SRamesh Iyyar description: > 144406e3d47SRamesh Iyyar The PEL id to retrieve the BMC event log id. 145406e3d47SRamesh Iyyar returns: 146406e3d47SRamesh Iyyar - name: bmcLogId 147406e3d47SRamesh Iyyar type: uint32 148406e3d47SRamesh Iyyar description: > 149406e3d47SRamesh Iyyar The BMC event log id of the PEL. 150406e3d47SRamesh Iyyar errors: 151406e3d47SRamesh Iyyar - xyz.openbmc_project.Common.Error.InvalidArgument 152406e3d47SRamesh Iyyar 153c531268cSMatt Spinler - name: GetPELJSON 154c531268cSMatt Spinler description: > 155a1347418SPatrick Williams Returns a string containing the JSON representation of the PEL. 156c531268cSMatt Spinler parameters: 157c531268cSMatt Spinler - name: bmcLogId 158c531268cSMatt Spinler type: uint32 159c531268cSMatt Spinler description: > 160c531268cSMatt Spinler The BMC event log id of the PEL to retrieve JSON for 161c531268cSMatt Spinler returns: 162c531268cSMatt Spinler - name: json 163c531268cSMatt Spinler type: string 164c531268cSMatt Spinler description: > 165c531268cSMatt Spinler The PEL in JSON format 166c531268cSMatt Spinler errors: 167c531268cSMatt Spinler - xyz.openbmc_project.Common.Error.InvalidArgument 168c531268cSMatt Spinler - xyz.openbmc_project.Common.Error.InternalFailure 169c531268cSMatt Spinler 170b1b4d261SWilliam A. Kennington IIIenumerations: 171b1b4d261SWilliam A. Kennington III - name: RejectionReason 172b1b4d261SWilliam A. Kennington III description: > 173b1b4d261SWilliam A. Kennington III The reason the PEL was rejected 174b1b4d261SWilliam A. Kennington III values: 175b1b4d261SWilliam A. Kennington III - name: BadPEL 176b1b4d261SWilliam A. Kennington III description: > 177b1b4d261SWilliam A. Kennington III The PEL was malformed. 178b1b4d261SWilliam A. Kennington III - name: HostFull 179b1b4d261SWilliam A. Kennington III description: > 180b1b4d261SWilliam A. Kennington III The host does not have room for more PELs at this time. 181