From patchwork Sun Jul 30 13:42:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 13333421 X-Patchwork-Delegate: bpf@iogearbox.net 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 836A220FF for ; Sun, 30 Jul 2023 13:43:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 962FFC433C8; Sun, 30 Jul 2023 13:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690724619; bh=r6c2A5lJbrpkgWz+ZJ8Q0j5JelsZXiEoA5aRhiukCb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLubojn8BMkInS/RDkohGhTXny6PXdLDlK6NMibPdekprJuXeCKrSakB9hdPCF21F gzOqjndunaodVJHiJtCaTiiNOsfdWVCbusg9EVI3dlakdf9ndF/mGMNon8Ti0Gde13 x8njN7lvGVqF8E8GrDTZgTWP03bVyUhk17rxxZRQ4WM2Jfp/CBtUuxBXdA46k2dTJw kMFea3jkvHA7eufXDqtC6OZiYsB3JLmIhAgGNvl8ClsoEgA6ka/oKtBY9TTkerUFxf 1AeQsQskC/KWOKm5m8VV9APnURbWRqi05jaC8O2CcQjrcnFD7udFSNSKi+o/ct3nUt Q80hh2BihmVyQ== 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: [PATCHv5 bpf-next 07/28] libbpf: Add uprobe_multi attach type and link names Date: Sun, 30 Jul 2023 15:42:02 +0200 Message-ID: <20230730134223.94496-8-jolsa@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230730134223.94496-1-jolsa@kernel.org> References: <20230730134223.94496-1-jolsa@kernel.org> 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 Adding new uprobe_multi attach type and link names, so the functions can resolve the new values. Acked-by: Andrii Nakryiko Signed-off-by: Jiri Olsa --- tools/lib/bpf/libbpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 17883f5a44b9..2fc98d857142 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -120,6 +120,7 @@ static const char * const attach_type_name[] = { [BPF_NETFILTER] = "netfilter", [BPF_TCX_INGRESS] = "tcx_ingress", [BPF_TCX_EGRESS] = "tcx_egress", + [BPF_TRACE_UPROBE_MULTI] = "trace_uprobe_multi", }; static const char * const link_type_name[] = { @@ -135,6 +136,7 @@ static const char * const link_type_name[] = { [BPF_LINK_TYPE_STRUCT_OPS] = "struct_ops", [BPF_LINK_TYPE_NETFILTER] = "netfilter", [BPF_LINK_TYPE_TCX] = "tcx", + [BPF_LINK_TYPE_UPROBE_MULTI] = "uprobe_multi", }; static const char * const map_type_name[] = {