Commit Graph

2 Commits

Author SHA1 Message Date
Viktor Malik 73e2af08a4
selftests/bpf: Test re-attachment fix for bpf_tracing_prog_attach
JIRA: https://issues.redhat.com/browse/RHEL-23644

commit e02feb3f1f47509ec1e07b604bfbeff8c3b4e639
Author: Dmitrii Dolgov <9erthalion6@gmail.com>
Date:   Wed Jan 3 20:05:47 2024 +0100

    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: Jiri Olsa <olsajiri@gmail.com>
    Acked-by: Song Liu <song@kernel.org>
    Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com>
    Link: https://lore.kernel.org/r/20240103190559.14750-5-9erthalion6@gmail.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2024-06-25 11:07:41 +02:00
Viktor Malik e97ec3c6a4
selftests/bpf: Add test for recursive attachment of tracing progs
JIRA: https://issues.redhat.com/browse/RHEL-23644

commit 5c5371e069e1ffc204dda8b20c609b170b823165
Author: Dmitrii Dolgov <9erthalion6@gmail.com>
Date:   Wed Jan 3 20:05:45 2024 +0100

    selftests/bpf: Add test for recursive attachment of tracing progs
    
    Verify the fact that only one fentry prog could be attached to another
    fentry, building up an attachment chain of limited size. Use existing
    bpf_testmod as a start of the chain.
    
    Acked-by: Jiri Olsa <olsajiri@gmail.com>
    Acked-by: Song Liu <song@kernel.org>
    Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com>
    Link: https://lore.kernel.org/r/20240103190559.14750-3-9erthalion6@gmail.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2024-06-25 11:07:40 +02:00