OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <IndustryStandard/ApplePerfData.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcMiscLib.h>
#include "OcLogInternal.h"
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS EFIAPI | AppleDebugLogPrintToOcLog (IN OC_LOG_PROTOCOL *OcLog, IN CONST CHAR8 *Format,...) |
STATIC EFI_STATUS EFIAPI | AppleDebugLogPrint (IN CONST CHAR8 *Message) |
STATIC EFI_STATUS EFIAPI | AppleDebugLogExtractBuffer (IN OUT UINT32 *Position, IN OUT UINTN *BufferSize, OUT CHAR8 *Buffer OPTIONAL, OUT UINT32 *LostCharacters OPTIONAL) |
STATIC EFI_STATUS EFIAPI | AppleDebugLogWriteFiles (VOID) |
STATIC VOID EFIAPI | AppleDebugLogSetupFiles (VOID) |
APPLE_DEBUG_LOG_PROTOCOL * | OcAppleDebugLogInstallProtocol (IN BOOLEAN Reinstall) |
VOID | OcAppleDebugLogConfigure (IN BOOLEAN Enable) |
VOID | OcAppleDebugLogPerfAllocated (IN OUT VOID *PerfBuffer, IN UINTN PerfBufferSize) |
Variables | |
STATIC BOOLEAN | mAppleDebugLogEnable |
STATIC CHAR8 | mCurrentBuffer [1024] |
STATIC APPLE_PERF_DATA * | mApplePerfBuffer |
STATIC UINTN | mApplePerfBufferSize |
STATIC UINT32 | mApplePerfDumped |
STATIC APPLE_DEBUG_LOG_PROTOCOL | mAppleDebugLogProtocol |
Copyright (C) 2020, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcAppleLog.c.
STATIC EFI_STATUS EFIAPI AppleDebugLogExtractBuffer | ( | IN OUT UINT32 * | Position, |
IN OUT UINTN * | BufferSize, | ||
OUT CHAR8 *Buffer | OPTIONAL, | ||
OUT UINT32 *LostCharacters | OPTIONAL ) |
Definition at line 203 of file OcAppleLog.c.
STATIC EFI_STATUS EFIAPI AppleDebugLogPrint | ( | IN CONST CHAR8 * | Message | ) |
Definition at line 76 of file OcAppleLog.c.
STATIC EFI_STATUS EFIAPI AppleDebugLogPrintToOcLog | ( | IN OC_LOG_PROTOCOL * | OcLog, |
IN CONST CHAR8 * | Format, | ||
... ) |
Definition at line 50 of file OcAppleLog.c.
STATIC VOID EFIAPI AppleDebugLogSetupFiles | ( | VOID | ) |
Definition at line 232 of file OcAppleLog.c.
STATIC EFI_STATUS EFIAPI AppleDebugLogWriteFiles | ( | VOID | ) |
Definition at line 219 of file OcAppleLog.c.
VOID OcAppleDebugLogConfigure | ( | IN BOOLEAN | Enable | ) |
Configure Apple Debug Log protocol.
[in] | Enable | Enable logging to OcLog. |
Definition at line 295 of file OcAppleLog.c.
APPLE_DEBUG_LOG_PROTOCOL * OcAppleDebugLogInstallProtocol | ( | IN BOOLEAN | Reinstall | ) |
Install and initialise the Apple Debug Log protocol.
[in] | Reinstall | Replace any installed protocol. |
NULL | There was an error locating or installing the protocol. |
Definition at line 252 of file OcAppleLog.c.
VOID OcAppleDebugLogPerfAllocated | ( | IN OUT VOID * | PerfBuffer, |
IN UINTN | PerfBufferSize ) |
Configure Apple performance log location.
[in,out] | PerfBuffer | Performance buffer location. |
[in] | PerfBufferSize | Performance buffer size. |
Definition at line 303 of file OcAppleLog.c.
STATIC BOOLEAN mAppleDebugLogEnable |
Definition at line 29 of file OcAppleLog.c.
STATIC APPLE_DEBUG_LOG_PROTOCOL mAppleDebugLogProtocol |
Definition at line 243 of file OcAppleLog.c.
STATIC APPLE_PERF_DATA* mApplePerfBuffer |
Definition at line 37 of file OcAppleLog.c.
STATIC UINTN mApplePerfBufferSize |
Definition at line 41 of file OcAppleLog.c.
STATIC UINT32 mApplePerfDumped |
Definition at line 45 of file OcAppleLog.c.
STATIC CHAR8 mCurrentBuffer[1024] |
Definition at line 33 of file OcAppleLog.c.