SWDEV-360818: Reserved fields of hip structures are undefined. Because of that, reserved fields may contain special characters that are not readable by postprocessing Python script. To patch this issue, here we modify script that generates hip_ostream_ops.h to set reserved fields of hip structures to 0.

Change-Id: I0cda5cedfa30b140f121803dd8c066107ae0756e


[ROCm/roctracer commit: 397b3b10af]
Tento commit je obsažen v:
Kiumars Sabeti authored and Kiumars Sabeti committed 2023-01-26 17:44:55 -05:00
1 rodič 9ee831c09f
revize ac660e2c92
1 file changed
+4 -1
+4 -1
Zobrazit soubor
@@ -154,7 +154,10 @@ def process_struct(file_handle, cppHeader_struct, cppHeader, parent_hier_name, a
str += " if (std::string(\"" + cppHeader_struct + "::" + name + "\").find(" + apiname.upper() + "_structs_regex" + ") != std::string::npos) {\n"
indent = " "
str += indent + " std::operator<<(out, \"" + name + "=\");\n"
str += indent + " roctracer::" + apiname.lower() + "_support::detail::operator<<(out, v." + name + ");\n"
if (name == 'reserved' and apiname.upper() == 'HIP'):
str += indent + " roctracer::" + apiname.lower() + "_support::detail::operator<<(out, 0);\n"
else:
str += indent + " roctracer::" + apiname.lower() + "_support::detail::operator<<(out, v." + name + ");\n"
str += indent + " std::operator<<(out, \", \");\n"
str += " }\n"
if "void" not in mtype: