Lines Matching refs:example
107 file name is **example.o**, BPF object name will be
108 **example**. Object name can be also specified explicitly
110 custom functions are provided (assuming **example** as
260 This is example BPF application with two BPF programs and a mix of BPF maps
267 **$ bpftool gen object example.bpf.o example1.bpf.o example2.bpf.o**
271 BPF ELF object file *example.bpf.o*.
273 **$ bpftool gen skeleton example.bpf.o name example | tee example.skel.h**
286 struct example {
317 static void example__destroy(struct example *obj);
318 static inline struct example *example__open_opts(
320 static inline struct example *example__open();
321 static inline int example__load(struct example *obj);
322 static inline struct example *example__open_and_load();
323 static inline int example__attach(struct example *obj);
324 static inline void example__detach(struct example *obj);
328 **$ cat example.c**
332 #include "example.skel.h"
336 struct example *skel;
371 **# ./example**
379 This is a stripped-out version of skeleton generated for above example code.
384 **$ bpftool btf dump file 5.4.0-example.btf format raw**
415 **$ bpftool gen min_core_btf 5.4.0-example.btf 5.4.0-smaller.btf one.bpf.o**
435 when loading the "one.bpf.o" object into the "5.4.0-example" kernel. Note that