Skip to content

Dependency Handling from vmlinux and struct generation #45

Description

@varun-r-mallya

This should also provide an architectural model for separation of semantic checks from IR generation for the rest of the project to follow in the coming future.

Activity

  1. moved this to In progress in TODOson Oct 11, 2025
  2. varun-r-mallya commented on Oct 11, 2025

    @varun-r-mallya
    MemberAuthor

    in #28 I forgot to take into account function pointers. TODOing this for now
    Example:

    btf_bpf_sock_addr_getsockopt = ctypes.CFUNCTYPE(ctypes.c_uint64, ctypes.POINTER(struct_bpf_sock_addr_kern), ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32)
  3. varun-r-mallya commented on Oct 14, 2025

    @varun-r-mallya
    MemberAuthor

    I also forgot to take unions into account. They are currently considered to be normal classes, so idk anymore.

  4. varun-r-mallya commented on Oct 15, 2025

    @varun-r-mallya
    MemberAuthor

    breaks when from vmlinux import struct_dquot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    • Status
      In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions