[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_F85EF146D110170D48845EB3F02ED5549409@qq.com>
Date: Thu, 5 Jun 2025 15:51:13 +0800
From: Rong Tao <rtoax@...mail.com>
To: Quentin Monnet <qmo@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <martin.lau@...ux.dev>,
Eduard Zingerman <eddyz87@...il.com>,
Song Liu <song@...nel.org>,
Yonghong Song <yonghong.song@...ux.dev>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Stanislav Fomichev <sdf@...ichev.me>,
Hao Luo <haoluo@...gle.com>,
Jiri Olsa <jolsa@...nel.org>,
Andrew Kreimer <algonell@...il.com>,
Rong Tao <rongtao@...tc.cn>,
Lin Yikai <yikai.lin@...o.com>,
bpf@...r.kernel.org (open list:BPF [TOOLING] (bpftool)),
linux-kernel@...r.kernel.org (open list)
Cc: rtoax@...mail.com
Subject: [PATCH bpf-next 2/2] bpftool: skel: Introduce NAME__open_and_load_opts()
From: Rong Tao <rongtao@...tc.cn>
Update Documentation for skel NAME__open_and_load_opts()
Signed-off-by: Rong Tao <rongtao@...tc.cn>
---
tools/bpf/bpftool/Documentation/bpftool-gen.rst | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/bpf/bpftool/Documentation/bpftool-gen.rst b/tools/bpf/bpftool/Documentation/bpftool-gen.rst
index ca860fd97d8d..4dc2a624090e 100644
--- a/tools/bpf/bpftool/Documentation/bpftool-gen.rst
+++ b/tools/bpf/bpftool/Documentation/bpftool-gen.rst
@@ -107,8 +107,10 @@ bpftool gen skeleton *FILE*
global data maps. It corresponds to libbpf's **bpf_object__load**\ ()
API.
- - **example__open_and_load** combines **example__open** and
- **example__load** invocations in one commonly used operation.
+ - **example__open_and_load** and **example__open_and_load_opts**.
+ Combines **example__open** and **example__load** invocations in one
+ commonly used operation. **_opts** variants accepts extra
+ **bpf_object_open_opts** options.
- **example__attach** and **example__detach**.
This pair of functions allow to attach and detach, correspondingly,
@@ -336,6 +338,9 @@ files into the final BPF ELF object file *example.bpf.o*.
const struct bpf_object_open_opts *opts);
static inline struct example *example__open();
static inline int example__load(struct example *obj);
+ static inline struct example *example__open();
+ static inline struct example *example__open_and_load_opts(
+ const struct bpf_object_open_opts *opts);
static inline struct example *example__open_and_load();
static inline int example__attach(struct example *obj);
static inline void example__detach(struct example *obj);
--
2.49.0
Powered by blists - more mailing lists