Repository navigation
8000
opencl: keep _param_name in the babeltrace model - #570
Merged
Merged
Conversation
The clGet*Info exit tracepoints record the queried key as _param_name, so that param_value_vals can be decoded, but gen_opencl_model.rb left it out of opencl_model.yaml, hence out of btx_cl_model.yaml. Only the Ruby printer could use it, by reading the raw payload; a metababel component (the C++ pretty filter) follows the model and could not see it, so 22 of the 23 param_value_vals events could not be decoded there. The field is now in the model of those 22 exit events. The Ruby printer skips it explicitly: it is a key the tracer adds, not an output of the call, and its text output stays as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 13, 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.
Stacked on #564. Once #564 is merged, this PR's base goes back to
devel.Why
The
clGet*Infoexit tracepoints record the queried key as_param_name(ctf_integer_hex(cl_device_info, _param_name, param_name)), so thatparam_value_valscan be decoded. Butgen_opencl_model.rbleft it out ofopencl_model.yaml, and therefore out ofbtx_cl_model.yaml.Only the Ruby printer could use it, because it reads the raw payload. A metababel component, like the C++ pretty filter (#560), follows the model and couldn't see it. So 22 of the 23
param_value_valsevents couldn't be decoded there.Change
gen_opencl_model.rbkeeps_param_name: it's now the last member of the 22clGet*Info_exitevents, in bothopencl_model.yamlandbtx_cl_model.yaml. Nothing else in either file changes.babeltrace_opencl_lib.rbskips_param_nameexplicitly. It's a key the tracer adds, not an output of the call, so the Ruby text output doesn't change. The skip names exactly_param_nameand not every_-prefixed field, because_retvalis printed today.Checked
iprof -treplay of real OpenCL and SYCL-on-OpenCL traces gives byte-identical pretty-print and tally output compared withdevel.make checkpasses 9/9.🤖 Generated with Claude Code