Repository navigation
Conversation
rwmcguir
force-pushed
the
russ_tracing_retval
branch
from
October 8, 2026 05:00
c700f9b to
5051a60
Compare
rwmcguir
force-pushed
the
russ_tracing_retval
branch
from
October 31, 2026 00:26
5051a60 to
c4ccce7
Compare
Level Zero loader ABI checklast-release ( master ( If an ABI change is intended, a reviewer with write access can accept it: leave an approval review on the PR head commit with the keyword |
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
rwmcguir
force-pushed
the
russ_tracing_retval
branch
from
December 3, 2026 22:04
c4ccce7 to
14a392a
Compare
Add tests for zelTracerSetResultReturnValue on a runtime API returning ze_result_t, an extension API in the DDI table, and per-thread isolation of the override slot. Document and test that driver extension function epilogues cannot override the return value: the driver owns it and passes it by value, so the call returns ZE_RESULT_ERROR_INVALID_ARGUMENT. This may be supported in the future. Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
This branch has not been deployed
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.
So this adds zelTracerSetResultReturnValue(ze_result_t), which lets an epilogue
callback replace the value a traced API returns to the application. The main use
is a progress hook, i.e. an epilogue on zeEventHostSynchronize that drives
progress while the result is ZE_RESULT_NOT_READY, then reports the final result.
The requestors have tested this and confirmed it works for them.
How it works..
Epilogues run in registration order, each one sees the previous override,
last write wins.
returns ZE_RESULT_ERROR_INVALID_ARGUMENT and changes nothing.
ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
zelLoaderGetVersions.
Not supported (documented in the README)
supported in the future.
On logging, I decided not to log overrides. A log without the API name is not
much use, and with the API name it costs a store on every traced call. Instead
the README has a warning section on how an override can hide real errors, and
how to debug with it disabled.
Tests cover core, runtime and extension APIs, static and dynamic tracing,
multiple tracers, thread isolation, and the rejected cases.