Add some support for strings in structs

This commit is contained in:
Pragyansh Chaturvedi
2025-09-26 18:26:07 +05:30
parent 4ebf0480dd
commit 0f365be65e
3 changed files with 54 additions and 1 deletions

View File

@ -63,6 +63,7 @@ def process_bpf_struct(cls_node, module):
structs_sym_tab[struct_name] = {
"type": struct_type,
"fields": {name: idx for idx, name in enumerate(field_names)},
"size": total_size
"size": total_size,
"field_types": field_types,
}
print(f"Created struct {struct_name} with fields {field_names}")