Skip to content

Commit 9c0a2ff

Browse files
committed
Fix BTF extraction by adding "trace_entry" to common types in tracepoint program template.
1 parent f70693f commit 9c0a2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/btf_parser.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ let get_tracepoint_program_template category_event btf_path =
152152
in
153153

154154
(* Extract the tracepoint structure from BTF *)
155-
let common_types = [raw_name; typedef_name] in
155+
let common_types = [raw_name; typedef_name; "trace_entry"] in
156156
let extracted_types = match btf_path with
157157
| Some path when Sys.file_exists path ->
158158
let binary_types = Btf_binary_parser.parse_btf_file path common_types in

0 commit comments

Comments
 (0)