Also assign TimerStartValue/TimerEndValue. Cc: Liming Gao <liming....@intel.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Cinnamon Shia <cinnamon.s...@hpe.com> Cc: Jaben Carsey <jaben.car...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.z...@intel.com> --- MdeModulePkg/Include/Guid/Performance.h | 4 +++- MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Include/Guid/Performance.h b/MdeModulePkg/Include/Guid/Performance.h index c40046c87811..3ffdd9e95a3b 100644 --- a/MdeModulePkg/Include/Guid/Performance.h +++ b/MdeModulePkg/Include/Guid/Performance.h @@ -4,7 +4,7 @@ * performance protocol interfaces. * performance variables. -Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -64,6 +64,8 @@ typedef struct { UINT64 BDSRaw; UINT32 Count; UINT32 Signiture; + UINT64 TimerStartValue; + UINT64 TimerEndValue; } PERF_HEADER; #define PERFORMANCE_PROTOCOL_GUID \ diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c index 0abd0194409c..4ca347a01b06 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c @@ -3,7 +3,7 @@ performance, all the function will only include if the performance switch is set. -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR> 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 @@ -190,6 +190,8 @@ BmWriteBootToOsPerformanceData ( Freq = DivU64x32 (Freq, 1000); mBmPerfHeader.CpuFreq = Freq; + mBmPerfHeader.TimerStartValue = StartValue; + mBmPerfHeader.TimerEndValue = EndValue; // // Record BDS raw performance data -- 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel