Conversation
|
Rx: 80 02 0a 01 01 05 01 01 4c 00 00 20 5c root@congo-0381:~# tcpdump -i mctpi3c4 root@congo-0381:~# ls -l /tmp/pldmerr |
platform-mc/event_manager.cpp
Outdated
| terminus->pollDataTransferHandle = poll_event.data_transfer_handle; | ||
|
|
||
| if (eventId != PLDM_PLATFORM_EVENT_ID_NULL) | ||
| log_pldm_error_event(tid, eventId, eventClass, eventData, eventDataSize); |
There was a problem hiding this comment.
follow the camelCase.
why this function can't be a method of EventManager calss? Any specific reason?
There was a problem hiding this comment.
Will change the name to logPldmErrorEvent.
There is nothing specific to EventManager class being done in this function, so considered making it a worker function and not class specific worker function.
platform-mc/event_manager.cpp
Outdated
| pldm_tid_t tid, uint16_t eventId, uint8_t eventClass, | ||
| const uint8_t* eventData, size_t eventDataSize) | ||
| { | ||
| fs::path dir{"/tmp/pldmerr"}; |
There was a problem hiding this comment.
this is not pldmerr. please rename it as "/tmp/pldmEventLog/"
There was a problem hiding this comment.
Sure but I think pldmeventlog might be consistent with the file and directory names in this Linux filesystem?
There was a problem hiding this comment.
ok, will change to pldm_event_log
92d52f0 to
467e3cd
Compare
|
Rx: 80 02 0a 01 01 05 01 01 4c 00 00 20 5c root@congo-0381:~# ls -l /tmp/pldmeventlog/* root@congo-0381:~# hexdump -C /tmp/pldmeventlog/pldm_oob_err_1774838848_0_ec0x05_tid0x01_eventid0x4c01.bin |
Generate a PldmMessagePollEvent D-Bus signal when an Out-Of-Band (OOB) error event is received. In verbose mode only, also generate a log file with the data received as part of OOB PLDM error event. Signed-off-by: Shirish Pargaonkar <Shirish.Pargaonkar@amd.com>
467e3cd to
e75e892
Compare
Generate a log file with the event data received
as part of Out-of-Band PLDM error event.