Home
last modified time | relevance | path

Searched refs:actionFlags (Results 1 – 22 of 22) sorted by relevance

/openbmc/phosphor-logging/test/openpower-pels/
H A Duser_header_test.cpp41 EXPECT_EQ(uh.actionFlags(), 0x80C0); in TEST()
98 regEntry.actionFlags = 0xC000; in TEST()
122 EXPECT_EQ(uh.actionFlags(), 0xC000); in TEST()
128 regEntry.actionFlags = std::nullopt; in TEST()
132 EXPECT_EQ(uh.actionFlags(), 0xFFFF); in TEST()
188 regEntry.actionFlags = 0xC000; in TEST()
210 regEntry.actionFlags = 0xC000; in TEST()
232 regEntry.actionFlags = 0xC000; in TEST()
256 regEntry.actionFlags = 0xC000; in TEST()
277 regEntry.actionFlags = 0xC000; in TEST()
[all …]
H A Dpel_rules_test.cpp10 uint16_t actionFlags; member
66 auto [actionFlags, type] = pel_rules::check( in TEST()
67 entry.actionFlags, entry.eventType, entry.severity); in TEST()
69 EXPECT_EQ(actionFlags, entry.expectedActionFlags); in TEST()
H A Dhost_notifier_test.cpp177 std::bitset<16> actionFlags = pel->userHeader().actionFlags(); in TEST_F() local
178 EXPECT_TRUE(actionFlags.test(dontReportToHostFlagBit)); in TEST_F()
196 std::bitset<16> actionFlags = pel->userHeader().actionFlags(); in TEST_F() local
197 EXPECT_TRUE(actionFlags.test(hiddenFlagBit)); in TEST_F()
217 std::bitset<16> actionFlags = pel->userHeader().actionFlags(); in TEST_F() local
218 EXPECT_TRUE(actionFlags.test(hiddenFlagBit)); in TEST_F()
H A Dpel_utils.cpp231 uint16_t actionFlags, size_t size) in pelFactory() argument
262 data.at(offset + actionFlagsUHOffset) = actionFlags >> 8; in pelFactory()
263 data.at(offset + actionFlagsUHOffset + 1) = actionFlags; in pelFactory()
H A Dpel_utils.hpp107 uint16_t actionFlags, size_t size);
H A Dpel_test.cpp58 EXPECT_EQ(pel->userHeader().actionFlags(), 0x80C0); in TEST_F()
149 regEntry.actionFlags = 0xC000; in TEST_F()
201 regEntry.actionFlags = std::nullopt; in TEST_F()
208 EXPECT_EQ(pel2.userHeader().actionFlags(), 0xA800); in TEST_F()
222 regEntry.actionFlags = 0xC000; in TEST_F()
737 regEntry.actionFlags = 0xC000; in TEST_F()
797 regEntry.actionFlags = 0xC000; in TEST_F()
1002 regEntry.actionFlags = 0xC000; in TEST_F()
1069 regEntry.actionFlags = 0xC000; in TEST_F()
1134 regEntry.actionFlags = 0xC000; in TEST_F()
H A Drepository_test.cpp282 std::bitset<16> actionFlags; in TEST_F() local
293 actionFlags = pel->userHeader().actionFlags(); in TEST_F()
300 EXPECT_EQ((*a).get().actionFlags, actionFlags); in TEST_F()
316 EXPECT_EQ((*a).get().actionFlags, actionFlags); in TEST_F()
H A Dregistry_test.cpp230 EXPECT_EQ(*(entry->actionFlags), 0xA800); in TEST_F()
280 EXPECT_EQ(*(entry->actionFlags), 0x2820); in TEST_F()
297 EXPECT_FALSE(entry->actionFlags); in TEST_F()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dpel_rules.cpp14 std::tuple<uint16_t, uint8_t> check(uint16_t actionFlags, uint8_t eventType, in check() argument
17 std::bitset<16> newActionFlags{actionFlags}; in check()
H A Dservice_indicators.cpp30 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in ignore() local
31 if (actionFlags.test(serviceActionFlagBit)) in ignore()
H A Duser_header.cpp194 _actionFlags = entry.actionFlags.value_or(actionFlagsDefault); in UserHeader()
243 std::vector<std::string> actionFlags; in getJSON() local
248 actionFlags = in getJSON()
275 jsonInsertArray(uh, "Action Flags", actionFlags, 1); in getJSON()
H A Dpel_rules.hpp27 std::tuple<uint16_t, uint8_t> check(uint16_t actionFlags, uint8_t eventType,
H A Dhost_notifier.cpp102 else if (a.actionFlags.test(hiddenFlagBit) && in enqueueRequired()
107 else if (a.actionFlags.test(dontReportToHostFlagBit)) in enqueueRequired()
137 else if (a.actionFlags.test(hiddenFlagBit)) in notifyRequired()
H A Duser_header.hpp146 uint16_t actionFlags() const in actionFlags() function in openpower::pels::UserHeader
H A Dregistry.cpp97 uint16_t actionFlags = 0; in getActionFlags() local
114 actionFlags |= std::get<pv::fieldValuePos>(*s); in getActionFlags()
117 return actionFlags; in getActionFlags()
742 entry.actionFlags = helper::getActionFlags((*e)["ActionFlags"]); in lookup()
H A Drepository.hpp34 std::bitset<16> actionFlags; member
50 severity(sev), actionFlags(flags), hostState(hostState), in PELAttributes()
H A Drepository.cpp111 pel.userHeader().actionFlags(), in restore()
174 pel->userHeader().actionFlags(), in add()
497 !pel.actionFlags.test(hiddenFlagBit); in isServiceableSev()
H A Dregistry.hpp171 std::optional<uint16_t> actionFlags; member
H A Dmanager.cpp917 if (attr.actionFlags.test(callHomeFlagBit)) in setServiceProviderNotifyFlag()
944 attr.actionFlags.test(reportFlagBit) && in createPELEntry()
945 !attr.actionFlags.test(hiddenFlagBit)) || in createPELEntry()
947 attr.actionFlags.test(serviceActionFlagBit))) in createPELEntry()
H A Dpel.cpp326 if (_uh->actionFlags() == actionFlagsDefault) in checkRulesAndFix()
328 auto [actionFlags, eventType] = in checkRulesAndFix()
331 _uh->setActionFlags(actionFlags); in checkRulesAndFix()
/openbmc/openpower-hw-diags/attn/
H A Dattn_logging.cpp268 auto actionFlags = pel::ActionFlags::service | pel::ActionFlags::report | in createPelCustom() local
275 actionFlags = actionFlags | pel::ActionFlags::hidden; in createPelCustom()
278 tiPel->setAction(static_cast<uint16_t>(actionFlags)); in createPelCustom()
/openbmc/phosphor-logging/extensions/openpower-pels/tools/
H A Dpeltool.cpp333 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in genPELJSON() local
334 if (!hidden && actionFlags.test(hiddenFlagBit)) in genPELJSON()
726 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in printPELCount() local
727 if (!hidden && actionFlags.test(hiddenFlagBit)) in printPELCount()