DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingIssues.hpp
Go to the documentation of this file.
1
12#ifndef TIMINGLIBS_INCLUDE_TIMINGLIBS_TIMINGISSUES_HPP_
13#define TIMINGLIBS_INCLUDE_TIMINGLIBS_TIMINGISSUES_HPP_
14
15#include "appfwk/DAQModule.hpp"
16#include "ers/Issue.hpp"
17#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
18
19#include <string>
20
21// NOLINTNEXTLINE(build/define_used)
22#define TLVL_ENTER_EXIT_METHODS 10
23
24namespace dunedaq {
25
27 ProgressUpdate,
28 appfwk::GeneralDAQModuleIssue,
29 message,
30 ((std::string)name),
31 ((std::string)message))
32
35 appfwk::GeneralDAQModuleIssue,
36 "The " << queueType << " queue was not successfully created.",
37 ((std::string)name),
38 ((std::string)queueType))
39
41 UHALIssue,
42 " UHAL related issue: " << message,
43 ((std::string)message)
44)
45
47 UHALConnectionsFileIssue,
48 timinglibs::UHALIssue,
49 " UHAL connections file issue: " << message,
50 ((std::string)message),
52
54 InvalidUHALLogLevel,
55 timinglibs::UHALIssue,
56 " Invalid UHAL log level supplied: " << log_level,
57 ((std::string)log_level),
59
61 UHALDeviceNameIssue,
62 timinglibs::UHALIssue,
63 " UHAL device name issue: " << message,
64 ((std::string)message),
66
68 UHALDeviceNodeIssue,
69 " Issue with UHAL device: " << device,
70 ((std::string)device))
71
73 UHALDeviceClassIssue,
74 timinglibs::UHALDeviceNodeIssue,
75 " Failed to cast device " << device << " to type " << type << " where actual type type is "
76 << actual_type,
77 ((std::string)device),
78 ((std::string)type)((std::string)actual_type))
79
81 FailedToCollectOpMonInfo,
82 " Failed to collect op mon info from device: " << device_name,
83 ((std::string)device_name))
84
85ERS_DECLARE_ISSUE(timinglibs, HardwareCommandIssue, " Issue wih hw cmd id: " << hw_cmd_id, ((std::string)hw_cmd_id))
86
88 InvalidHardwareCommandID,
89 timinglibs::HardwareCommandIssue,
90 " Hardware command ID: " << hw_cmd_id << " invalid!",
91 ((std::string)hw_cmd_id),
93
95 FailedToExecuteHardwareCommand,
96 timinglibs::HardwareCommandIssue,
97 " Failed to execute hardware command with ID: " << hw_cmd_id << " on device: " << device << ".",
98 ((std::string)hw_cmd_id),
99 ((std::string)device))
100
102 TimingHardwareCommandRegistrationFailed,
103 appfwk::CommandRegistrationFailed,
104 " Failed to register timing hardware command with ID: " << cmd,
105 ((std::string)cmd)((std::string)name),
106 ERS_EMPTY)
107
109 AttemptedToControlNonExantInfoGatherer,
110 " Attempted to " << action << " non extant InfoGatherer for device: " << device,
111 ((std::string)action)((std::string)device))
112
114 InvalidTriggerRateValue,
115 " Trigger rate value " << trigger_rate << " invalid!",
116 ((uint64_t)trigger_rate)) // NOLINT(build/unsigned)
117
119 QueueIsNullFatalError,
120 appfwk::GeneralDAQModuleIssue,
121 " Queue " << queue << " is null! ",
122 ((std::string)name),
123 ((std::string)queue))
124
126 TooManyEndpointScanThreadsQueued,
127 " Too many endpoint scan threads queued: " << n_threads << " threads! Not queuing endpoint scan!",
128 ((uint64_t)n_threads)) // NOLINT(build/unsigned)
129
130ERS_DECLARE_ISSUE(timinglibs, EndpointScanFailure, " Endpoint scan failed!!", ERS_EMPTY)
131
133 EndpointRTTMeasurement,
134 " RTT for endpoint " << address << " is " << rtt << ", via fanout: " << fanout << ", sfp: " << sfp,
135 ((int)fanout)((int)sfp)((uint32_t)address)((uint32_t)rtt)) // NOLINT(build/unsigned)
136
138 ChangedEndpointRTTMeasurement,
139 " Changed RTT for endpoint " << address << ", old: " << rtt_old << ", new: " << rtt_new << ", via fanout: " << fanout << ", sfp: " << sfp,
140 ((int)fanout)((int)sfp)((uint32_t)address)((uint32_t)rtt_old)((uint32_t)rtt_new)) // NOLINT(build/unsigned)
141
143 EndpointUnresponsive,
144 " Endpoint unresponsive, address: " << address << ", via fanout: " << fanout << ", sfp: " << sfp,
145 ((int)fanout)((int)sfp)((uint32_t)address)) // NOLINT(build/unsigned)
146} // namespace dunedaq
147
148#endif // TIMINGLIBS_INCLUDE_TIMINGLIBS_TIMINGISSUES_HPP_
#define ERS_DECLARE_ISSUE_BASE(namespace_name, class_name, base_class_name, message, base_attributes, attributes)
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
Including Qt Headers.