From 5eb3782e027ed50e22df274a0634d6d1d1b44d8a Mon Sep 17 00:00:00 2001 From: Rachida Kebichi Date: Wed, 15 Jul 2020 14:58:30 -0400 Subject: [PATCH] Simple fix for incorrect kernel name Change-Id: I8fe2c552d37aa2e1b8874cead4c126ee48fbc02e [ROCm/rocprofiler commit: 1a06583d156fc5ae3e0a2be109136ce61739b07c] --- projects/rocprofiler/bin/tblextr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/bin/tblextr.py b/projects/rocprofiler/bin/tblextr.py index 2dc63efab9..60d99db3f5 100755 --- a/projects/rocprofiler/bin/tblextr.py +++ b/projects/rocprofiler/bin/tblextr.py @@ -292,7 +292,7 @@ def fill_ext_db(table_name, db, indir, trace_name, api_pid): ############################################################# # arguments manipulation routines def get_field(args, field): - ptrn1_field = re.compile(r'^.*' + field + '\('); + ptrn1_field = re.compile(r'^.* ' + field + '\('); ptrn2_field = re.compile(r'\) .*$'); ptrn3_field = re.compile(r'\)\)$'); (field_name, n) = ptrn1_field.subn('', args, count=1); @@ -358,7 +358,7 @@ def fill_api_db(table_name, db, indir, api_name, api_pid, dep_pid, dep_list, dep mfixformat = ptrn_fixformat.match(record) if mfixformat: #replace '=' in args with parentheses reformated_args = kernel_arg + mfixformat.group(2).replace('=','(').replace(',',')')+')' - record = mfixformat.group(1) + '(' + reformated_args + ')' + record = mfixformat.group(1) + '( ' + reformated_args + ')' m = ptrn_val.match(record) if m: