summaryrefslogtreecommitdiff
path: root/tools/checker/file_format/c1visualizer/parser.py
diff options
context:
space:
mode:
authorEvgeny Astigeevich <evgeny.astigeevich@linaro.org>2020-07-27 12:25:49 +0100
committerRoland Levillain <rpl@google.com>2020-07-28 13:36:12 +0000
commit2446feb60919ceb09b5cab388291a86ccdc9be10 (patch)
treec5293d846db8b93e3a3fc660ba5d07e5a56be4af /tools/checker/file_format/c1visualizer/parser.py
parent2091019e6c3ca07454b97730f29bb7200fa9d46e (diff)
Dump ISA into .cfg
The optimizing compiler dumps ISA features into .cfg which can be used by the checker. A new tool perf2cfg needs to know ISA a CFG corresponds to. The tool uses this to check that input perf data has the same ISA. This CL implements in the compiler dumping ISA in addition to ISA features: begin_compilation name "isa:some_isa isa_features:feature1,-feature2" method "isa:some_isa isa_features:feature1,-feature2" date 1580721972 end_compilation Bug: 147876827 Test: ./art/tools/checker/run_unit_tests.py Test: test.py --target --optimizing --jit --interpreter Test: test.py --host --optimizing --jit --interpreter Change-Id: I189eae0f4de61e6a49c01d925e7136b5f7027c91
Diffstat (limited to 'tools/checker/file_format/c1visualizer/parser.py')
-rw-r--r--tools/checker/file_format/c1visualizer/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checker/file_format/c1visualizer/parser.py b/tools/checker/file_format/c1visualizer/parser.py
index e16382e3f7..a31bc565e6 100644
--- a/tools/checker/file_format/c1visualizer/parser.py
+++ b/tools/checker/file_format/c1visualizer/parser.py
@@ -59,7 +59,7 @@ def __parseC1Line(c1File, line, lineNo, state, fileName):
if not methodName:
Logger.fail("Empty method name in output", fileName, lineNo)
- m = re.match("isa_features:([\w,-]+)", methodName)
+ m = re.search("isa_features:([\w,-]+)", methodName)
if (m):
rawFeatures = m.group(1).split(",")
# Create a map of features in the form {featureName: isEnabled}.