SWDEV-362165 - Escape argument strings in the JSON file

"a_string\x000" -> \"a_string\\x000\"

Change-Id: I8bf054702b34577f84080080d9538b16abc996fe


[ROCm/rocprofiler commit: 3b61d6bd8c]
Tá an tiomantas seo le fáil i:
Laurent Morichetti údaraithe agus Laurent Morichetti tiomanta 2022-10-18 01:47:46 -04:00
1 tuismitheoir 1e64045fb1
tiomantas ee8efd3e2b
1 comhad athraithe
+2 -1
+2 -1
Féach ar an gComhad
@@ -431,7 +431,8 @@ 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(',',')')+')'
reformated_args = kernel_arg + mfixformat.group(2).replace('=','(').replace(',',')') \
.replace('\\', "\\\\").replace('\"', "\\\"")+')'
record = mfixformat.group(1) + '( ' + reformated_args + ')'
m = ptrn_val.match(record)