From 125e1b17d8335351f6bee11f1d4514afaf603a72 Mon Sep 17 00:00:00 2001 From: yoann-heitz Date: Tue, 21 Sep 2021 06:19:02 -0400 Subject: [PATCH] allow fine-grained control on several APIs Deleted a line that makes rocprof abort when using fine grained control one several APIs at a time. The parsing function in libtracer_tool.so that parses the input XML file that specifies the functions for which the user wants to activate the tracing callbacks seems to handle correctly cases where fine-grained control is used on several APIs. This line can be safely deleted. --- test/tool/tool.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/test/tool/tool.cpp b/test/tool/tool.cpp index 4bdce5dd..3773d6df 100644 --- a/test/tool/tool.cpp +++ b/test/tool/tool.cpp @@ -1108,7 +1108,6 @@ extern "C" PUBLIC_API void OnLoadToolProp(rocprofiler_settings_t* settings) // Getting traces const auto traces_list = xml->GetNodes("top.trace"); - if (traces_list.size() > 1) fatal("ROCProfiler: only one trace supported at a time"); const unsigned feature_count = metrics_vec.size() + traces_list.size(); rocprofiler_feature_t* features = new rocprofiler_feature_t[feature_count];