Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable BPF_PROG_TEST_RUN for raw_tp #109

Closed
wants to merge 4 commits into from

Commits on Sep 24, 2020

  1. adding ci files

    kernel-patches-bot committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    dff6e8d View commit details
    Browse the repository at this point in the history
  2. bpf: enable BPF_PROG_TEST_RUN for raw_tracepoint

    Add .test_run for raw_tracepoint. Also, introduce a new feature that runs
    the target program on a specific CPU. This is achieved by a new flag in
    bpf_attr.test, BPF_F_TEST_RUN_ON_CPU. When this flag is set, the program
    is triggered on cpu with id bpf_attr.test.cpu. This feature is needed for
    BPF programs that handle perf_event and other percpu resources, as the
    program can access these resource locally.
    
    Acked-by: John Fastabend <[email protected]>
    Signed-off-by: Song Liu <[email protected]>
    liu-song-6 authored and kernel-patches-bot committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    794a4a9 View commit details
    Browse the repository at this point in the history
  3. libbpf: support test run of raw tracepoint programs

    Add bpf_prog_test_run_opts() with support of new fields in bpf_attr.test,
    namely, flags and cpu. Also extend _opts operations to support outputs via
    opts.
    
    Signed-off-by: Song Liu <[email protected]>
    liu-song-6 authored and kernel-patches-bot committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    f4c2d1f View commit details
    Browse the repository at this point in the history
  4. selftests/bpf: add raw_tp_test_run

    This test runs test_run for raw_tracepoint program. The test covers ctx
    input, retval output, and running on correct cpu.
    
    Signed-off-by: Song Liu <[email protected]>
    liu-song-6 authored and kernel-patches-bot committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    62d0932 View commit details
    Browse the repository at this point in the history