1b1b4d261SWilliam A. Kennington IIIdescription: > 2a1347418SPatrick Williams Implement to capture various types of dumps from the host or BMC. This 3a1347418SPatrick Williams interface is for user to request a particular type of dump. 4b1b4d261SWilliam A. Kennington III 5a1347418SPatrick Williams Any OpenBMC implementation should provide one implementation of 6a1347418SPatrick Williams xyz.openbmc_project.Dump.Create per dump type on 7a1347418SPatrick Williams /xyz/openbmc_project/dump/<dump type>. On multi-host or on multi-BMC systems 8a1347418SPatrick Williams the instance number can be added to the path to differentiate, for example 9a1347418SPatrick Williams /xyz/openbmc_project/dump/<dump type><instance-id>. 10b1b4d261SWilliam A. Kennington III 11b1b4d261SWilliam A. Kennington IIImethods: 12b1b4d261SWilliam A. Kennington III - name: CreateDump 13b1b4d261SWilliam A. Kennington III description: > 14b1b4d261SWilliam A. Kennington III Method to create a manual Dump. 15b1b4d261SWilliam A. Kennington III parameters: 16b1b4d261SWilliam A. Kennington III - name: AdditionalData 17c6f2d7a7SDhruvaraj Subhashchandran type: dict[string, variant[string,uint64]] 18b1b4d261SWilliam A. Kennington III description: > 19a1347418SPatrick Williams The additional data, if any, for initiating the dump. The key in 20a1347418SPatrick Williams this case should be an implementation specific enum defined for 21a1347418SPatrick Williams the specific type of dump either in xyz or in a domain. The 22a1347418SPatrick Williams values can be either a string or a 64 bit number. The 23a1347418SPatrick Williams enum-format string is required to come from a parallel class 24a1347418SPatrick Williams with this specific Enum name. All of the Enum strings should be 25a1347418SPatrick Williams in the format 'domain.Dump.Create.CreateParameters.ParamName'. 26b1b4d261SWilliam A. Kennington III e.g.: 27b1b4d261SWilliam A. Kennington III { 28b1b4d261SWilliam A. Kennington III "key1": "value1", 29b1b4d261SWilliam A. Kennington III "key2": "value2" 30b1b4d261SWilliam A. Kennington III } 31b1b4d261SWilliam A. Kennington III ends up in AdditionaData like: 32b1b4d261SWilliam A. Kennington III ["KEY1=value1", "KEY2=value2"] 33b1b4d261SWilliam A. Kennington III returns: 34b1b4d261SWilliam A. Kennington III - name: Path 35b1b4d261SWilliam A. Kennington III type: object_path 36b1b4d261SWilliam A. Kennington III description: > 37b1b4d261SWilliam A. Kennington III The object path of the object that implements 38a1347418SPatrick Williams xyz.openbmc_project.Common.Progress to track the progress of the 39a1347418SPatrick Williams dump 40b1b4d261SWilliam A. Kennington III errors: 41aa46bf4dSClaire Weinan - xyz.openbmc_project.Common.File.Error.Open 42b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.File.Error.Write 43b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Dump.Create.Error.Disabled 44b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Dump.Create.Error.QuotaExceeded 45b1b4d261SWilliam A. Kennington III - xyz.openbmc_project.Common.Error.NotAllowed 4608e8099eSDhruvaraj Subhashchandran - xyz.openbmc_project.Common.Error.InvalidArgument 47bed657a1SDhruvaraj Subhashchandran - xyz.openbmc_project.Common.Error.Unavailable 48bed657a1SDhruvaraj Subhashchandran 49f6db102eSAsmitha Karunanithienumerations: 50f6db102eSAsmitha Karunanithi - name: CreateParameters 51f6db102eSAsmitha Karunanithi description: > 52f6db102eSAsmitha Karunanithi Additional parameters for creating the dump. 53f6db102eSAsmitha Karunanithi values: 54a1347418SPatrick Williams - name: "OriginatorId" 55f6db102eSAsmitha Karunanithi description: > 56a1347418SPatrick Williams Unique Id of the originator of the respective operation. This 57a1347418SPatrick Williams property is defined in xyz.openbmc_project.Common.OriginatedBy 58a1347418SPatrick Williams interface. 59a1347418SPatrick Williams - name: "OriginatorType" 60f6db102eSAsmitha Karunanithi description: > 61a1347418SPatrick Williams Type of the originator that initiated the respective operation. 62a1347418SPatrick Williams This property is defined in xyz.openbmc_project. 63f6db102eSAsmitha Karunanithi Common.OriginatedBy interface. 649460809dSDhruvaraj Subhashchandran - name: "DumpType" 659460809dSDhruvaraj Subhashchandran description: > 669460809dSDhruvaraj Subhashchandran Type of the BMC dump to be collected 679460809dSDhruvaraj Subhashchandran - name: "FilePath" 689460809dSDhruvaraj Subhashchandran description: > 699460809dSDhruvaraj Subhashchandran The path to a file to create the dump, for example a systemd 709460809dSDhruvaraj Subhashchandran core-dump. 7164fcf95fSDhruvaraj Subhashchandran - name: "ErrorType" 7264fcf95fSDhruvaraj Subhashchandran description: > 7364fcf95fSDhruvaraj Subhashchandran Specifies the type of the error that triggered the BMC dump 7464fcf95fSDhruvaraj Subhashchandran collection. This is a string identifier for the error type. The 7564fcf95fSDhruvaraj Subhashchandran type of the error dictates the kind of debug data collected 7664fcf95fSDhruvaraj Subhashchandran during the dump process. 77f404c83bSDhruvaraj Subhashchandran - name: "EventId" 78f404c83bSDhruvaraj Subhashchandran description: > 79f404c83bSDhruvaraj Subhashchandran The identifier for an event that triggers the BMC dump. When a 80f404c83bSDhruvaraj Subhashchandran BMC dump is initiated as a response to a specific system event, 81f404c83bSDhruvaraj Subhashchandran this parameter can be supplied with the unique ID associated 82f404c83bSDhruvaraj Subhashchandran with that event. By linking the dump to an event ID, the system 83f404c83bSDhruvaraj Subhashchandran can collate additional, relevant diagnostic data or add this 84f404c83bSDhruvaraj Subhashchandran into the dump to aid in providing a clearer context. 859460809dSDhruvaraj Subhashchandran 869460809dSDhruvaraj Subhashchandran - name: DumpType 879460809dSDhruvaraj Subhashchandran description: > 889460809dSDhruvaraj Subhashchandran Possible types of BMC Dump. 899460809dSDhruvaraj Subhashchandran values: 909460809dSDhruvaraj Subhashchandran - name: "ApplicationCored" 919460809dSDhruvaraj Subhashchandran description: > 929460809dSDhruvaraj Subhashchandran Dump triggered due to application core. 939460809dSDhruvaraj Subhashchandran - name: "UserRequested" 949460809dSDhruvaraj Subhashchandran description: > 959460809dSDhruvaraj Subhashchandran Dump triggered by the user. 9664fcf95fSDhruvaraj Subhashchandran - name: "ErrorLog" 979460809dSDhruvaraj Subhashchandran description: > 9864fcf95fSDhruvaraj Subhashchandran This type of dump is triggered in response to a specific error 9964fcf95fSDhruvaraj Subhashchandran commit. The error type needs to be specified in the "ErrorType" 10064fcf95fSDhruvaraj Subhashchandran field. If no parameters are provided, a default dump will be 10164fcf95fSDhruvaraj Subhashchandran generated. 1029460809dSDhruvaraj Subhashchandran - name: "Ramoops" 1039460809dSDhruvaraj Subhashchandran description: > 1049460809dSDhruvaraj Subhashchandran Dump triggered due to Ramoops type error commit. 105a6130094SPatrick Williams 106a6130094SPatrick Williamsservice_names: 107a6130094SPatrick Williams - default: xyz.openbmc_project.Dump.Manager 108a6130094SPatrick Williams 109a6130094SPatrick Williamspaths: 110a6130094SPatrick Williams - namespace: /xyz/openbmc_project/dump 111a6130094SPatrick Williams segments: 112a6130094SPatrick Williams - name: BMC 113a6130094SPatrick Williams value: bmc 114*6f7ee633SDhruvaraj Subhashchandran - name: System 115*6f7ee633SDhruvaraj Subhashchandran value: system 116