Skip to content
Commit e02feb3f authored by Dmitrii Dolgov's avatar Dmitrii Dolgov Committed by Alexei Starovoitov
Browse files

selftests/bpf: Test re-attachment fix for bpf_tracing_prog_attach



Add a test case to verify the fix for "prog->aux->dst_trampoline and
tgt_prog is NULL" branch in bpf_tracing_prog_attach. The sequence of
events:

1. load rawtp program
2. load fentry program with rawtp as target_fd
3. create tracing link for fentry program with target_fd = 0
4. repeat 3

Acked-by: default avatarJiri Olsa <olsajiri@gmail.com>
Acked-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarDmitrii Dolgov <9erthalion6@gmail.com>
Link: https://lore.kernel.org/r/20240103190559.14750-5-9erthalion6@gmail.com
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 715d82ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment