Home
last modified time | relevance | path

Searched full:trigger (Results 1 – 25 of 983) sorted by relevance

12345678910>>...40

/openbmc/phosphor-fan-presence/control/
H A Dtriggers.hpp12 namespace trigger namespace
16 * @brief A trigger to start a timer for an event
22 * @return Trigger lambda function
23 * A Trigger function that creates and starts a timer
25 Trigger timer(TimerConf&& tConf);
28 * @brief A trigger of a signal for an event
34 * @return Trigger lambda function
35 * A Trigger function that subscribes to a signal
37 Trigger signal(const std::string& match, SignalHandler&& handler);
40 * @brief A trigger for actions to run at event init
[all …]
/openbmc/bmcweb/redfish-core/include/registries/
H A Dtelemetry_message_registry.hpp45 "Indicates that a discrete trigger condition is met.",
46 "Metric '%1' has the value '%2', which meets the discrete condition of trigger '%3'",
54 "Check the condition of the metric that reported the trigger.",
59 …"Indicates that a numeric metric reading is no longer below the lower critical trigger threshold, …
60 …"Metric '%1' value of %2 is now above the %3 lower critical threshold of trigger '%4' but remains …
69 "Check the condition of the metric that reported the trigger.",
74 … "Indicates that a numeric metric reading is above the upper critical trigger threshold.",
75 "Metric '%1' value of %2 is above the %3 upper critical threshold of trigger '%4'",
84 "Check the condition of the metric that reported the trigger.",
89 "Indicates that a numeric metric reading is above the upper warning trigger threshold.",
[all …]
/openbmc/telemetry/src/
H A Dtrigger.hpp5 #include "interfaces/trigger.hpp"
17 class Trigger : public interfaces::Trigger class
20 Trigger(boost::asio::io_context& ioc,
31 Trigger(const Trigger&) = delete;
32 Trigger(Trigger&&) = delete;
33 Trigger& operator=(const Trigger&) = delete;
34 Trigger& operator=(Trigger&&) = delete;
70 "xyz.openbmc_project.Telemetry.Trigger";
H A Dtrigger_manager.hpp6 #include "trigger.hpp"
27 void removeTrigger(const interfaces::Trigger* trigger) override;
37 std::vector<std::unique_ptr<interfaces::Trigger>> triggers;
43 interfaces::Trigger& addTrigger(
57 static constexpr std::string_view triggerNameDefault = "Trigger";
60 "Default trigger name cannot be empty.");
H A Dtrigger_manager.cpp3 #include "trigger.hpp"
67 void TriggerManager::removeTrigger(const interfaces::Trigger* trigger) in removeTrigger() argument
71 [trigger](const auto& x) { return trigger == x.get(); }), in removeTrigger()
117 "Reached maximal trigger count"); in verifyAddTrigger()
124 interfaces::Trigger& TriggerManager::addTrigger( in addTrigger()
132 triggers, [](const auto& trigger) { return trigger->getId(); }); in addTrigger() argument
161 if (version != Trigger::triggerVersion) in loadFromPersistent()
198 "Failed to load trigger from storage", in loadFromPersistent()
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DTriggerManager.interface.yaml7 Create new object that represents Trigger with
8 xyz.openbmc_project.Telemetry.Trigger interface stored in path
15 Defines unique identifier of created Trigger object to be
22 Defines user friendly name of created Trigger object.
24 type: array[enum[xyz.openbmc_project.Telemetry.Trigger.TriggerAction]]
31 Map of sensors that is monitored within trigger. D-Bus sensor
42 …ay[struct[enum[xyz.openbmc_project.Telemetry.Trigger.Type],uint64,enum[xyz.openbmc_project.Telemet…
45 xyz.openbmc_project.Telemetry.Trigger interface.
47 … type: array[struct[string,enum[xyz.openbmc_project.Telemetry.Trigger.Severity],uint64,string]]
50 xyz.openbmc_project.Telemetry.Trigger interface.
[all …]
H A DTrigger.interface.yaml2 Implement this interface to provide trigger inspection features. An
4 xyz.openbmc_project.Object.Delete for deletion of individual trigger.
10 If true than trigger uses discrete thresholds as threshold conditions.
22 description: Defines if Trigger is stored in non volatile memory.
32 Map of sensors that is monitored within trigger. D-Bus sensor path is
42 long condition has to persist to trigger an action.
51 has to persist to trigger an action.
55 Defines the name of trigger to be exposed over D-Bus.
63 description: Trigger will log to journal.
65 description: Trigger will log Redfish message.
[all …]
/openbmc/debug-trigger/
H A DREADME.md1 # BMC Debug Trigger
3 `debug-trigger` listens for an external signal that the BMC is in some way
7 ## Trigger sources
9 `debug-trigger` implements a simple protocol over an LPC KCS device as its
10 trigger source.
14 `debug-trigger` implements a single action once the trigger event is received,
15 which is to crash the kernel via `/proc/sysrq-trigger`. For systems with kdump
H A Dmeson.build1 project('debug-trigger', 'c',
16 configure_file(input: 'systemd/system/debug-trigger@.service',
17 output: 'debug-trigger@.service',
30 foreach trigger : triggers
31 src = 'udev/rules.d/debug-trigger-' + trigger + '.rules'
32 dst = 'debug-trigger-' + trigger + '.rules'
37 executable('debug-trigger', 'main.c', config_h,
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/
H A DTriggers.v1_4_0.json35 "description": "The direction of crossing that corresponds to a trigger.",
41 …"Decreasing": "A trigger is met when the metric value crosses the trigger value while decreasing.",
42 …"Increasing": "A trigger condition is met when the metric value crosses the trigger value while in…
44 …gDescription": "The value shall indicate the direction of crossing that corresponds to a trigger.",
49 "description": "The characteristics of the discrete trigger.",
50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.",
67 …"description": "The amount of time that a trigger event persists before the metric action is perfo…
68 …longDescription": "This property shall contain the amount of time that a trigger event persists be…
77 "description": "The name of the trigger.",
78 "longDescription": "This property shall contain a name for the trigger.",
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DTriggers.v1_4_0.json35 "description": "The direction of crossing that corresponds to a trigger.",
41 …"Decreasing": "A trigger is met when the metric value crosses the trigger value while decreasing.",
42 …"Increasing": "A trigger condition is met when the metric value crosses the trigger value while in…
44 …gDescription": "The value shall indicate the direction of crossing that corresponds to a trigger.",
49 "description": "The characteristics of the discrete trigger.",
50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.",
67 …"description": "The amount of time that a trigger event persists before the metric action is perfo…
68 …longDescription": "This property shall contain the amount of time that a trigger event persists be…
77 "description": "The name of the trigger.",
78 "longDescription": "This property shall contain a name for the trigger.",
[all …]
/openbmc/phosphor-fan-presence/control/json/triggers/
H A Dtimer.hpp26 namespace phosphor::fan::control::json::trigger::timer namespace
32 * @brief Parse and return the timer trigger's type
34 * @param[in] jsonObj - JSON object for the timer trigger
43 * @param[in] jsonObj - JSON object for the timer trigger
50 * @brief Trigger to run an event based on a timer
52 * @param[in] jsonObj - JSON object for the trigger
53 * @param[in] eventName - Name of event creating the trigger
54 * @param[in] actions - Actions associated with the trigger
63 } // namespace phosphor::fan::control::json::trigger::timer
H A Dsignal.hpp30 namespace phosphor::fan::control::json::trigger::signal namespace
41 * @param[in] mgr - Pointer to manager of the trigger
49 * @param[in] mgr - Pointer to manager of the trigger
59 * @param[in] mgr - Pointer to manager of the trigger
69 * @param[in] mgr - Pointer to manager of the trigger
79 * @param[in] mgr - Pointer to manager of the trigger
89 * @param[in] mgr - Pointer to manager of the trigger
109 * @brief Trigger to process an event after a signal is received
111 * @param[in] jsonObj - JSON object for the trigger
113 * @param[in] actions - Actions associated with the trigger
[all …]
H A Dinit.hpp30 namespace phosphor::fan::control::json::trigger::init namespace
59 * @brief Trigger to process an event immediately upon fan control starting
61 * @param[in] jsonObj - JSON object for the trigger
62 * @param[in] eventName - Name of event creating the trigger
63 * @param[in] actions - Actions associated with the trigger
69 * Generally, this type of trigger is paired with a 'signal' class of trigger on
76 } // namespace phosphor::fan::control::json::trigger::init
H A Dtimer.cpp27 namespace phosphor::fan::control::json::trigger::timer namespace
36 lg2::error("Missing required timer trigger type", "JSON", in getType()
38 throw std::runtime_error("Missing required timer trigger type"); in getType()
52 … "Timer trigger type '{TYPE}' is not supported. Available types are 'oneshot, repeating'", in getType()
54 throw std::runtime_error("Unsupported timer trigger type given"); in getType()
62 lg2::error("Missing required timer trigger interval", "JSON", in getInterval()
64 throw std::runtime_error("Missing required timer trigger interval"); in getInterval()
100 } // namespace phosphor::fan::control::json::trigger::timer
H A Dparameter.hpp27 namespace phosphor::fan::control::json::trigger::parameter namespace
31 * @brief Trigger to process an event after a parameter changes
33 * @param[in] jsonObj - JSON object for the trigger
35 * @param[in] actions - Actions associated with the trigger
41 } // namespace phosphor::fan::control::json::trigger::parameter
/openbmc/u-boot/include/linux/
H A Dserial_reg.h51 * Note: The FIFO trigger levels are chip specific:
73 #define UART_FCR_TRIGGER_MASK 0xC0 /* Mask for the FIFO trigger range */
74 #define UART_FCR_TRIGGER_1 0x00 /* Mask for trigger set at 1 */
75 #define UART_FCR_TRIGGER_4 0x40 /* Mask for trigger set at 4 */
76 #define UART_FCR_TRIGGER_8 0x80 /* Mask for trigger set at 8 */
77 #define UART_FCR_TRIGGER_14 0xC0 /* Mask for trigger set at 14 */
79 #define UART_FCR6_R_TRIGGER_8 0x00 /* Mask for receive trigger set at 1 */
80 #define UART_FCR6_R_TRIGGER_16 0x40 /* Mask for receive trigger set at 4 */
81 #define UART_FCR6_R_TRIGGER_24 0x80 /* Mask for receive trigger set at 8 */
82 #define UART_FCR6_R_TRIGGER_28 0xC0 /* Mask for receive trigger set at 14 */
[all …]
/openbmc/phosphor-fan-presence/control/json/
H A Devent.cpp23 #include "trigger.hpp"
58 for (const auto& [type, trigger] : _triggers) in enable()
63 trigger(getName(), _manager, _groups, _actions); in enable()
70 for (const auto& [type, trigger] : _triggers) in powerOn()
74 trigger(getName(), _manager, _groups, _actions); in powerOn()
81 for (const auto& [type, trigger] : _triggers) in powerOff()
85 trigger(getName(), _manager, _groups, _actions); in powerOff()
281 lg2::error("Missing required event trigger class", "JSON", in setTriggers()
283 throw std::runtime_error("Missing required event trigger class"); in setTriggers()
285 // The class of trigger used to run the event actions in setTriggers()
[all …]
/openbmc/telemetry/src/types/
H A Dtrigger_types.hpp27 "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.LogToJournal",
29 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.TriggerAction."
33 "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.UpdateReport",
88 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.Type.LowerCritical",
90 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.Type.LowerWarning",
92 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.Type.UpperWarning",
94 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.Type.UpperCritical",
99 std::make_pair("xyz.openbmc_project.Telemetry.Trigger.Direction.Either",
102 "xyz.openbmc_project.Telemetry.Trigger.Direction.Decreasing",
105 "xyz.openbmc_project.Telemetry.Trigger.Direction.Increasing",
[all …]
/openbmc/debug-trigger/systemd/system/
H A Ddebug-trigger@.service2 Description=BMC Debug Trigger
7 Environment=DEBUG_TRIGGER_OPTIONS= DEBUG_TRIGGER_SOURCE=/%I DEBUG_TRIGGER_SINK=/proc/sysrq-trigger
8 EnvironmentFile=-/etc/default/debug-trigger
9 ExecStart=/usr/bin/debug-trigger $DEBUG_TRIGGER_OPTIONS $DEBUG_TRIGGER_SOURCE $DEBUG_TRIGGER_SINK
/openbmc/phosphor-ipmi-flash/bmc/version-handler/test/
H A Dversion_open_unittest.cpp34 EXPECT_CALL(*tm.at("blob0"), trigger()).Times(1).WillOnce(Return(true)); in TEST_F()
43 EXPECT_CALL(*val, trigger()).WillOnce(Return(true)); in TEST_F()
54 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
60 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
66 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()
74 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(false)); in TEST_F()
76 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()
83 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DTriggers_v1.xml39 …<Annotation Term="OData.Description" String="The `Triggers` schema describes a trigger condition t…
40 …<Annotation Term="OData.LongDescription" String="This resource shall contain a trigger condition t…
73 <Annotation Term="OData.Description" String="The metric type of the trigger."/>
74 …Term="OData.LongDescription" String="This property shall contain the metric type of the trigger."/>
78 <Annotation Term="OData.Description" String="The actions that the trigger initiates."/>
79 …ata.LongDescription" String="This property shall contain the actions that the trigger initiates."/>
82 … <Annotation Term="OData.Description" String="The thresholds for a numeric metric trigger."/>
87 … <Annotation Term="OData.Description" String="The conditions for a discrete metric trigger."/>
106 …tring="An array of URIs with wildcards and property identifiers for this trigger. Each wildcard, …
107trigger. Use a set of curly braces to delimit each wildcard in the URI. Replace each wildcard wi…
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/
H A DTriggers_v1.xml39 …<Annotation Term="OData.Description" String="The `Triggers` schema describes a trigger condition t…
40 …<Annotation Term="OData.LongDescription" String="This resource shall contain a trigger condition t…
73 <Annotation Term="OData.Description" String="The metric type of the trigger."/>
74 …Term="OData.LongDescription" String="This property shall contain the metric type of the trigger."/>
78 <Annotation Term="OData.Description" String="The actions that the trigger initiates."/>
79 …ata.LongDescription" String="This property shall contain the actions that the trigger initiates."/>
82 … <Annotation Term="OData.Description" String="The thresholds for a numeric metric trigger."/>
87 … <Annotation Term="OData.Description" String="The conditions for a discrete metric trigger."/>
106 …tring="An array of URIs with wildcards and property identifiers for this trigger. Each wildcard, …
107trigger. Use a set of curly braces to delimit each wildcard in the URI. Replace each wildcard wi…
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dtrigger.hpp57 "xyz.openbmc_project.Telemetry.Trigger";
72 "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.UpdateReport") in toRedfishTriggerAction()
77 "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.LogToRedfishEventLog") in toRedfishTriggerAction()
82 "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.LogToJournal") in toRedfishTriggerAction()
93 return "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.UpdateReport"; in toDbusTriggerAction()
97 return "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.LogToRedfishEventLog"; in toDbusTriggerAction()
101 return "xyz.openbmc_project.Telemetry.Trigger.TriggerAction.LogToJournal"; in toDbusTriggerAction()
110 return "xyz.openbmc_project.Telemetry.Trigger.Severity.OK"; in toDbusSeverity()
114 return "xyz.openbmc_project.Telemetry.Trigger.Severity.Warning"; in toDbusSeverity()
118 return "xyz.openbmc_project.Telemetry.Trigger.Severity.Critical"; in toDbusSeverity()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/log-handler/test/
H A Dlog_open_unittest.cpp48 EXPECT_CALL(*tm.at("blob0"), trigger()).Times(1).WillOnce(Return(true)); in TEST_F()
57 EXPECT_CALL(*val, trigger()).WillOnce(Return(true)); in TEST_F()
68 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
74 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
80 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()
88 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(false)); in TEST_F()
90 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()
97 EXPECT_CALL(*tm.at("blob1"), trigger()).WillOnce(Return(true)); in TEST_F()

12345678910>>...40