Skip to content

Commit

Permalink
Merge pull request #2101 from lslusarczyk/fix-interleaved-urtraces
Browse files Browse the repository at this point in the history
Fix mixed output of adapter and regular traces
  • Loading branch information
pbalcer authored Oct 3, 2024
2 parents 1f13d2c + cf5994a commit 7aba70b
Show file tree
Hide file tree
Showing 3 changed files with 599 additions and 574 deletions.
5 changes: 2 additions & 3 deletions scripts/templates/trcddi.cpp.mako
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ namespace ur_tracing_layer
uint64_t instance = getContext()->notify_begin(${th.make_func_etor(n, tags, obj)}, "${th.make_func_name(n, tags, obj)}", &params);

auto &logger = getContext()->logger;

logger.info("---> ${th.make_func_name(n, tags, obj)}");
logger.info(" ---> ${th.make_func_name(n, tags, obj)}\n");

${x}_result_t result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} );

Expand All @@ -56,7 +55,7 @@ namespace ur_tracing_layer
if (logger.getLevel() <= logger::Level::INFO) {
std::ostringstream args_str;
ur::extras::printFunctionParams(args_str, ${th.make_func_etor(n, tags, obj)}, &params);
logger.info("({}) -> {};\n", args_str.str(), result);
logger.info(" <--- ${th.make_func_name(n, tags, obj)}({}) -> {};\n", args_str.str(), result);
}

return result;
Expand Down
Loading

0 comments on commit 7aba70b

Please sign in to comment.