You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
b24fd2759c
This will fully support PatchCheck.py. - Remove all trailing whitespace - Convert LF to CRLF by default - Update EFI_D_* to DEBUG_* - Re-enable CRLF check in PatchCheck.py Signed-off-by: Aiden Park <aiden.park@intel.com>
53 lines
1.0 KiB
C
53 lines
1.0 KiB
C
/** @file
|
|
|
|
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef _LOADER_PERF_LIB_H_
|
|
#define _LOADER_PERF_LIB_H_
|
|
|
|
typedef CHAR8 * (EFIAPI *PERF_ID_TO_STR) (UINT32 Id);
|
|
|
|
/**
|
|
Add a given performance measure point timestamp.
|
|
|
|
@param[in] Id Measure point Id
|
|
@param[in] Value Timestamp value
|
|
|
|
**/
|
|
VOID
|
|
AddMeasurePointTimestamp (
|
|
IN UINT16 Id,
|
|
IN UINT64 Value
|
|
);
|
|
|
|
/**
|
|
Add current performance measure point timestamp.
|
|
|
|
@param[in] Id Measure point Id
|
|
|
|
**/
|
|
VOID
|
|
AddMeasurePoint (
|
|
IN UINT16 Id
|
|
);
|
|
|
|
/**
|
|
Print Bootloader Measure Point information.
|
|
|
|
@param[in] PerfData A pointer indicating BL_PERF_DATA instance to print performance data
|
|
@param[in] PerfIdToStrTbl A pointer to description table corresponding to Id
|
|
|
|
**/
|
|
VOID
|
|
EFIAPI
|
|
PrintMeasurePoint (
|
|
IN BL_PERF_DATA *PerfData,
|
|
IN PERF_ID_TO_STR PerfIdToStrTbl
|
|
);
|
|
|
|
|
|
#endif
|