Commit 52afbe9
bpf: Allow union argument in trampoline based programs
Currently, functions with 'union' arguments cannot be traced with
fentry/fexit:
bpftrace -e 'fentry:release_pages { exit(); }' -v
The function release_pages arg0 type UNION is unsupported.
The type of the 'release_pages' arg0 is defined as:
typedef union {
struct page **pages;
struct folio **folios;
struct encoded_page **encoded_pages;
} release_pages_arg __attribute__ ((__transparent_union__));
This patch relaxes the restriction by allowing function arguments of type
'union' to be traced in verifier.
Reviewed-by: Amery Hung <[email protected]>
Signed-off-by: Leon Hwang <[email protected]>1 parent bfbc0ff commit 52afbe9
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | | - | |
| 1116 | + | |
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6762 | 6762 | | |
6763 | 6763 | | |
6764 | 6764 | | |
6765 | | - | |
| 6765 | + | |
6766 | 6766 | | |
6767 | 6767 | | |
6768 | 6768 | | |
| |||
7334 | 7334 | | |
7335 | 7335 | | |
7336 | 7336 | | |
7337 | | - | |
| 7337 | + | |
7338 | 7338 | | |
7339 | 7339 | | |
7340 | 7340 | | |
| |||
7343 | 7343 | | |
7344 | 7344 | | |
7345 | 7345 | | |
7346 | | - | |
| 7346 | + | |
7347 | 7347 | | |
7348 | 7348 | | |
7349 | 7349 | | |
| |||
7384 | 7384 | | |
7385 | 7385 | | |
7386 | 7386 | | |
7387 | | - | |
| 7387 | + | |
7388 | 7388 | | |
7389 | 7389 | | |
7390 | 7390 | | |
| |||
0 commit comments