Port ITT API Reference Collector to cross-platform Windows and Linux build#231
Draft
alexey-kireev wants to merge 15 commits intointel:masterfrom
Draft
Port ITT API Reference Collector to cross-platform Windows and Linux build#231alexey-kireev wants to merge 15 commits intointel:masterfrom
alexey-kireev wants to merge 15 commits intointel:masterfrom
Conversation
There was a problem hiding this comment.
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.
| set_target_properties(ittnotify_refcol PROPERTIES | ||
| LINKER_LANGUAGE C | ||
| RUNTIME_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH} | ||
| ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}) |
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); |
eparshut
reviewed
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.