Searched refs:bpf_insn (Results 1 - 25 of 115) sorted by last modified time

12345

/linux-master/kernel/trace/
H A Dbpf_trace.c2185 const struct bpf_insn *si,
2186 struct bpf_insn *insn_buf,
2189 struct bpf_insn *insn = insn_buf;
/linux-master/kernel/bpf/
H A Dverifier.c252 static bool bpf_helper_call(const struct bpf_insn *insn)
258 static bool bpf_pseudo_call(const struct bpf_insn *insn)
264 static bool bpf_pseudo_kfunc_call(const struct bpf_insn *insn)
504 static bool is_bpf_throw_kfunc(struct bpf_insn *insn);
525 static bool is_sync_callback_calling_insn(struct bpf_insn *insn)
531 static bool is_async_callback_calling_insn(struct bpf_insn *insn)
536 static bool is_may_goto_insn(struct bpf_insn *insn)
569 static bool is_cmpxchg_insn(const struct bpf_insn *insn)
2578 * verification. JITs do lookups by bpf_insn, where func_id may not be
2879 const struct bpf_insn *ins
[all...]
H A Dsyscall.c4449 static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog,
4453 struct bpf_insn *insns;
4613 struct bpf_insn *insns_sanitized;
H A Darena.c40 #define GUARD_SZ (1ull << sizeof(((struct bpf_insn *)0)->off) * 8)
/linux-master/include/linux/
H A Dbpf.h72 const struct bpf_insn *);
120 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
928 static bool bpf_is_ldimm64(const struct bpf_insn *insn)
933 static inline bool bpf_pseudo_func(const struct bpf_insn *insn)
956 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write,
958 int (*gen_ld_abs)(const struct bpf_insn *orig,
959 struct bpf_insn *insn_buf);
961 const struct bpf_insn *src,
962 struct bpf_insn *dst,
976 struct bpf_insn *ins
[all...]
/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c1185 static void detect_reg_usage(struct bpf_insn *insn, int insn_cnt,
1273 struct bpf_insn *insn = bpf_prog->insnsi;
/linux-master/tools/lib/bpf/
H A Dlibbpf.c65 #define BPF_INSN_SZ (sizeof(struct bpf_insn))
432 struct bpf_insn *insns;
751 static bool insn_is_subprog_call(const struct bpf_insn *insn)
761 static bool is_call_insn(const struct bpf_insn *insn)
766 static bool insn_is_pseudo_func(struct bpf_insn *insn)
4381 struct bpf_insn *insn = &prog->insns[insn_idx];
4893 struct bpf_insn insns[] = {
5777 struct bpf_insn *insn;
5891 int insn_idx, struct bpf_insn *insn,
5921 int insn_idx, struct bpf_insn *ins
[all...]
H A Dlinker.c755 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) {
923 if (relo->r_offset % sizeof(struct bpf_insn) != 0) {
2092 struct bpf_insn *insn;
2106 insn->imm += sec->dst_off / sizeof(struct bpf_insn);
H A Dlibbpf_probes.c104 const struct bpf_insn *insns, size_t insns_cnt,
207 struct bpf_insn insns[] = {
419 struct bpf_insn insns[] = {
H A Dlibbpf_internal.h566 static inline bool is_ldimm64_insn(struct bpf_insn *insn)
H A Dlibbpf.h334 struct bpf_insn;
343 * Returned pointer is always valid and not NULL. Number of `struct bpf_insn`
356 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
368 * @param new_insn_cnt number of `struct bpf_insn`'s that form
373 struct bpf_insn *new_insns, size_t new_insn_cnt);
376 * @brief **bpf_program__insn_cnt()** returns number of `struct bpf_insn`'s
H A Dfeatures.c26 struct bpf_insn insns[] = {
51 struct bpf_insn insns[] = {
233 struct bpf_insn insns[] = {
254 struct bpf_insn insns[] = {
271 struct bpf_insn insns[] = {
339 struct bpf_insn insns[] = {
375 struct bpf_insn insns[] = {
404 struct bpf_insn insns[] = {
450 const struct bpf_insn insns[] = {
/linux-master/arch/s390/net/
H A Dbpf_jit_comp.c781 struct bpf_insn *insn = &fp->insnsi[i];
860 /* 16 byte instruction that uses two 'struct bpf_insn' */
/linux-master/arch/riscv/net/
H A Dbpf_jit_comp64.c395 static void init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn,
565 static int add_exception_handler(const struct bpf_insn *insn,
1059 int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
1510 struct bpf_insn insn1 = insn[1];
/linux-master/arch/arm64/net/
H A Dbpf_jit_comp.c188 static inline int bpf2a64_offset(int bpf_insn, int off, argument
192 bpf_insn++;
198 return ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1);
485 static int emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
549 static inline int emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
555 static int emit_ll_sc_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
754 static int add_exception_handler(const struct bpf_insn *insn,
828 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
1212 const struct bpf_insn insn
[all...]
/linux-master/arch/x86/kernel/
H A Dalternative.c916 struct bpf_insn;
920 const struct bpf_insn *insn);
/linux-master/tools/testing/selftests/bpf/
H A Dtesting_helpers.c259 static struct bpf_insn insns[] = {
323 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
419 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt)
421 __u32 buf_element_size = sizeof(struct bpf_insn);
H A Dtesting_helpers.h19 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
51 struct bpf_insn;
55 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt);
H A Dtest_verifier.c90 struct bpf_insn insns[MAX_INSNS];
91 struct bpf_insn *fill_insns;
103 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS];
108 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS];
196 struct bpf_insn *insn = self->fill_insns;
239 struct bpf_insn *insn = self->fill_insns;
261 struct bpf_insn *insn = self->fill_insns;
268 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) };
289 struct bpf_insn *insn = self->fill_insns;
315 struct bpf_insn *ins
[all...]
H A Dtest_sock_addr.c646 const struct bpf_insn *insns, size_t insns_cnt)
721 struct bpf_insn insns[] = {
764 struct bpf_insn insns[] = {
827 struct bpf_insn insns[] = {
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtoken.c639 struct bpf_insn insns[] = {
H A Dreg_bounds.c830 struct bpf_insn __insns[] = { insn }; \
838 struct bpf_insn insns[64];
H A Dkptr_xchg_inline.c11 struct bpf_insn *insn = NULL;
12 struct bpf_insn exp;
H A Dctx_rewrite.c639 static void print_xlated(FILE *out, struct bpf_insn *insn, __u32 len)
690 struct bpf_insn *prog;
700 struct bpf_insn *buf = NULL;
787 struct bpf_insn ldx_prog[] = {
805 struct bpf_insn stx_prog[] = {
816 struct bpf_insn st_prog[] = {
H A Dbtf.c5635 struct bpf_insn insns[MAX_INSNS];
6439 static size_t probe_prog_length(const struct bpf_insn *fp)

Completed in 412 milliseconds

12345