Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
{ 'name': 'debug_status', },
{ 'name': 'debug_layers', },
{ 'name': 'debug_surfaces', },
+ { 'name': 'debug_terminate' },
]
}
#include <fstream>
#include <json.hpp>
+#include <bits/signum.h>
+#include <csignal>
namespace wm {
return Ok(jr);
}
+binding_api::result_type binding_api::debug_terminate() {
+ logdebug("%s", __func__);
+ raise(SIGKILL); // XXX afb-daemon kills it's pgroup using TERM, which doesn't play well with perf
+ return Ok(json_object_new_object());
+}
+
// _ _ _ _ _
// ___ ___ _ __ | |_ _ __ ___ | | | ___ _ __ | |__ ___ ___ | | _____
// / __/ _ \| '_ \| __| '__/ _ \| | |/ _ \ '__|| '_ \ / _ \ / _ \| |/ / __|