diff options
| author | Jiri Olsa <[email protected]> | 2024-03-22 13:49:36 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-03-22 17:01:17 +0000 |
| commit | af8d27bf15c8d68c60d830552055fcdba5b5f045 (patch) | |
| tree | 1cf13aac3cf073e16278b5a97614019bca93123e /tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c | |
| parent | selftests/bpf: Use syscall(SYS_gettid) instead of gettid() wrapper in bench (diff) | |
| download | kernel-af8d27bf15c8d68c60d830552055fcdba5b5f045.tar.gz kernel-af8d27bf15c8d68c60d830552055fcdba5b5f045.zip | |
selftests/bpf: Mark uprobe trigger functions with nocf_check attribute
Some distros seem to enable the -fcf-protection=branch by default,
which breaks our setup on first instruction of uprobe trigger
functions and place there endbr64 instruction.
Marking them with nocf_check attribute to skip that.
Ignoring unknown attribute warning in gcc for bench objects, because
nocf_check can be used only when -fcf-protection=branch is enabled,
otherwise we get a warning and break compilation.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c')
0 files changed, 0 insertions, 0 deletions
