DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingHardwareManagerBase.cpp
Go to the documentation of this file.
1
10
13
15#include "logging/Logging.hpp"
17
20
24
25#include <memory>
26#include <string>
27#include <utility>
28#include <vector>
29
30#define TRACE_NAME "TimingHardwareManagerBase" // NOLINT
31
32namespace dunedaq {
33
34DUNE_DAQ_SERIALIZABLE(timinglibs::timingcmd::TimingHwCmd, "TimingHwCmd");
35DUNE_DAQ_SERIALIZABLE(nlohmann::json, "JSON");
36
37namespace timinglibs {
38
40 : dunedaq::appfwk::DAQModule(name)
41 , m_hw_cmd_connection("timing_cmds")
42 , m_hw_command_receiver(nullptr)
43 , m_gather_interval(1e6)
44 , m_gather_interval_debug(10e6)
45 , m_monitored_device_name_master("")
46 , m_monitored_device_name_endpoint("")
47 , m_monitored_device_name_hsi("")
48 , m_received_hw_commands_counter{ 0 }
49 , m_accepted_hw_commands_counter{ 0 }
50 , m_rejected_hw_commands_counter{ 0 }
51 , m_failed_hw_commands_counter{ 0 }
52 , m_endpoint_scan_threads_clean_up_thread(nullptr)
53{
54 // register_command("start", &TimingHardwareManagerBase::do_start);
55 // register_command("stop", &TimingHardwareManagerBase::do_stop);
56 register_command("scrap", &TimingHardwareManagerBase::do_scrap);
57}
58
59void
60TimingHardwareManagerBase::init(std::shared_ptr<appfwk::ConfigurationManager> mcfg)
61{
62 auto mod_config = mcfg->get_dal<timinglibs::dal::TimingHardwareManagerBase>(get_name());
63 m_params = mod_config->get_configuration();
64
65 // set up queues
66 for (auto con : mod_config->get_inputs())
67 {
68 if (con->get_data_type() == datatype_to_string<timingcmd::TimingHwCmd>()) {
69 m_hw_cmd_connection = con->UID();
70 TLOG() << "m_hw_cmd_connection: " << m_hw_cmd_connection;
71 }
72 }
73
74 try
75 {
77 } catch (const ers::Issue& excpt) {
78 throw InvalidQueueFatalError(ERS_HERE, get_name(), "input", excpt);
79 }
80
81 m_endpoint_scan_threads_clean_up_thread = std::make_unique<dunedaq::utilities::ReusableThread>(0);
82}
83
84void
112
113void TimingHardwareManagerBase::do_scrap(const nlohmann::json& /*data*/)
114{
115 m_hw_command_receiver->remove_callback();
116
117 auto time_of_scrap = std::chrono::high_resolution_clock::now();
118 while(m_command_threads.size())
119 {
120 auto now = std::chrono::high_resolution_clock::now();
121 auto ms_since_scrap = std::chrono::duration_cast<std::chrono::milliseconds>(now - time_of_scrap);
122 TLOG_DEBUG(0) << "Have been waiting for " << ms_since_scrap.count() << " ms for " << m_command_threads.size() << " command threads to finish...";
123 std::this_thread::sleep_for(std::chrono::microseconds(250000));
124 }
126
128
129 scrap_uhal();
130
131 m_command_threads.clear();
132 m_info_gatherers.clear();
133 m_timing_hw_cmd_map_.clear();
134 m_hw_device_map.clear();
135 m_connection_manager.reset();
136}
137
140{
141
142 if (!device_name.compare("")) {
143 std::stringstream message;
144 message << "UHAL device name is an empty string";
145 throw UHALDeviceNameIssue(ERS_HERE, message.str());
146 }
147
148 if (auto hw_device_entry = m_hw_device_map.find(device_name); hw_device_entry != m_hw_device_map.end()) {
149 return dynamic_cast<const timing::TimingNode*>(&hw_device_entry->second->getNode(""));
150 } else {
151 TLOG_DEBUG(0) << get_name() << ": hw device interface for: " << device_name
152 << " does not exist. I will try to create it.";
153
154 try {
155 std::lock_guard<std::mutex> hw_device_map_guard(m_hw_device_map_mutex);
156 m_hw_device_map.emplace(device_name,
157 std::make_unique<uhal::HwInterface>(m_connection_manager->getDevice(device_name)));
158 } catch (const uhal::exception::ConnectionUIDDoesNotExist& exception) {
159 std::stringstream message;
160 message << "UHAL device name not " << device_name << " in connections file";
161 throw UHALDeviceNameIssue(ERS_HERE, message.str(), exception);
162 }
163
164 TLOG_DEBUG(0) << get_name() << ": hw device interface for: " << device_name << " successfully created.";
165
166 return dynamic_cast<const timing::TimingNode*>(&m_hw_device_map.find(device_name)->second->getNode(""));
167 }
168}
169
170void
172{
173 auto device_name = gatherer.get_device_name();
174
175 while (gatherer.run_gathering()) {
176
177 // collect the data from the hardware
178 try {
180
181 gatherer.collect_info_from_device(*design);
182 } catch (const std::exception& excpt) {
183 ers::warning(FailedToCollectOpMonInfo(ERS_HERE, device_name, excpt));
184 }
185
186 auto prev_gather_time = std::chrono::steady_clock::now();
187 auto next_gather_time = prev_gather_time + std::chrono::microseconds(gatherer.get_gather_interval());
188
189 // check running_flag periodically
190 auto slice_period = std::chrono::microseconds(10000);
191 auto next_slice_gather_time = prev_gather_time + slice_period;
192
193 bool break_flag = false;
194 while (next_gather_time > next_slice_gather_time + slice_period) {
195 if (!gatherer.run_gathering()) {
196 TLOG_DEBUG(0) << "while waiting to gather data, negative run gatherer flag detected.";
197 break_flag = true;
198 break;
199 }
200 std::this_thread::sleep_until(next_slice_gather_time);
201 next_slice_gather_time = next_slice_gather_time + slice_period;
202 }
203 if (break_flag == false) {
204 std::this_thread::sleep_until(next_gather_time);
205 }
206 }
207}
208
209void
210TimingHardwareManagerBase::register_info_gatherer(uint gather_interval, const std::string& device_name, int op_mon_level)
211{
212 std::string gatherer_name = device_name + "_level_" + std::to_string(op_mon_level);
213 if (m_info_gatherers.find(gatherer_name) == m_info_gatherers.end()) {
214 std::unique_ptr<InfoGatherer> gatherer = std::make_unique<InfoGatherer>(
215 std::bind(&TimingHardwareManagerBase::gather_monitor_data, this, std::placeholders::_1),
216 gather_interval,
217 device_name,
218 op_mon_level);
219
220 TLOG_DEBUG(0) << "Registering info gatherer: " << gatherer_name;
221 m_info_gatherers.emplace(std::make_pair(gatherer_name, std::move(gatherer)));
222 } else {
223 TLOG() << "Skipping registration of " << gatherer_name << ". Already exists.";
224 }
225}
226
227void
229{
230 // start all gatherers if no device name is given
231 if (!device_name.compare("")) {
232 TLOG_DEBUG(0) << get_name() << " Starting all info gatherers";
233 for (auto it = m_info_gatherers.begin(); it != m_info_gatherers.end(); ++it)
234 it->second.get()->start_gathering_thread();
235 } else {
236 // find gatherer for suppled device name and start it
237 bool gatherer_found=false;
238 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it) {
239 TLOG_DEBUG(0) << get_name() << " Starting info gatherer: " << it->first;
240 it->second.get()->start_gathering_thread();
241 gatherer_found=true;
242 }
243 if (!gatherer_found) ers::warning(AttemptedToControlNonExantInfoGatherer(ERS_HERE, "start", device_name));
244 }
245}
246
247void
249{
250 // stop all gatherers if no device name is given
251 if (!device_name.compare("")) {
252 TLOG_DEBUG(0) << get_name() << " Stopping all info gatherers";
253 for (auto it = m_info_gatherers.begin(); it != m_info_gatherers.end(); ++it)
254 it->second.get()->stop_gathering_thread();
255 } else {
256 // find gatherer for suppled device name and stop it
257 bool gatherer_found=false;
258 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it) {
259 TLOG_DEBUG(0) << get_name() << " Stopping info gatherer: " << it->first;
260 it->second.get()->stop_gathering_thread();
261 gatherer_found=true;
262 }
263 if (!gatherer_found) ers::warning(AttemptedToControlNonExantInfoGatherer(ERS_HERE, "stop", device_name));
264 }
265}
266
267std::vector<std::string>
269{
270 std::vector<std::string> running_gatherers;
271 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it)
272 {
273 TLOG_DEBUG(0) << get_name() << " Checking run state of info gatherer: " << it->first << ", and the state is " << it->second.get()->run_gathering();
274 if (it->second.get()->run_gathering())
275 {
276 running_gatherers.push_back(it->first);
277 }
278 }
279 return running_gatherers;
280}
281
282// cmd stuff
283
284void
286{
287 std::ostringstream starting_stream;
288 starting_stream << ": Executing process_hardware_command() callback.";
289 TLOG_DEBUG(0) << get_name() << starting_stream.str();
290
292
293 TLOG_DEBUG(0) << get_name() << ": Received hardware command #" << m_received_hw_commands_counter.load()
294 << ", it is of type: " << timing_hw_cmd.id << ", targeting device: " << timing_hw_cmd.device << ", with payload: " << timing_hw_cmd.payload.dump();
295
296 std::string hw_cmd_name = timing_hw_cmd.id;
297 if (auto cmd = m_timing_hw_cmd_map_.find(hw_cmd_name); cmd != m_timing_hw_cmd_map_.end()) {
298
300
301 TLOG_DEBUG(0) << "Found hw cmd: " << hw_cmd_name;
302 try {
303 std::invoke(cmd->second, timing_hw_cmd);
304 } catch (const std::exception& exception) {
305 ers::error(FailedToExecuteHardwareCommand(ERS_HERE, hw_cmd_name, timing_hw_cmd.device, exception));
307 }
308 } else {
309 ers::error(InvalidHardwareCommandID(ERS_HERE, hw_cmd_name));
311 }
312
313 std::ostringstream exiting_stream;
314 exiting_stream << ": Finished executing process_hardware_command() callback. Received " << m_received_hw_commands_counter.load()
315 << " commands";
316 TLOG_DEBUG(0) << get_name() << exiting_stream.str();
317}
318
319// common commands
320void
322{
324 timingcmd::from_json(hw_cmd.payload, cmd_payload);
325
326 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " io reset";
327
328 // io reset disrupts hw mon gathering, so stop if running
329 auto running_hw_gatherers = check_hw_mon_gatherer_is_running(hw_cmd.device);
330 for (auto& gatherer: running_hw_gatherers)
331 {
332 stop_hw_mon_gathering(gatherer);
333 }
334
336
337 if (cmd_payload.soft) {
338 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " soft io reset";
339 design->soft_reset_io();
340 } else if (!cmd_payload.clock_config.empty()) {
341 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
342 << " io reset, with supplied clk file: " << cmd_payload.clock_config;
343 design->reset_io(cmd_payload.clock_config);
344 }
345 else
346 {
347 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
348 << " io reset, with supplied clk source: " << cmd_payload.clock_source;
349 design->reset_io(static_cast<timing::ClockSource>(cmd_payload.clock_source));
350 }
351
352 // if hw mon gathering was running previously, start it again
353 for (auto& gatherer: running_hw_gatherers)
354 {
355 start_hw_mon_gathering(gatherer);
356 }
357}
358
359void
361{
362 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " print status";
363
365 TLOG() << std::endl << design->get_status();
366}
367
368// master commands
369void
371{
373 timingcmd::from_json(hw_cmd.payload, cmd_payload);
374
375 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
376 << " set timestamp, with supplied ts source: " << cmd_payload.timestamp_source;
377
379 design->sync_timestamp(static_cast<timing::TimestampSource>(cmd_payload.timestamp_source));
380}
381
382void
384{
385 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " master_endpoint_scan";
386
387 std::stringstream command_thread_uid;
388 auto t = std::time(nullptr);
389 auto tm = *std::localtime(&t);
390 command_thread_uid << "enpoint_scan_cmd_at_" << std::put_time(&tm, "%d-%m-%Y %H-%M-%S") << "_cmd_num_" << m_accepted_hw_commands_counter.load();
391
392 if (m_command_threads.size() > 5)
393 {
394 ers::warning(TooManyEndpointScanThreadsQueued(ERS_HERE, m_command_threads.size()));
395 }
396 else
397 {
398 TLOG_DEBUG(1) << "Queuing: " << command_thread_uid.str();
399
400 auto thread_key = command_thread_uid.str();
401 std::unique_lock map_lock(m_command_threads_map_mutex);
402
403 m_command_threads.emplace(thread_key, std::make_unique<std::thread>(std::bind(&TimingHardwareManagerBase::perform_endpoint_scan, this, hw_cmd)));
404 }
405}
406
408{
410 timingcmd::from_json(hw_cmd.payload, cmd_payload);
411
412 for (auto& endpoint_location : cmd_payload.endpoints)
413 {
414 auto endpoint_address = endpoint_location.address;
415 auto fanout_slot = endpoint_location.fanout_slot;
416 auto sfp_slot = endpoint_location.sfp_slot;
417
418 std::unique_lock<std::mutex> master_sfp_lock(master_sfp_mutex);
419
420 TLOG_DEBUG(1) << get_name() << ": " << hw_cmd.device << " master_endpoint_scan starting: ept adr: " << endpoint_address << ", ept sfp: " << sfp_slot << ", fanout slot: " << fanout_slot;
421
423 try
424 {
425 //master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, true);
426
427 if (sfp_slot >= 0)
428 {
429 if (fanout_slot >= 0)
430 {
431 // configure fanout/FIB
432 try
433 {
435 }
436 catch(const UHALDeviceClassIssue& e)
437 {
438 ers::error(e);
439 continue;
440 }
441
442 // slot 0 for board without multiple data tx paths, e.g. FMC, TLU
443 if (fanout_slot != 0)
444 {
445 // configure GIB/MIB
446 try
447 {
448 get_timing_device<const timing::MuxDesignInterface*>(hw_cmd.device)->switch_mux(fanout_slot-1);
449 }
450 catch(const UHALDeviceClassIssue& e)
451 {
452 ers::error(e);
453 continue;
454 }
455 }
456 }
457 else
458 {
459 dynamic_cast<const timing::MuxDesignInterface*>(master_design)->switch_mux(sfp_slot);
460 }
461 }
462
463 auto scan_result = master_design->get_master_node_plain()->scan_endpoint(endpoint_address, true);
464 if (scan_result.alive)
465 {
466 auto current_rtt = scan_result.round_trip_time;
467 ers::info(EndpointRTTMeasurement(ERS_HERE,fanout_slot,sfp_slot,endpoint_address,current_rtt));
468 if (m_monitored_endpoints_round_trip_times.count(endpoint_address))
469 {
470 auto previous_rtt = m_monitored_endpoints_round_trip_times[endpoint_address];
471 if (previous_rtt != current_rtt)
472 {
473 //TLOG() << "New round trip time for endpoint " << endpoint_address << " measured. Previous: "
474 // << m_monitored_endpoints_round_trip_times[endpoint_address] << ", current: " << current_rtt;
475 ers::warning(ChangedEndpointRTTMeasurement(ERS_HERE,fanout_slot,sfp_slot,endpoint_address,current_rtt,previous_rtt));
476 }
477 }
478 else
479 {
480 //TLOG() << "First measured round trip time for endpoint " << endpoint_address << " is: " << current_rtt;
481 }
482 m_monitored_endpoints_round_trip_times[endpoint_address]=current_rtt;
483 }
484 else
485 {
486 ers::error(EndpointUnresponsive(ERS_HERE,fanout_slot,sfp_slot,endpoint_address));
487 //TLOG() << endpoint_address << " endpoint was not alive...";
488 }
489 //master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, false);
490 }
491 catch(std::exception& e)
492 {
493 ers::error(EndpointScanFailure(ERS_HERE,e));
494 master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, false);
495 }
496 }
497}
498
500{
501 TLOG_DEBUG(0) << "Entering clean_endpoint_scan_threads()";
502 bool break_flag = false;
503 while (!break_flag)
504 {
505 for (auto& thread : m_command_threads)
506 {
507 if (thread.second->joinable())
508 {
509 std::unique_lock map_lock(m_command_threads_map_mutex);
510 TLOG_DEBUG(2) << thread.first << " thread ready. Cleaning up.";
511 thread.second->join();
512 m_command_threads.erase(thread.first);
513 }
514 }
515
516 auto prev_clean_time = std::chrono::steady_clock::now();
517 auto next_clean_time = prev_clean_time + std::chrono::milliseconds(30);
518
519 // check running_flag periodically
520 auto flag_check_period = std::chrono::milliseconds(1);
521 auto next_flag_check_time = prev_clean_time + flag_check_period;
522
523 while (next_clean_time > next_flag_check_time + flag_check_period) {
525 TLOG_DEBUG(2) << "while waiting to clean up endpoint scan threads, negative run gatherer flag detected.";
526 break_flag = true;
527 break;
528 }
529 std::this_thread::sleep_until(next_flag_check_time);
530 next_flag_check_time = next_flag_check_time + flag_check_period;
531 }
532 if (break_flag == false) {
533 std::this_thread::sleep_until(next_clean_time);
534 }
535 }
536 TLOG_DEBUG(0) << "Exiting clean_endpoint_scan_threads()";
537}
538
539// master commands
540void
542{
543 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " set endpoint delay";
544
546 timingcmd::from_json(hw_cmd.payload, cmd_payload);
547
549 design->apply_endpoint_delay(cmd_payload.address, cmd_payload.coarse_delay, cmd_payload.fine_delay, cmd_payload.phase_delay, cmd_payload.measure_rtt, cmd_payload.control_sfp, cmd_payload.sfp_mux);
550}
551
552void
554{
556 timingcmd::from_json(hw_cmd.payload, cmd_payload);
557
558 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " send fl cmd. Payload: " << hw_cmd.payload.dump()
559 << ", parsed data: " << cmd_payload.fl_cmd_id
560 << ", " << cmd_payload.channel
561 << ", " << cmd_payload.number_of_commands_to_send;
562
564 design->get_master_node_plain()->send_fl_cmd(cmd_payload.fl_cmd_id, cmd_payload.channel, cmd_payload.number_of_commands_to_send);
565}
566
567// endpoint commands
568void
570{
572 timingcmd::from_json(hw_cmd.payload, cmd_payload);
573
574 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept enable, adr: " << cmd_payload.address
575 << ", part: " << cmd_payload.partition;
576
578 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->enable(cmd_payload.address, cmd_payload.partition);
579}
580
581void
583{
585 timingcmd::from_json(hw_cmd.payload, cmd_payload);
586
587 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept disable";
588
590 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->disable();
591}
592
593void
595{
597 timingcmd::from_json(hw_cmd.payload, cmd_payload);
598
599 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept reset, adr: " << cmd_payload.address
600 << ", part: " << cmd_payload.partition;
601
603 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->reset(cmd_payload.address, cmd_payload.partition);
604}
605
606// hsi commands
607void
609{
610 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi reset";
611
613 design->get_hsi_node().reset_hsi();
614}
615
616void
618{
620 timingcmd::from_json(hw_cmd.payload, cmd_payload);
621
622 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi configure";
623
625 design->configure_hsi(
626 cmd_payload.data_source, cmd_payload.rising_edge_mask, cmd_payload.falling_edge_mask, cmd_payload.invert_edge_mask, cmd_payload.random_rate);
627}
628
629void
631{
632 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi start";
633
635 design->get_hsi_node().start_hsi();
636}
637
638void
640{
641 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi stop";
642
644 design->get_hsi_node().stop_hsi();
645}
646
647void
649{
650 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi print status";
651
653 TLOG() << std::endl << design->get_hsi_node().get_status();
654}
655
656} // namespace timinglibs
657} // namespace dunedaq
#define ERS_HERE
#define DUNE_DAQ_SERIALIZABLE(Type, typestring)
static std::shared_ptr< IOManager > get()
Definition IOManager.hpp:40
Base class for timing endpoint design nodes.
Base class for timing nodes.
std::unique_ptr< uhal::ConnectionManager > m_connection_manager
void configure_uhal(const dunedaq::timinglibs::dal::TimingHardwareInterfaceConf *mdal)
const timing::TimingNode * get_timing_device_plain(const std::string &device_name)
void hsi_stop(const timingcmd::TimingHwCmd &hw_cmd)
void io_reset(const timingcmd::TimingHwCmd &hw_cmd)
void print_status(const timingcmd::TimingHwCmd &hw_cmd)
void register_info_gatherer(uint gather_interval, const std::string &device_name, int op_mon_level)
TIMING_DEV get_timing_device(const std::string &device_name)
std::map< std::string, std::unique_ptr< uhal::HwInterface > > m_hw_device_map
virtual void perform_endpoint_scan(const timingcmd::TimingHwCmd &hw_cmd)
void endpoint_reset(const timingcmd::TimingHwCmd &hw_cmd)
void init(std::shared_ptr< appfwk::ConfigurationManager > mcfg) override
void hsi_reset(const timingcmd::TimingHwCmd &hw_cmd)
void set_endpoint_delay(const timingcmd::TimingHwCmd &hw_cmd)
virtual void process_hardware_command(timingcmd::TimingHwCmd &timing_hw_cmd)
std::unique_ptr< dunedaq::utilities::ReusableThread > m_endpoint_scan_threads_clean_up_thread
void hsi_configure(const timingcmd::TimingHwCmd &hw_cmd)
void set_timestamp(const timingcmd::TimingHwCmd &hw_cmd)
virtual void start_hw_mon_gathering(const std::string &device_name="")
virtual void stop_hw_mon_gathering(const std::string &device_name="")
void hsi_print_status(const timingcmd::TimingHwCmd &hw_cmd)
void send_fl_cmd(const timingcmd::TimingHwCmd &hw_cmd)
void hsi_start(const timingcmd::TimingHwCmd &hw_cmd)
std::map< std::string, std::unique_ptr< std::thread > > m_command_threads
std::map< timingcmd::TimingHwCmdId, std::function< void(const timingcmd::TimingHwCmd &)> > m_timing_hw_cmd_map_
void endpoint_enable(const timingcmd::TimingHwCmd &hw_cmd)
TimingHardwareManagerBase(const std::string &name)
TimingHardwareManagerBase Constructor.
void endpoint_disable(const timingcmd::TimingHwCmd &hw_cmd)
const timinglibs::dal::TimingHardwareManagerConf * m_params
virtual std::vector< std::string > check_hw_mon_gatherer_is_running(const std::string &device_name)
virtual void conf(const nlohmann::json &data)
void master_endpoint_scan(const timingcmd::TimingHwCmd &hw_cmd)
std::map< std::string, std::unique_ptr< InfoGatherer > > m_info_gatherers
uint32_t get_gather_interval() const
Get "gather_interval" attribute value. Hardware device data gather interval [us].
const std::string & get_monitored_device_name_hsi() const
Get "monitored_device_name_hsi" attribute value. Name of hsi device to be monitored.
const std::string & get_monitored_device_name_endpoint() const
Get "monitored_device_name_endpoint" attribute value. Name of timing endpoint device to be monitored.
uint32_t get_gather_interval_debug() const
Get "gather_interval_debug" attribute value. Hardware device data gather debug interval [us].
const std::string & get_monitored_device_name_master() const
Get "monitored_device_name_master" attribute value. Name of timing master device to be monitored.
const std::vector< const dunedaq::timinglibs::dal::TimingFanoutDevice * > & get_monitored_device_names_fanout() const
Get "monitored_device_names_fanout" relationship value. Timing fanout devices to be monitored.
Base class for any user define issue.
Definition Issue.hpp:69
caught dunedaq::conffwk::Exception exception
static int64_t now()
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
#define TLOG(...)
Definition macro.hpp:22
void from_json(const data_t &j, EndpointLocation &obj)
Definition Nljs.hpp:26
Including Qt Headers.
Unknown serialization Cannot deserialize std::string datatype_to_string()
Unknown serialization Cannot deserialize message
void warning(const Issue &issue)
Definition ers.hpp:115
void info(const Issue &issue)
Definition ers.hpp:95
void error(const Issue &issue)
Definition ers.hpp:81