From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81395271468 for ; Sun, 12 Apr 2026 06:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775973852; cv=none; b=RGjNELmjLVSYHwgtTKbuhsFOk03/FmpD67fNJVOlIxcvaPjAbgnilEVae+VO1wldAlsObbaTv8lVrypagVyuUqSgUhU2gzLdV7g+Y9GwIHYAAU9JL6/GjQifSgDrIHmHil8mmv+Zg5SrdaarLyLXdZuoyKnahduzjSUzWlx4wzc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775973852; c=relaxed/simple; bh=RleSJLoVaTjmfnRxdJcEIkGnEJrHRqhSfW+mLBZVtvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AZ13jCANxk7UOleWibWnkDe9aaJuN9JPc2eXINwh08S6pFzpt8A5shmPGF6/JPmHCQt7zV+EaUnklBSRZHeMmwUrlUsUcwT5esnNcmAgr/P7Pbw2AkZhwKIiBYg8JiUrF+rWk3h3B+oYxmGJwsAqM+sBZ3rSUKVwFqgRGOryN1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BPukNvwJ; arc=none smtp.client-ip=209.85.210.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BPukNvwJ" Received: by mail-pf1-f194.google.com with SMTP id d2e1a72fcca58-82cebbdbdccso1594950b3a.1 for ; Sat, 11 Apr 2026 23:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775973850; x=1776578650; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6a0dQ9uzvfDCLsmODly0L83y+okdi18YeC6c2nIa4uw=; b=BPukNvwJuEL3GTLXi5dRtQ1TJNfrn1MALcJtCQ5yrlTVB7HMqSYBRtDnr8Eu+s+PWT 5soOk7CDyCQiQIJpt9+l18jUo+CutdPVsPlgWi5iIrfYUNFcS6np4C2OnJqHiAPkRh1p 6qeVg9K4fEXDdbSxpbg+lW5236cAbkA5vJxOdTciygPXmemz4F/qV1kEb+tQ7b6PMw85 mgMKJlURvoYh42kZ88otZFGcXnAogChErl9jrXy9vgGxa6cEDdryesq7dSBlE0EhNo04 7uvNOvpU8cKywtZrMl9HcTs/dEks38iG5RSluBk1JpNV2PUQa2REIOK18FudVPYjxBow RqKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775973850; x=1776578650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6a0dQ9uzvfDCLsmODly0L83y+okdi18YeC6c2nIa4uw=; b=RAHyCBCocBjE4OiT2QOouWh54+FvJ0Xc8a5ldbK66DT6jpPyRmeMQLHqh13HW3yafs s3CBLvvvemU0QkPT4kN/SkQKActpgVBNAm7TjT0wFThJyBpLgjyPo2VFAFUzNjcdAd96 PbTvYMiBQHR13byfwmSJ0rEcIfzC7XB/4P26q12U0a1HTYnvpBe1FBr7o7ZsvvIWGQJo WDHu2evgrBENyx9s7wNIi+pHEywfYBQMm6CtNA6Px/HUmfLd7y+v9kyjaNgN9MMvg1Pj 1KjfipcdfeotpHXtL+au3iSlXi68FEItMCpT4xtKLzJkJp6HtXsq29OBrndgaEoHuyHh NHEw== X-Forwarded-Encrypted: i=1; AJvYcCWDdKPZUz3cHSN/Y16Zu89S240DkP/AesLAkDAknt6c2UojFEvS05tFVKXgJOGrb+9eimp6woXoeo2JwHQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1lVIh+kD4UCS5ZqJc/JnfvwT9MyHQ1C0v5l58zJ3pskSb7KjB DrPvyt9nfFGoRM3IR2tdlNLV6HbQhNGet8wX2eElu3DqkLOMbu+WNDOM X-Gm-Gg: AeBDietLbG3fXFcR7u/kCjNZEXJ/RQF3hi0/A4pQ0EuusFrSJvU+8cdFVrEqjmyk5Ao bqW4mtlnjgxljokKDNDn797xH/VEmFVFpZtHY5qllTJJvPw2ufEnnZt8O3Z2Jcq2HGz911a+khN V5x2edM2bvXra7NO1t64bFqJzbQELeFnjxt62Yx9Inr1m6oIQz6aI5/7aZzUVMksCzy+uTjcavd I4P0hU9P2ZC3C1EB2WWL1P2NwaddK9cfNd76KXh5Bdl0r6JL9hE/j/sl+xEJYWHVZnGXyf4Y4zp xIZNCq1NS111Tm8ksYYFi6PHPIFJHoonnurcbfCew1zDqqly8hsx+fGBQBjjSZ0uGjlmOI+hZ93 LBzsGE3gxx9pA+sbGM0AEhhsqcnsXBGgflqKfxhCJy0RmwceQ6+G6QCijDwl0uJ+2PCM9nqfqIC 0dgdhFDQ4uKZWLklUeB7UU X-Received: by 2002:a05:6a00:c83:b0:81c:5bca:8104 with SMTP id d2e1a72fcca58-82f0d36ad0cmr8491297b3a.24.1775973849870; Sat, 11 Apr 2026 23:04:09 -0700 (PDT) Received: from 7950hx ([103.173.155.241]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f0c4b251esm7072645b3a.37.2026.04.11.23.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2026 23:04:09 -0700 (PDT) From: Menglong Dong X-Google-Original-From: Menglong Dong To: ast@kernel.org Cc: daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, memxor@gmail.com, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, shuah@kernel.org, emil@etsalapatis.com, leon.hwang@linux.dev, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next v3 2/3] docs/bpf: add missing fsession attach type to docs Date: Sun, 12 Apr 2026 14:03:45 +0800 Message-ID: <20260412060346.142007-3-dongml2@chinatelecom.cn> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260412060346.142007-1-dongml2@chinatelecom.cn> References: <20260412060346.142007-1-dongml2@chinatelecom.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the fsession attach type to program_types.rst and drgn.rst. Acked-by: Leon Hwang Signed-off-by: Menglong Dong --- Documentation/bpf/drgn.rst | 4 ++-- Documentation/bpf/libbpf/program_types.rst | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/bpf/drgn.rst b/Documentation/bpf/drgn.rst index 41f223c3161e..cabf702eb75a 100644 --- a/Documentation/bpf/drgn.rst +++ b/Documentation/bpf/drgn.rst @@ -26,8 +26,8 @@ about these objects, including id, type and name. The main use-case `bpf_inspect.py`_ covers is to show BPF programs of types ``BPF_PROG_TYPE_EXT`` and ``BPF_PROG_TYPE_TRACING`` attached to other BPF -programs via ``freplace``/``fentry``/``fexit`` mechanisms, since there is no -user-space API to get this information. +programs via ``freplace``/``fentry``/``fexit``/``fsession`` mechanisms, since +there is no user-space API to get this information. Getting started =============== diff --git a/Documentation/bpf/libbpf/program_types.rst b/Documentation/bpf/libbpf/program_types.rst index 3b837522834b..3a07ce3b7f79 100644 --- a/Documentation/bpf/libbpf/program_types.rst +++ b/Documentation/bpf/libbpf/program_types.rst @@ -207,6 +207,10 @@ described in more detail in the footnotes. + + +----------------------------------+-----------+ | | | ``fexit.s+`` [#fentry]_ | Yes | + +----------------------------------------+----------------------------------+-----------+ +| | ``BPF_TRACE_FSESSION`` | ``fsession+`` [#fentry]_ | | ++ + +----------------------------------+-----------+ +| | | ``fsession.s+`` [#fentry]_ | Yes | ++ +----------------------------------------+----------------------------------+-----------+ | | ``BPF_TRACE_ITER`` | ``iter+`` [#iter]_ | | + + +----------------------------------+-----------+ | | | ``iter.s+`` [#iter]_ | Yes | -- 2.53.0