Skip to content

Bindings to kernel headers? #9

@akshayknarayan

Description

@akshayknarayan

Hi, I am writing a simple program that reads the tcp/tcp_probe tracepoint.

A common programming technique when writing BPF programs is including kernel headers to access struct definitions. Indeed, kernelscript init does usefully auto-generate bindings to certain kernel definitions.

Is there an easy way to have kernelscript additionally generate bindings to other values or kernel headers without manually copying them? For tcp/tcp_probe specifically, parsing struct sockaddr_in is relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions