Commit fdfa85d
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 0af025f commit fdfa85d
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | | - | |
| 1131 | + | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6751 | 6751 | | |
6752 | 6752 | | |
6753 | 6753 | | |
6754 | | - | |
| 6754 | + | |
6755 | 6755 | | |
6756 | 6756 | | |
6757 | 6757 | | |
| |||
7323 | 7323 | | |
7324 | 7324 | | |
7325 | 7325 | | |
7326 | | - | |
| 7326 | + | |
7327 | 7327 | | |
7328 | 7328 | | |
7329 | 7329 | | |
| |||
7332 | 7332 | | |
7333 | 7333 | | |
7334 | 7334 | | |
7335 | | - | |
| 7335 | + | |
7336 | 7336 | | |
7337 | 7337 | | |
7338 | 7338 | | |
| |||
7373 | 7373 | | |
7374 | 7374 | | |
7375 | 7375 | | |
7376 | | - | |
| 7376 | + | |
7377 | 7377 | | |
7378 | 7378 | | |
7379 | 7379 | | |
| |||
0 commit comments