Skip to content

Port ITT API Reference Collector to cross-platform Windows and Linux build#231

Draft
alexey-kireev wants to merge 15 commits intointel:masterfrom
alexey-kireev:master
Draft

Port ITT API Reference Collector to cross-platform Windows and Linux build#231
alexey-kireev wants to merge 15 commits intointel:masterfrom
alexey-kireev:master

Conversation

@alexey-kireev
Copy link
Copy Markdown
Contributor

No description provided.

@alexey-kireev alexey-kireev requested a review from Copilot May 7, 2026 14:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Ports the ITT API reference collector to build and run on both Windows and Linux, adding an automated smoke test to validate basic logging output.

Changes:

  • Add CMake/buildall support for building ittnotify_refcol (and an optional smoke-test executable).
  • Improve cross-platform behavior in the reference collector implementation (localtime handling, Windows wide-char entrypoints).
  • Add CI smoke test job and update README build/usage instructions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
src/ittnotify_refcol/tests/smoke_test.c Adds a small executable that exercises task + metadata APIs to produce log output.
src/ittnotify_refcol/itt_refcol_impl.c Adds cross-platform localtime handling and Windows wide-char API entrypoints.
src/ittnotify_refcol/README.md Documents CMake-based build and Windows usage for the reference collector.
buildall.py Adds CLI flags to enable building the reference collector and smoke tests via CMake.
CMakeLists.txt Introduces CMake option/targets for the reference collector shared library and smoke tests.
.github/workflows/main.yml Adds a new CI job to build and run the reference collector smoke test on Linux/Windows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt Outdated
set_target_properties(ittnotify_refcol PROPERTIES
LINKER_LANGUAGE C
RUNTIME_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH})
Comment thread src/ittnotify_refcol/itt_refcol_impl.c Outdated
Comment thread src/ittnotify_refcol/itt_refcol_impl.c
Comment thread src/ittnotify_refcol/itt_refcol_impl.c
Comment thread src/ittnotify_refcol/itt_refcol_impl.c
Comment thread src/ittnotify_refcol/itt_refcol_impl.c Outdated
Comment on lines 77 to 79
sprintf(log_file_name,"libittnotify_refcol_%d%d%d%d%d%d.log",
time_info->tm_year+1900, time_info->tm_mon+1, time_info->tm_mday,
time_info->tm_hour, time_info->tm_min, time_info->tm_sec);
@@ -85,6 +109,10 @@ static void ref_collector_init()
{
sprintf(file_name_buffer,"%s\\%s", temp_dir, log_file);
Comment on lines +114 to 117
sprintf(file_name_buffer,"%s", log_file);
}
#else
sprintf(file_name_buffer,"/tmp/%s", log_file);
Comment thread src/ittnotify_refcol/tests/smoke_test.c Outdated
Comment thread src/ittnotify_refcol/tests/smoke_test.c Outdated
Comment thread CMakeLists.txt
Comment thread buildall.py Outdated
Comment thread .github/workflows/main.yml Outdated
Comment thread src/ittnotify_refcol/tests/smoke_test.c Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants