blob: 4ab734d8cbbe937140ed3f1eefc61ebea0a09a76 [file] [log] [blame]
#include <logging.hpp>
#include <sdbusplus/bus.hpp>
namespace attn
{
/**
* @brief Notify Cronus over dbus interface
*
* When the special attention is due to a breakpoint condition we will notify
* Cronus over the dbus interface.
*/
void bpHandler()
{
// trace message
log<level::INFO>("Notify Cronus");
// notify Cronus over dbus
auto bus = sdbusplus::bus::new_system();
auto msg = bus.new_signal("/", "org.openbmc.cronus", "Brkpt");
// Cronus will figure out proc, core, thread so just send 0,0,0
std::array<uint32_t, 3> params{0, 0, 0};
msg.append(params);
msg.signal_send();
return;
}
} // namespace attn