summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-07-04 18:39:34 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-26 14:38:36 +0800
commit2171cc5299c345b9a60c68f6c81c3d8b64bbad59 (patch)
treea8069de41d30804791e1679ffdb00cd89bfa86ad /BaseTools
parentd31a2b0e83f04b433173b3ecfce14c990c4fde00 (diff)
downloadedk2-platforms-2171cc5299c345b9a60c68f6c81c3d8b64bbad59.tar.xz
BaseTools MemoryProfileSymbolGen.py: Handle 64bits rva from "nm -l xxx.dll"
Current MemoryProfileSymbolGen.py assumes the rva is 32bits, the patch is to remove the restriction to match any lengths of rva. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> (cherry picked from commit d84577e573234cbd1f3de2b7bd6d6f00512e764f)
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Scripts/MemoryProfileSymbolGen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Scripts/MemoryProfileSymbolGen.py b/BaseTools/Scripts/MemoryProfileSymbolGen.py
index a9790d8883..5709ad4641 100644
--- a/BaseTools/Scripts/MemoryProfileSymbolGen.py
+++ b/BaseTools/Scripts/MemoryProfileSymbolGen.py
@@ -19,7 +19,7 @@ import re
import sys
from optparse import OptionParser
-versionNumber = "1.0"
+versionNumber = "1.1"
__copyright__ = "Copyright (c) 2016, Intel Corporation. All rights reserved."
class Symbols:
@@ -72,7 +72,7 @@ class Symbols:
linefile.close()
# 000113ca T AllocatePool c:\home\edk-ii\MdePkg\Library\UefiMemoryAllocationLib\MemoryAllocationLib.c:399
- patchLineFileMatchString = "([0-9a-fA-F]{8})\s+[T|D|t|d]\s+(\w+)\s*((?:[a-zA-Z]:)?[\w+\-./_a-zA-Z0-9\\\\]*):?([0-9]*)"
+ patchLineFileMatchString = "([0-9a-fA-F]*)\s+[T|D|t|d]\s+(\w+)\s*((?:[a-zA-Z]:)?[\w+\-./_a-zA-Z0-9\\\\]*):?([0-9]*)"
for reportLine in reportLines:
#print "check - " + reportLine