pldm.cpp (25613624cee19b8009f72cf30229d68e1fa7aa0a) pldm.cpp (b5ca101530dc5fa0992d00ab36edb292519cef94)
1#include "pldm.hpp"
2
3#include "file.hpp"
4
5#include <fmt/core.h>
6#include <libpldm/entity.h>
7#include <libpldm/platform.h>
8#include <libpldm/state_set.h>

--- 28 unchanged lines hidden (view full) ---

37 }
38 possibleStatesPtr += sizeof(possibleStates->state_set_id) +
39 sizeof(possibleStates->possible_states_size) +
40 possibleStates->possible_states_size;
41 }
42
43 if (!offsetFound)
44 {
1#include "pldm.hpp"
2
3#include "file.hpp"
4
5#include <fmt/core.h>
6#include <libpldm/entity.h>
7#include <libpldm/platform.h>
8#include <libpldm/state_set.h>

--- 28 unchanged lines hidden (view full) ---

37 }
38 possibleStatesPtr += sizeof(possibleStates->state_set_id) +
39 sizeof(possibleStates->possible_states_size) +
40 possibleStates->possible_states_size;
41 }
42
43 if (!offsetFound)
44 {
45 log<level::ERR>("pldm: OCC state sensor PDR with StateSetId "
46 "PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS not found");
45 log<level::ERR>(
46 "pldm: OCC state sensor PDR with StateSetId PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS not found");
47 return;
48 }
49
50 // To order SensorID based on the EntityInstance.
51 // Note that when a proc is on a DCM, the PDRs for these sensors
52 // could have the same instance IDs but different container IDs.
53 std::map<uint32_t, SensorID> entityInstMap{};
54 for (auto& pdr : pdrs)

--- 300 unchanged lines hidden ---
47 return;
48 }
49
50 // To order SensorID based on the EntityInstance.
51 // Note that when a proc is on a DCM, the PDRs for these sensors
52 // could have the same instance IDs but different container IDs.
53 std::map<uint32_t, SensorID> entityInstMap{};
54 for (auto& pdr : pdrs)

--- 300 unchanged lines hidden ---