aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-05-05 09:52:07 -0700
committerJakub Kicinski <kuba@kernel.org>2025-05-07 18:21:26 -0700
commitd307b9feb833f3f413db36dcec01dcad749a763f (patch)
treef5f5f8ec4c5e2cf656fc1069c1f9e7897ea52ac6 /tools/perf/scripts/python/export-to-postgresql.py
parenttools: ynl-gen: split presence metadata (diff)
downloadwireguard-linux-d307b9feb833f3f413db36dcec01dcad749a763f.tar.xz
wireguard-linux-d307b9feb833f3f413db36dcec01dcad749a763f.zip
tools: ynl-gen: move the count into a presence struct too
While we reshuffle the presence members, move the counts as well. Previously array count members would have been place directly in the struct, so: struct family_op_req { struct { u32 a:1; u32 b:1; } _present; struct { u32 bin; } _len; u32 a; u64 b; const unsigned char *bin; u32 n_multi; << count u32 *multi; << objects }; Since len has been moved to its own presence struct move the count as well: struct family_op_req { struct { u32 a:1; u32 b:1; } _present; struct { u32 bin; } _len; struct { u32 multi; << count } _count; u32 a; u64 b; const unsigned char *bin; u32 *multi; << objects }; This improves the consistency and allows us to remove some hacks in the codegen. Unlike for len there is no known name collision with the existing scheme. Link: https://patch.msgid.link/20250505165208.248049-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions