blob: 34de90d64696a5360998297cd5e8309871e51d9d [file] [log] [blame]
Ben Tyner792f32f2020-06-02 08:50:47 -05001#include <libpdbg.h>
2
Ben Tyner0205f3b2020-02-24 10:24:47 -06003#include <analyzer/analyzer_main.hpp>
Ben Tynerb797b3e2020-06-29 10:12:05 -05004#include <attn/attention.hpp>
Ben Tynerbcf65a82020-12-01 08:46:36 -06005#include <attn/attn_common.hpp>
Ben Tynerb797b3e2020-06-29 10:12:05 -05006#include <attn/attn_config.hpp>
7#include <attn/attn_handler.hpp>
8#include <attn/attn_logging.hpp>
9#include <attn/bp_handler.hpp>
10#include <attn/ti_handler.hpp>
Ben Tynerbcf65a82020-12-01 08:46:36 -060011#include <attn/vital_handler.hpp>
Ben Tyneref320152020-01-09 10:31:23 -060012
Ben Tynerb481d902020-03-05 10:24:23 -060013#include <algorithm>
Ben Tyneref320152020-01-09 10:31:23 -060014#include <iomanip>
Ben Tynerb1ebfcb2020-05-08 18:52:48 -050015#include <map>
Ben Tyner9ae5ca42020-02-28 13:13:50 -060016#include <sstream>
Ben Tynerb481d902020-03-05 10:24:23 -060017#include <vector>
Ben Tyneref320152020-01-09 10:31:23 -060018
19namespace attn
20{
21
22/**
Ben Tyneref320152020-01-09 10:31:23 -060023 * @brief Handle checkstop attention
24 *
Ben Tynerb481d902020-03-05 10:24:23 -060025 * @param i_attention Attention object
Ben Tyner3fb52e52020-03-31 10:10:07 -050026 * @return 0 indicates that the checkstop attention was successfully handled
27 * 1 indicates that the checkstop attention was NOT successfully
28 * handled.
Ben Tyneref320152020-01-09 10:31:23 -060029 */
Ben Tynerb481d902020-03-05 10:24:23 -060030int handleCheckstop(Attention* i_attention);
Ben Tyneref320152020-01-09 10:31:23 -060031
32/**
33 * @brief Handle special attention
34 *
Ben Tynerb481d902020-03-05 10:24:23 -060035 * @param i_attention Attention object
Ben Tyner3fb52e52020-03-31 10:10:07 -050036 * @return 0 indicates that the special attention was successfully handled
37 * 1 indicates that the special attention was NOT successfully handled
Ben Tyneref320152020-01-09 10:31:23 -060038 */
Ben Tynerb481d902020-03-05 10:24:23 -060039int handleSpecial(Attention* i_attention);
Ben Tyneref320152020-01-09 10:31:23 -060040
Ben Tynerfb190542020-11-06 09:27:56 -060041/** @brief Determine if attention is active and not masked */
Ben Tyner1965e502020-11-20 10:32:24 -060042bool activeAttn(uint32_t i_val, uint32_t i_mask, uint32_t i_attn);
Ben Tynerfb190542020-11-06 09:27:56 -060043
Ben Tyneref320152020-01-09 10:31:23 -060044/**
Ben Tyneref320152020-01-09 10:31:23 -060045 * @brief The main attention handler logic
Ben Tyner970fd4f2020-02-19 13:46:42 -060046 *
47 * @param i_breakpoints true = breakpoint special attn handling enabled
Ben Tyneref320152020-01-09 10:31:23 -060048 */
Ben Tyner3fb52e52020-03-31 10:10:07 -050049void attnHandler(Config* i_config)
Ben Tyneref320152020-01-09 10:31:23 -060050{
Ben Tynerb481d902020-03-05 10:24:23 -060051 // Vector of active attentions to be handled
52 std::vector<Attention> active_attentions;
53
Ben Tyneref320152020-01-09 10:31:23 -060054 uint32_t isr_val, isr_mask;
Ben Tyneref320152020-01-09 10:31:23 -060055
56 // loop through processors looking for active attentions
Ben Tynerb1ebfcb2020-05-08 18:52:48 -050057 trace<level::INFO>("Attention handler started");
Ben Tyner117af992020-05-22 13:32:11 -050058
Ben Tyneref320152020-01-09 10:31:23 -060059 pdbg_target* target;
Ben Tyner5e622d82020-09-11 10:10:24 -050060 pdbg_for_each_class_target("proc", target)
Ben Tyneref320152020-01-09 10:31:23 -060061 {
62 if (PDBG_TARGET_ENABLED == pdbg_target_probe(target))
63 {
Zane Shelleya79f6c82021-01-12 16:38:49 -060064 auto proc = pdbg_target_index(target); // get processor number
Ben Tyneref320152020-01-09 10:31:23 -060065
Ben Tynerb83c8522020-11-20 10:45:26 -060066 // Use PIB target to determine if a processor is enabled
Ben Tyner5e622d82020-09-11 10:10:24 -050067 char path[16];
Ben Tynerb83c8522020-11-20 10:45:26 -060068 sprintf(path, "/proc%d/pib", proc);
Ben Tyner8882c322021-02-05 12:13:21 -060069 pdbg_target* pibTarget = pdbg_target_from_path(nullptr, path);
Ben Tynerb1ebfcb2020-05-08 18:52:48 -050070
Ben Tynerb83c8522020-11-20 10:45:26 -060071 // sanity check
Ben Tyner8882c322021-02-05 12:13:21 -060072 if (nullptr == pibTarget)
Ben Tynerb83c8522020-11-20 10:45:26 -060073 {
74 trace<level::INFO>("pib path or target not found");
75 continue;
76 }
77
Ben Tyner8882c322021-02-05 12:13:21 -060078 // check if pib target is enabled
79 if (PDBG_TARGET_ENABLED == pdbg_target_probe(pibTarget))
Ben Tyneref320152020-01-09 10:31:23 -060080 {
Ben Tynerb83c8522020-11-20 10:45:26 -060081 // The processor FSI target is required for CFAM read
82 sprintf(path, "/proc%d/fsi", proc);
Ben Tyner8882c322021-02-05 12:13:21 -060083 pdbg_target* fsiTarget = pdbg_target_from_path(nullptr, path);
Ben Tynerb83c8522020-11-20 10:45:26 -060084
85 // sanity check
Ben Tyner8882c322021-02-05 12:13:21 -060086 if (nullptr == fsiTarget)
Ben Tynerb83c8522020-11-20 10:45:26 -060087 {
88 trace<level::INFO>("fsi path or target not found");
89 continue;
90 }
91
Ben Tyner8882c322021-02-05 12:13:21 -060092 // trace the proc number
93 std::string traceMsg = "proc: " + std::to_string(proc);
94 trace<level::INFO>(traceMsg.c_str());
Ben Tyner1965e502020-11-20 10:32:24 -060095
Ben Tyner5adc96e2020-11-20 10:54:12 -060096 isr_val = 0xffffffff; // invalid isr value
97
Ben Tyner5e622d82020-09-11 10:10:24 -050098 // get active attentions on processor
Ben Tyner8882c322021-02-05 12:13:21 -060099 if (RC_SUCCESS != fsi_read(fsiTarget, 0x1007, &isr_val))
Ben Tyneref320152020-01-09 10:31:23 -0600100 {
Ben Tynerfb190542020-11-06 09:27:56 -0600101 // log cfam read error
Ben Tyner5e622d82020-09-11 10:10:24 -0500102 trace<level::INFO>("Error! cfam read 0x1007 FAILED");
Ben Tynerfb190542020-11-06 09:27:56 -0600103 eventAttentionFail(RC_CFAM_ERROR);
Ben Tyneref320152020-01-09 10:31:23 -0600104 }
Ben Tyner5adc96e2020-11-20 10:54:12 -0600105 else if (0xffffffff == isr_val)
106 {
107 trace<level::INFO>("Error! cfam read 0x1007 INVALID");
108 continue;
109 }
Ben Tyneref320152020-01-09 10:31:23 -0600110 else
111 {
Ben Tyner8882c322021-02-05 12:13:21 -0600112 // trace isr value
113 std::stringstream ssIsr;
114 ssIsr << "cfam 0x1007 = 0x" << std::setw(8)
115 << std::setfill('0') << std::hex << isr_val;
116 std::string strobjIsr = ssIsr.str();
117 trace<level::INFO>(strobjIsr.c_str());
Ben Tyner1965e502020-11-20 10:32:24 -0600118
Ben Tyner5adc96e2020-11-20 10:54:12 -0600119 isr_mask = 0xffffffff; // invalid isr mask
120
Ben Tyner5e622d82020-09-11 10:10:24 -0500121 // get interrupt enabled special attentions mask
Ben Tyner8882c322021-02-05 12:13:21 -0600122 if (RC_SUCCESS != fsi_read(fsiTarget, 0x100d, &isr_mask))
Ben Tyneref320152020-01-09 10:31:23 -0600123 {
Ben Tynerfb190542020-11-06 09:27:56 -0600124 // log cfam read error
Ben Tyner5e622d82020-09-11 10:10:24 -0500125 trace<level::INFO>("Error! cfam read 0x100d FAILED");
Ben Tynerfb190542020-11-06 09:27:56 -0600126 eventAttentionFail(RC_CFAM_ERROR);
Ben Tyneref320152020-01-09 10:31:23 -0600127 }
Ben Tyner5adc96e2020-11-20 10:54:12 -0600128 else if (0xffffffff == isr_mask)
129 {
130 trace<level::INFO>("Error! cfam read 0x100d INVALID");
131 continue;
132 }
Ben Tyner5e622d82020-09-11 10:10:24 -0500133 else
134 {
Ben Tyner8882c322021-02-05 12:13:21 -0600135 // trace true mask
136 std::stringstream ssMask;
137 ssMask << "cfam 0x100d = 0x" << std::setw(8)
138 << std::setfill('0') << std::hex << isr_mask;
139 std::string strobjMask = ssMask.str();
140 trace<level::INFO>(strobjMask.c_str());
Ben Tyner1965e502020-11-20 10:32:24 -0600141
Ben Tynerfb190542020-11-06 09:27:56 -0600142 // SBE vital attention active and not masked?
Ben Tyner1965e502020-11-20 10:32:24 -0600143 if (true == activeAttn(isr_val, isr_mask, SBE_ATTN))
Ben Tyner5e622d82020-09-11 10:10:24 -0500144 {
145 active_attentions.emplace_back(Attention::Vital,
146 handleVital, target,
147 i_config);
148 }
149
Ben Tynerfb190542020-11-06 09:27:56 -0600150 // Checkstop attention active and not masked?
151 if (true ==
Ben Tyner1965e502020-11-20 10:32:24 -0600152 activeAttn(isr_val, isr_mask, CHECKSTOP_ATTN))
Ben Tyner5e622d82020-09-11 10:10:24 -0500153 {
154 active_attentions.emplace_back(Attention::Checkstop,
155 handleCheckstop,
156 target, i_config);
157 }
158
Ben Tynerfb190542020-11-06 09:27:56 -0600159 // Special attention active and not masked?
Ben Tyner1965e502020-11-20 10:32:24 -0600160 if (true == activeAttn(isr_val, isr_mask, SPECIAL_ATTN))
Ben Tyner5e622d82020-09-11 10:10:24 -0500161 {
162 active_attentions.emplace_back(Attention::Special,
163 handleSpecial,
164 target, i_config);
165 }
166 } // cfam 0x100d valid
167 } // cfam 0x1007 valid
Ben Tyner8882c322021-02-05 12:13:21 -0600168 } // fsi target enabled
169 } // pib target enabled
Ben Tyner5e622d82020-09-11 10:10:24 -0500170 } // next processor
Ben Tyneref320152020-01-09 10:31:23 -0600171
Ben Tynerb481d902020-03-05 10:24:23 -0600172 // convert to heap, highest priority is at front
173 if (!std::is_heap(active_attentions.begin(), active_attentions.end()))
174 {
175 std::make_heap(active_attentions.begin(), active_attentions.end());
176 }
177
178 // call the attention handler until one is handled or all were attempted
179 while (false == active_attentions.empty())
180 {
181 // handle highest priority attention, done if successful
182 if (RC_SUCCESS == active_attentions.front().handle())
183 {
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500184 // an attention was handled so we are done
Ben Tynerb481d902020-03-05 10:24:23 -0600185 break;
186 }
187
188 // move attention to back of vector
189 std::pop_heap(active_attentions.begin(), active_attentions.end());
190
191 // remove attention from vector
192 active_attentions.pop_back();
193 }
Ben Tyneref320152020-01-09 10:31:23 -0600194}
195
196/**
Ben Tyneref320152020-01-09 10:31:23 -0600197 * @brief Handle checkstop attention
Ben Tyner3fb52e52020-03-31 10:10:07 -0500198 *
199 * @param i_attention Attention object
200 * @return 0 indicates that the checkstop attention was successfully handled
201 * 1 indicates that the checkstop attention was NOT successfully
202 * handled.
Ben Tyneref320152020-01-09 10:31:23 -0600203 */
Ben Tynerb481d902020-03-05 10:24:23 -0600204int handleCheckstop(Attention* i_attention)
Ben Tyneref320152020-01-09 10:31:23 -0600205{
Ben Tyner3fb52e52020-03-31 10:10:07 -0500206 int rc = RC_SUCCESS; // assume checkstop handled
Ben Tyneref320152020-01-09 10:31:23 -0600207
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500208 trace<level::INFO>("checkstop handler started");
209
Ben Tyner3fb52e52020-03-31 10:10:07 -0500210 // if checkstop handling enabled, handle checkstop attention
211 if (false == (i_attention->getConfig()->getFlag(enCheckstop)))
212 {
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500213 trace<level::INFO>("Checkstop handling disabled");
Ben Tyner3fb52e52020-03-31 10:10:07 -0500214 }
215 else
216 {
Zane Shelley9fb73932020-09-15 13:34:57 -0500217 // Look for any attentions found in hardware. This will generate and
Zane Shelley7ae9c8c2020-12-02 20:10:31 -0600218 // commit a PEL if any errors are found.
Zane Shelley9fb73932020-09-15 13:34:57 -0500219 if (true != analyzer::analyzeHardware())
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500220 {
221 rc = RC_ANALYZER_ERROR;
222 }
Ben Tyner3fb52e52020-03-31 10:10:07 -0500223 }
Ben Tyneref320152020-01-09 10:31:23 -0600224
Ben Tyneref320152020-01-09 10:31:23 -0600225 return rc;
226}
227
228/**
229 * @brief Handle special attention
Ben Tyner3fb52e52020-03-31 10:10:07 -0500230 *
231 * @param i_attention Attention object
232 * @return 0 indicates that the special attention was successfully handled
233 * 1 indicates that the special attention was NOT successfully handled
Ben Tyneref320152020-01-09 10:31:23 -0600234 */
Ben Tynerb481d902020-03-05 10:24:23 -0600235int handleSpecial(Attention* i_attention)
Ben Tyneref320152020-01-09 10:31:23 -0600236{
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500237 int rc = RC_SUCCESS; // assume special attention handled
Ben Tyneref320152020-01-09 10:31:23 -0600238
Ben Tynerfb190542020-11-06 09:27:56 -0600239 // The TI info chipop will give us a pointer to the TI info data
Ben Tyner98430b32020-08-19 19:14:02 -0500240 uint8_t* tiInfo = nullptr; // ptr to TI info data
241 uint32_t tiInfoLen = 0; // length of TI info data
242 pdbg_target* attnProc = i_attention->getTarget(); // proc with attention
Ben Tynerb1ebfcb2020-05-08 18:52:48 -0500243
Ben Tyner98430b32020-08-19 19:14:02 -0500244 if (attnProc != nullptr)
Ben Tyner89c0a7a2020-08-07 12:07:35 -0500245 {
Ben Tyner98430b32020-08-19 19:14:02 -0500246 // The processor PIB target is required for get TI info chipop
247 char path[16];
248 sprintf(path, "/proc%d/pib", pdbg_target_index(attnProc));
249 pdbg_target* tiInfoTarget = pdbg_target_from_path(nullptr, path);
250
251 if (nullptr != tiInfoTarget)
Ben Tyner89c0a7a2020-08-07 12:07:35 -0500252 {
Ben Tyner98430b32020-08-19 19:14:02 -0500253 if (PDBG_TARGET_ENABLED == pdbg_target_probe(tiInfoTarget))
254 {
Ben Tyner98430b32020-08-19 19:14:02 -0500255 sbe_mpipl_get_ti_info(tiInfoTarget, &tiInfo, &tiInfoLen);
256 if (tiInfo == nullptr)
257 {
258 trace<level::INFO>("TI info data ptr is null after call");
Ben Tynerb24b2202021-02-08 09:06:10 -0600259 tiInfo = (uint8_t*)defaultPhypTiInfo;
Ben Tyner98430b32020-08-19 19:14:02 -0500260 }
261 }
Ben Tyner89c0a7a2020-08-07 12:07:35 -0500262 }
263 }
Ben Tyneref320152020-01-09 10:31:23 -0600264
Ben Tyner0fe5df42020-12-03 08:57:17 -0600265 bool tiInfoValid = false; // TI area data not valid or not available
266
Ben Tyner792f32f2020-06-02 08:50:47 -0500267 // If TI area exists and is marked valid we can assume TI occurred
268 if ((nullptr != tiInfo) && (0 != tiInfo[0]))
Ben Tyner970fd4f2020-02-19 13:46:42 -0600269 {
Ben Tyner792f32f2020-06-02 08:50:47 -0500270 TiDataArea* tiDataArea = (TiDataArea*)tiInfo;
Ben Tyner7e6611f2020-02-13 16:42:56 -0600271
Ben Tyner8882c322021-02-05 12:13:21 -0600272 std::stringstream ss; // string stream object for tracing
273 std::string strobj; // string object for tracing
Ben Tyner40717722020-09-23 09:43:20 -0500274
Ben Tyner8882c322021-02-05 12:13:21 -0600275 // trace a few known TI data area values
276 ss.str(std::string()); // empty the stream
277 ss.clear(); // clear the stream
278 ss << "TI data command = 0x" << std::setw(2) << std::setfill('0')
279 << std::hex << (int)tiDataArea->command;
280 strobj = ss.str();
281 trace<level::INFO>(strobj.c_str());
Ben Tyner40717722020-09-23 09:43:20 -0500282
Ben Tyner0fe5df42020-12-03 08:57:17 -0600283 // Another check for valid TI Info since it has been seen that
284 // tiInfo[0] != 0 but TI info is not valid
285 if (0xa1 == tiDataArea->command)
Ben Tyner792f32f2020-06-02 08:50:47 -0500286 {
Ben Tyner0fe5df42020-12-03 08:57:17 -0600287 tiInfoValid = true;
288
289 // trace some more data since TI info appears valid
Ben Tyner8882c322021-02-05 12:13:21 -0600290 ss.str(std::string()); // empty the stream
291 ss.clear(); // clear the stream
292 ss << "TI data hb_terminate_type = 0x" << std::setw(2)
293 << std::setfill('0') << std::hex
Ben Tyner0fe5df42020-12-03 08:57:17 -0600294 << (int)tiDataArea->hbTerminateType;
Ben Tyner8882c322021-02-05 12:13:21 -0600295 strobj = ss.str();
296 trace<level::INFO>(strobj.c_str());
Ben Tyner0fe5df42020-12-03 08:57:17 -0600297
Ben Tyner8882c322021-02-05 12:13:21 -0600298 ss.str(std::string()); // empty the stream
299 ss.clear(); // clear the stream
300 ss << "TI data SRC format = 0x" << std::setw(2) << std::setfill('0')
301 << std::hex << (int)tiDataArea->srcFormat;
302 strobj = ss.str();
303 trace<level::INFO>(strobj.c_str());
Ben Tyner0fe5df42020-12-03 08:57:17 -0600304
Ben Tyner8882c322021-02-05 12:13:21 -0600305 ss.str(std::string()); // empty the stream
306 ss.clear(); // clear the stream
307 ss << "TI data source = 0x" << std::setw(2) << std::setfill('0')
308 << std::hex << (int)tiDataArea->source;
309 strobj = ss.str();
310 trace<level::INFO>(strobj.c_str());
Ben Tyner0fe5df42020-12-03 08:57:17 -0600311
312 if (true == (i_attention->getConfig()->getFlag(enTerminate)))
313 {
314 // Call TI special attention handler
315 rc = tiHandler(tiDataArea);
316 }
Ben Tyner792f32f2020-06-02 08:50:47 -0500317 }
Ben Tyner3fb52e52020-03-31 10:10:07 -0500318 }
Ben Tyner0fe5df42020-12-03 08:57:17 -0600319
320 // If TI area not valid or not available
321 if (false == tiInfoValid)
Ben Tyner3fb52e52020-03-31 10:10:07 -0500322 {
Ben Tynere4f5dbe2020-10-19 07:19:33 -0500323 trace<level::INFO>("TI info NOT available");
Ben Tyner98430b32020-08-19 19:14:02 -0500324
Ben Tynere4f5dbe2020-10-19 07:19:33 -0500325 // if configured to handle breakpoint as default special attention
326 if (i_attention->getConfig()->getFlag(dfltBreakpoint))
Ben Tyner3fb52e52020-03-31 10:10:07 -0500327 {
Ben Tynere4f5dbe2020-10-19 07:19:33 -0500328 if (true == (i_attention->getConfig()->getFlag(enBreakpoints)))
329 {
Ben Tynere4f5dbe2020-10-19 07:19:33 -0500330 // Call the breakpoint special attention handler
331 bpHandler();
332 }
333 }
334 // if configured to handle TI as default special attention
335 else
336 {
337 trace<level::INFO>("assuming TI");
338
339 if (true == (i_attention->getConfig()->getFlag(enTerminate)))
340 {
Ben Tynere4f5dbe2020-10-19 07:19:33 -0500341 // Call TI special attention handler
342 rc = tiHandler(nullptr);
343 }
Ben Tyner3fb52e52020-03-31 10:10:07 -0500344 }
Ben Tyner970fd4f2020-02-19 13:46:42 -0600345 }
Ben Tyneref320152020-01-09 10:31:23 -0600346
Ben Tyner792f32f2020-06-02 08:50:47 -0500347 // release TI data buffer
348 if (nullptr != tiInfo)
349 {
350 free(tiInfo);
351 }
352
Ben Tyner3fb52e52020-03-31 10:10:07 -0500353 if (RC_SUCCESS != rc)
354 {
Ben Tyner792f32f2020-06-02 08:50:47 -0500355 trace<level::INFO>("Special attn not handled");
Ben Tyner3fb52e52020-03-31 10:10:07 -0500356 }
Ben Tyneref320152020-01-09 10:31:23 -0600357
358 return rc;
359}
360
Ben Tynerfb190542020-11-06 09:27:56 -0600361/**
362 * @brief Determine if attention is active and not masked
363 *
364 * Determine whether an attention needs to be handled and trace details of
365 * attention type and whether it is masked or not.
366 *
367 * @param i_val attention status register
368 * @param i_mask attention true mask register
369 * @param i_attn attention type
370 * @param i_proc processor associated with registers
371 *
372 * @return true if attention is active and not masked, otherwise false
373 */
Ben Tyner1965e502020-11-20 10:32:24 -0600374bool activeAttn(uint32_t i_val, uint32_t i_mask, uint32_t i_attn)
Ben Tynerfb190542020-11-06 09:27:56 -0600375{
Zane Shelley9fb657f2021-01-12 15:30:58 -0600376 bool rc = false; // assume attn masked and/or inactive
Ben Tynerfb190542020-11-06 09:27:56 -0600377
378 // if attention active
379 if (0 != (i_val & i_attn))
380 {
Ben Tynerfb190542020-11-06 09:27:56 -0600381 std::stringstream ss;
Ben Tynerfb190542020-11-06 09:27:56 -0600382
Zane Shelley9fb657f2021-01-12 15:30:58 -0600383 bool validAttn = true; // known attention type
384
Ben Tynerfb190542020-11-06 09:27:56 -0600385 switch (i_attn)
386 {
387 case SBE_ATTN:
388 ss << "SBE attn";
389 break;
390 case CHECKSTOP_ATTN:
391 ss << "Checkstop attn";
392 break;
393 case SPECIAL_ATTN:
394 ss << "Special attn";
395 break;
396 default:
397 ss << "Unknown attn";
398 validAttn = false;
399 }
400
401 // see if attention is masked
402 if (true == validAttn)
403 {
404 if (0 != (i_mask & i_attn))
405 {
406 rc = true; // attention active and not masked
407 }
408 else
409 {
410 ss << " masked";
411 }
412 }
413
Ben Tyner8882c322021-02-05 12:13:21 -0600414 std::string strobj = ss.str(); // ss.str() is temporary
415 trace<level::INFO>(strobj.c_str()); // commit trace stream
Ben Tynerfb190542020-11-06 09:27:56 -0600416 }
417
418 return rc;
419}
420
Ben Tyneref320152020-01-09 10:31:23 -0600421} // namespace attn