2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Telemetry.cpp
|
|
|
|
Date: 2021-6-17
|
|
|
|
Author: Reece
|
|
|
|
***/
|
2021-09-30 14:57:41 +00:00
|
|
|
#include <Source/RuntimeInternal.hpp>
|
|
|
|
#include <Source/Debug/Debug.hpp>
|
2021-06-27 21:25:29 +00:00
|
|
|
#include "Telemetry.hpp"
|
|
|
|
|
2022-01-27 05:24:08 +00:00
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
namespace Aurora::Telemetry
|
|
|
|
{
|
2022-01-21 16:26:35 +00:00
|
|
|
static AuThreadPrimitives::CriticalSectionUnique_t gGroupLock;
|
|
|
|
|
|
|
|
void BeginBlock()
|
|
|
|
{
|
|
|
|
gGroupLock->Lock();
|
|
|
|
}
|
|
|
|
|
|
|
|
void EndBlock()
|
|
|
|
{
|
|
|
|
gGroupLock->Unlock();
|
|
|
|
}
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
void InsertOSError(const Debug::OSError_t &osError)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void InsertMsgError(const Debug::LastError &error)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void InsertCError(AuSInt cError)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void InsertManualFence(AuUInt32 fence)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2022-01-21 16:26:35 +00:00
|
|
|
|
|
|
|
void InsertBackTrace(AuUInt32 fence)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
void Report(Telemetry::NewBlockboxEntry &entry)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2021-09-14 23:56:26 +00:00
|
|
|
|
2022-01-27 05:24:08 +00:00
|
|
|
void ReportDyingBreath(Telemetry::NewBlackBoxEntryMinidump &entry)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-09-14 23:56:26 +00:00
|
|
|
void ReportSysInfo()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Init()
|
|
|
|
{
|
2022-01-21 22:37:29 +00:00
|
|
|
gGroupLock = AuThreadPrimitives::CriticalSectionUnique();
|
2021-09-14 23:56:26 +00:00
|
|
|
ReportSysInfo();
|
|
|
|
}
|
2021-06-27 21:25:29 +00:00
|
|
|
|
2022-01-27 05:24:08 +00:00
|
|
|
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
AUKN_SYM void Mayday()
|
|
|
|
{
|
2022-01-27 05:24:08 +00:00
|
|
|
Debug::CheckErrors();
|
|
|
|
Debug::PlatformHandleFatal(false);
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|
|
|
|
}
|