Skip to content

Add missing header field to program_runtime_context_t in docs#5175

Merged
dthaler merged 1 commit intomicrosoft:mainfrom
Alan-Jowett:fix-5093-program-runtime-context-docs
Apr 16, 2026
Merged

Add missing header field to program_runtime_context_t in docs#5175
dthaler merged 1 commit intomicrosoft:mainfrom
Alan-Jowett:fix-5093-program-runtime-context-docs

Conversation

@Alan-Jowett
Copy link
Copy Markdown
Member

Description

All documentation snippets showing program_runtime_context_t were missing the ebpf_native_module_header_t header field that exists in the actual definition in include/bpf2c.h. This causes confusion when reading the docs vs the code.

Changes:

  • docs/NativeCodeGeneration.md: Added header field to both the base struct and BTF extension snippets
  • docs/BtfResolvedFunctions.md: Added header field and removed "omitted for brevity" comment
  • docs/MultipleLoadNativeModule.md: Added header field to the BTF extension snippet

Fixes #5093

Testing

Documentation-only change. No code changes.

All documentation snippets showing program_runtime_context_t were
missing the ebpf_native_module_header_t header field that exists in
the actual definition in include/bpf2c.h. Update all three doc files
to match the real struct layout.

Fixes microsoft#5093

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dthaler dthaler added bug Something isn't working documentation Improvements or additions to documentation labels Apr 16, 2026
@dthaler dthaler added this pull request to the merge queue Apr 16, 2026
Merged via the queue into microsoft:main with commit 8d72467 Apr 16, 2026
116 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in eBPF for Windows Triage Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

Development

Successfully merging this pull request may close these issues.

nit: program_runtime_context_t is already defined in code today:

3 participants