Skip to content

feature: Add pyzes support for info log APIs - #522

Open
aviralni wants to merge 1 commit into
oneapi-src:masterfrom
aviralni:pyzes_infolog
Open

aviralni wants to merge 1 commit into
oneapi-src:masterfrom
aviralni:pyzes_infolog

Conversation

@aviralni

@aviralni aviralni commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
  1. zesDriverEnumInfoLogsExt
  2. zesInfoLogGetPropertiesExt
  3. zesInfoLogCreateInstanceExt
  4. zesInfoLogInstanceReadWithMetadataExt
  5. zesInfoLogInstancePeekWithMetadataExt
  6. zesInfoLogInstanceDeleteExt

Add python bindings, unit tests, black box test coverage and README
entries for:
1. zesDriverEnumInfoLogsExt
2. zesInfoLogGetPropertiesExt
3. zesInfoLogCreateInstanceExt
4. zesInfoLogInstanceReadWithMetadataExt
5. zesInfoLogInstancePeekWithMetadataExt
6. zesInfoLogInstanceDeleteExt

Related-To: SYSM-432

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Test failures are not propagated, warning results are mishandled, and the documented package version is inconsistent.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 3 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Adds Python Sysman bindings and validation coverage for Info Log APIs.

Changes:

  • Adds Info Log handles, enums, structures, and API wrappers.
  • Adds unit and black-box tests.
  • Documents supported Info Log APIs.
File Description
pyzes.py Adds Info Log bindings.
test_info_log.py Adds wrapper unit tests.
pyzes_black_box_test.py Adds Info Log runtime tests and CLI option.
README.md Documents API support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +948 to +951
if check_rc(f"zesInfoLogInstanceReadWithMetadataExt(info log {i}, query)", rc):
print_verbose(
f" Read Query: {record_count.value} record(s), {size.value} bytes"
)
test_engine_modules(devices[device_idx], device_idx)

# Test info logs (driver scoped)
test_info_log_module(drivers[driver_idx], driver_idx)
# Info logs are driver scoped, so run them once per driver
if args.infolog:
for driver_idx in range(driver_count):
test_info_log_module(drivers[driver_idx], driver_idx)
Comment on lines +199 to +204
| `zesDriverEnumInfoLogsExt` | Info Log | 0.1.3 | None |
| `zesInfoLogGetPropertiesExt` | Info Log | 0.1.3 | None |
| `zesInfoLogCreateInstanceExt` | Info Log | 0.1.3 | None |
| `zesInfoLogInstanceReadWithMetadataExt` | Info Log | 0.1.3 | Records returned are consumed |
| `zesInfoLogInstancePeekWithMetadataExt` | Info Log | 0.1.3 | Requires `isPeekDataSupported` |
| `zesInfoLogInstanceDeleteExt` | Info Log | 0.1.3 | None |

This branch has not been deployed

No deployments
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.

2 participants