diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-05-09 08:42:11 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-05-13 13:22:32 +0200 |
commit | 02a562bb2b0846f44bb4226b7ee7ef9821c3780e (patch) | |
tree | 2467faefa96baf08280ceda0ba4a93acb4f6ed7e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ac4d1baf97fdaa6ef789273f0fd485c0d0d6f100 (diff) |
tools: ynl-gen: support sub-type for binary attributes
Sub-type annotation on binary attributes may indicate that the attribute
carries an array of simple types (also referred to as "C array" in docs).
Support rendering them as such in the C user code. For example for u32,
instead of:
struct {
u32 arr;
} _len;
void *arr;
render:
struct {
u32 arr;
} _count;
__u32 *arr;
Note that count is the number of elements while len was the length in bytes.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250509154213.1747885-2-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions