diff --git a/docs/BtfResolvedFunctions.md b/docs/BtfResolvedFunctions.md index d84748b715..f0d9093087 100644 --- a/docs/BtfResolvedFunctions.md +++ b/docs/BtfResolvedFunctions.md @@ -270,9 +270,9 @@ typedef struct _btf_resolved_function_data } btf_resolved_function_data_t; // Proposed extension to include/bpf2c.h program_runtime_context_t. -// The existing header field is omitted here for brevity. typedef struct _program_runtime_context { + ebpf_native_module_header_t header; helper_function_data_t* helper_data; map_data_t* map_data; global_variable_section_data_t* global_variable_section_data; diff --git a/docs/MultipleLoadNativeModule.md b/docs/MultipleLoadNativeModule.md index a4cd51adaf..2e53871416 100644 --- a/docs/MultipleLoadNativeModule.md +++ b/docs/MultipleLoadNativeModule.md @@ -143,6 +143,7 @@ The `program_runtime_context_t` must include BTF-resolved function addresses: ```c typedef struct _program_runtime_context { + ebpf_native_module_header_t header; helper_function_data_t* helper_data; map_data_t* map_data; global_variable_section_data_t* global_variable_section_data; diff --git a/docs/NativeCodeGeneration.md b/docs/NativeCodeGeneration.md index a20dae2ee8..9337077ba1 100644 --- a/docs/NativeCodeGeneration.md +++ b/docs/NativeCodeGeneration.md @@ -178,6 +178,7 @@ typedef struct _global_variable_section_data typedef struct _program_runtime_context { + ebpf_native_module_header_t header; helper_function_data_t* helper_data; map_data_t* map_data; global_variable_section_data_t* global_variable_section_data; @@ -258,6 +259,7 @@ typedef struct _btf_resolved_function_data typedef struct _program_runtime_context { + ebpf_native_module_header_t header; helper_function_data_t* helper_data; map_data_t* map_data; global_variable_section_data_t* global_variable_section_data;