blob: 7b4744c91404a87e7f46051eb1f1eb026bf6559b [file] [log] [blame]
#include <logging.hpp>
#include <sdbusplus/bus.hpp>
#include <sstream>
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
std::stringstream ss;
ss << "Notify Cronus" << std::endl;
log<level::INFO>(ss.str().c_str());
// 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