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

Bpftool sync 2024-05-13 #144

Merged
merged 5 commits into from
May 13, 2024

Commits on Apr 25, 2024

  1. bpf: add mrtt and srtt as BPF_SOCK_OPS_RTT_CB args

    Two important arguments in RTT estimation, mrtt and srtt, are passed to
    tcp_bpf_rtt(), so that bpf programs get more information about RTT
    computation in BPF_SOCK_OPS_RTT_CB.
    
    The difference between bpf_sock_ops->srtt_us and the srtt here is: the
    former is an old rtt before update, while srtt passed by tcp_bpf_rtt()
    is that after update.
    
    Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
    Link: https://lore.kernel.org/r/20240425161724.73707-2-lulie@linux.alibaba.com
    Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
    Philo Lu authored and qmonnet committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    9d427bf View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. bpf: Add support for kprobe session attach

    Adding support to attach bpf program for entry and return probe
    of the same function. This is common use case which at the moment
    requires to create two kprobe multi links.
    
    Adding new BPF_TRACE_KPROBE_SESSION attach type that instructs
    kernel to attach single link program to both entry and exit probe.
    
    It's possible to control execution of the bpf program on return
    probe simply by returning zero or non zero from the entry bpf
    program execution to execute or not the bpf program on return
    probe respectively.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20240430112830.1184228-2-jolsa@kernel.org
    olsajiri authored and qmonnet committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    bc6d278 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. bpftool, selftests/hid/bpf: Fix 29 clang warnings

    When building either tools/bpf/bpftool, or tools/testing/selftests/hid,
    (the same Makefile is used for these), clang generates many instances of
    the following:
    
        "clang: warning: -lLLVM-17: 'linker' input unused"
    
    Quentin points out that the LLVM version is only required in $(LIBS),
    not in $(CFLAGS), so the fix is to remove it from CFLAGS.
    
    Suggested-by: Quentin Monnet <qmo@kernel.org>
    Signed-off-by: John Hubbard <jhubbard@nvidia.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Quentin Monnet <qmo@kernel.org>
    Link: https://lore.kernel.org/bpf/20240505230054.13813-1-jhubbard@nvidia.com
    johnhubbard authored and qmonnet committed May 5, 2024
    Configuration menu
    Copy the full SHA
    3ce2aba View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. sync: Update libbpf submodule

    Pull latest libbpf from mirror.
    Libbpf version: 1.5.0
    Libbpf commit:  02724cfd0702c4102138e62c3ae7d2721c7b190e
    
    Signed-off-by: Quentin Monnet <qmo@kernel.org>
    qmonnet committed May 13, 2024
    Configuration menu
    Copy the full SHA
    9cac9d7 View commit details
    Browse the repository at this point in the history
  2. sync: Pull latest bpftool changes from kernel

    Syncing latest bpftool commits from kernel repository.
    Baseline bpf-next commit:   82e38a505c9868e784ec31e743fd8a9fa5ca1084
    Checkpoint bpf-next commit: 009367099eb61a4fc2af44d4eb06b6b4de7de6db
    Baseline bpf commit:        5bcf0dcbf9066348058b88a510c57f70f384c92c
    Checkpoint bpf commit:      3e9bc0472b910d4115e16e9c2d684c7757cb6c60
    
    Jiri Olsa (1):
      bpf: Add support for kprobe session attach
    
    John Hubbard (1):
      bpftool, selftests/hid/bpf: Fix 29 clang warnings
    
    Philo Lu (1):
      bpf: add mrtt and srtt as BPF_SOCK_OPS_RTT_CB args
    
     include/uapi/linux/bpf.h | 3 +++
     src/Makefile             | 2 +-
     2 files changed, 4 insertions(+), 1 deletion(-)
    
    Signed-off-by: Quentin Monnet <qmo@kernel.org>
    qmonnet committed May 13, 2024
    Configuration menu
    Copy the full SHA
    d2b9bf0 View commit details
    Browse the repository at this point in the history