From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uP0H0Rsx" Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [IPv6:2001:41d0:203:375::b6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E9BEED for ; Sun, 26 Nov 2023 18:17:26 -0800 (PST) Message-ID: <7eabc9bb-0f77-468f-b2fb-fac214273232@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701051444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yZ0xknfFw8i7tZediJaWwFLTCbn3Dw6+yOAzy7i913c=; b=uP0H0Rsx7dIQ3bHxzoF8YNX9RaqNOTGy5oQdLb/K6Gv0kvqqDCCO9XirAPdSj7t6XYI4r4 gTvPgw8RAatVwZ2hlJC6L5rHzVHgcwjtzAgtvNCcAVgc+0tOdD7d0c0RV/raa4RHEnJl8x LB23cehFYyBWy48359U5QcVfGmRA18k= Date: Sun, 26 Nov 2023 18:17:16 -0800 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCHv4 bpf-next 3/6] bpf: Add link_info support for uprobe multi link Content-Language: en-GB To: Jiri Olsa , 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 References: <20231125193130.834322-1-jolsa@kernel.org> <20231125193130.834322-4-jolsa@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20231125193130.834322-4-jolsa@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 11/25/23 2:31 PM, Jiri Olsa wrote: > Adding support to get uprobe_link details through bpf_link_info > interface. > > Adding new struct uprobe_multi to struct bpf_link_info to carry > the uprobe_multi link details. > > The uprobe_multi.count is passed from user space to denote size > of array fields (offsets/ref_ctr_offsets/cookies). The actual > array size is stored back to uprobe_multi.count (allowing user > to find out the actual array size) and array fields are populated > up to the user passed size. > > All the non-array fields (path/count/flags/pid) are always set. > > Signed-off-by: Jiri Olsa Acked-by: Yonghong Song