From patchwork Wed Oct 25 20:24:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 13436701 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E196D328D5 for ; Wed, 25 Oct 2023 20:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ewZ0iakY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81D4AC433CC; Wed, 25 Oct 2023 20:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698265466; bh=b8YYn5Lv5K5zSiFuXcSBSJdjX4aYLE7CR2wKv+Xf/K4=; h=From:To:Cc:Subject:Date:From; b=ewZ0iakYuhjFpYJqNWQiEzZc0yuBct2pNWwUb7EaIgdl7hldTKNbq+K+rDZ7tJKbp kq35VGg1u8VrW+G6Qt2i4MFBOqhTjUyapAodjp483sOFMzI9d8/LSINCMrU4APZbFK JcedGppusWQmEcxaB1osC0yUI02DoJtN3Xlf87JyxcgaCJy4835cIZHi6j8zgWsTWg ECg3Slvk5wWxFJMj8NqXjRuF+BHDXsIJqSD6ecx0YHs45pSSNBjazFlW6pp44bX63E YArQGZ1xluZtirnsyoatGckLM/oRXCoGjxT5UzzCiP3S+3/nQqgixcaSbHEcHllTRs IUObvwAb55HZA== From: Jiri Olsa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Yafang Shao Subject: [PATCH bpf-next 0/6] bpf: Add link_info support for uprobe multi link Date: Wed, 25 Oct 2023 22:24:14 +0200 Message-ID: <20231025202420.390702-1-jolsa@kernel.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net hi, this patchset adds support to get bpf_link_info details for uprobe_multi links and adding support for bpftool link to display them. thanks, jirka --- Jiri Olsa (6): libbpf: Add st_type argument to elf_resolve_syms_offsets function bpf: Store ref_ctr_offsets values in bpf_uprobe array bpf: Add link_info support for uprobe multi link selftests/bpf: Use bpf_link__destroy in fill_link_info tests selftests/bpf: Add link_info test for uprobe_multi link bpftool: Add support to display uprobe_multi links include/uapi/linux/bpf.h | 10 +++++ kernel/trace/bpf_trace.c | 82 ++++++++++++++++++++++++++++++++----- tools/bpf/bpftool/link.c | 102 +++++++++++++++++++++++++++++++++++++++++++++- tools/include/uapi/linux/bpf.h | 10 +++++ tools/lib/bpf/elf.c | 5 ++- tools/lib/bpf/libbpf.c | 2 +- tools/lib/bpf/libbpf_internal.h | 3 +- tools/testing/selftests/bpf/prog_tests/fill_link_info.c | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c | 2 +- tools/testing/selftests/bpf/progs/test_fill_link_info.c | 6 +++ 10 files changed, 402 insertions(+), 22 deletions(-)