TSG-14051 tsg-service-chaining-engine增加breakpad_minidump

This commit is contained in:
luwenpeng
2023-03-07 10:50:15 +08:00
parent c56bc6a824
commit 0f0c73981c
5 changed files with 21 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include <signal.h>
#include <pthread.h>
#include <sys/prctl.h>
#include <MESA/breakpad_mini.h>
#include "sce.h"
#include "log.h"
@@ -11,6 +12,8 @@
#include "health_check.h"
#include "global_metrics.h"
struct breakpad_instance *g_breakpad = NULL;
#ifdef SCE_GIT_VERSION
static __attribute__((__used__)) const char *__sce_version = SCE_GIT_VERSION;
#else
@@ -132,6 +135,8 @@ int main(int argc, char **argv)
return -1;
}
g_breakpad = breakpad_init(profile, "system", g_default_logger, __sce_version);
health_check_session_init(profile);
struct sce_ctx *ctx = sce_ctx_create(profile);