24c6962d09
ShellPkg/UefiDpLib: Add check to avoid NULL pointer deference
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
2017-02-28 08:57:52 +08:00
37322be5bc
ShellPkg UefiDpLib: Fixed GCC build failure caused by ef22403
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Jaben Carsey <jaben.carsey@intel.com >
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
2017-02-24 16:33:28 +08:00
ef22403278
ShellPkg UefiDpLib: Remove TimerLib dependency
...
Current UefiDpLib implementation depends on TimerLib,
as different platforms may implement and use their
own TimerLib, it makes the dp command needs to be built
by platform. The TimerLib dependency can be removed by
using performance property configuration table to make
UefiDpLib to be generic.
Cc: Andrew Fish <afish@apple.com >
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Cinnamon Shia <cinnamon.shia@hpe.com >
Cc: Jaben Carsey <jaben.carsey@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Andrew Fish <afish@apple.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2017-02-23 09:01:30 -08:00
d758f80971
ShellPkg/Dp: Handle memory allocation failure
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2016-07-18 10:55:08 +08:00
46213c8eb4
ShellPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr
...
It is the follow up of 3ab41b7a32
to replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr with
UnicodeStrToAsciiStrS/AsciiStrToUnicodeStrS.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jaben Carsey <jaben.carsey@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2016-06-21 12:46:26 +08:00
3751a092b6
ShellPkg/UefiDpLib: Fix a memory leak issue in Dp.
...
The allocated memory of ParamPackage is not freed.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com >
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
2016-03-29 09:16:25 +08:00
196ccda08f
ShellPkg/UefiDpLib: Support execution break
...
Support UEFI shell execution break.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Samer EL-Haj-Mahmoud <elhaj@hpe.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2016-03-08 18:23:53 +08:00
9d41c48fe4
ShellPkg: Add NULL check to pointer returned from 'AllocateZeroPool'.
...
When CustomCumulativeToken is not NULL, the CustomCumulativeData is expected non-NULL.
Add 'ASSERT' statement to ensure this.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18956 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-26 01:51:52 +00:00
a06795c6a6
ShellPkg/UefiDpLib: Support dumping cumulative data
...
Add a new option -c to dump cumulative data.
For example:
shell> dp -c
==[ Cumulative ]========
(Times in microsec.) Cumulative Average Shortest Longest
Name Count Duration Duration Duration Duration
LoadImage: 200 1000000 7000 0 100000
StartImage: 200 20000000 90000 0 7000000
DB:Start: 200 20000000 100000 0 9000000
DB:Support: 200000 100000 0 0 7000
shell> dp -c DXE
==[ Cumulative ]========
(Times in microsec.) Cumulative Average Shortest Longest
Name Count Duration Duration Duration Duration
LoadImage: 200 1000000 7000 0 100000
StartImage: 200 20000000 90000 0 7000000
DB:Start: 200 20000000 100000 0 9000000
DB:Support: 200000 100000 0 0 7000
DXE 1 30000000 30000000 0 30000000
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: El-Haj-Mahmoud Samer <samer.el-haj-mahmoud@hpe.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18728 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-05 01:59:24 +00:00
303ec9bc9f
ShellPkg/UefiDpLib: Fix a DP cumulative data issue
...
The value of PERF_CUM_DATA.Count and PERF_CUM_DATA.Duration field
keep cumulating on every execution of dp.
Initialize the CumData at dp's entry point.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18727 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-05 01:03:14 +00:00
dd42277f89
ShellPkg: Remove PerformancePkg requirement and add the header itself.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com >
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14212 6f19259b-4bc3-4df7-8a09-765794883524
2013-03-19 20:17:47 +00:00
a9b4ff8d01
Update code to follow coding style.
...
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14166 6f19259b-4bc3-4df7-8a09-765794883524
2013-03-11 01:22:51 +00:00
d41bc92c99
ShellPkg: Add "dp" command library to ShellPkg.
...
This command is only included in the build with command line option "-D INCLUDE_DP". The user must also update the DSC with appropriate library instances that match the platform for the build to succeed.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14160 6f19259b-4bc3-4df7-8a09-765794883524
2013-03-04 22:02:59 +00:00