Home
last modified time | relevance | path

Searched defs:insns (Results 1 – 25 of 58) sorted by relevance

123

/linux/tools/testing/selftests/bpf/
H A Dtest_tag.c27 static void bpf_gen_imm_prog(unsigned int insns, int fd_map) in bpf_gen_imm_prog() argument
37 static void bpf_gen_map_prog(unsigned int insns, int fd_map) in bpf_gen_map_prog() argument
53 static int bpf_try_load_prog(int insns, int fd_map, in bpf_try_load_prog() argument
54 void (*bpf_filler)(unsigned int insns, in bpf_try_load_prog() argument
114 tag_from_alg(int insns,uint8_t * tag,uint32_t len) tag_from_alg() argument
154 tag_exit_report(int insns,int fd_map,uint8_t * ftag,uint8_t * atag,uint32_t len) tag_exit_report() argument
166 do_test(uint32_t * tests,int start_insns,int fd_map,void (* bpf_filler)(unsigned int insns,int fd)) do_test() argument
[all...]
H A Dtesting_helpers.c261 static struct bpf_insn insns[] = { testing_prog_flags() local
325 bpf_test_load_program(enum bpf_prog_type type,const struct bpf_insn * insns,size_t insns_cnt,const char * license,__u32 kern_version,char * log_buf,size_t log_buf_sz) bpf_test_load_program() argument
/linux/tools/lib/bpf/
H A Dfeatures.c25 struct bpf_insn insns[] = { in probe_kern_prog_name() local
49 struct bpf_insn insns[] = { in probe_kern_global_data() local
230 struct bpf_insn insns[] = { in probe_kern_exp_attach_type() local
251 struct bpf_insn insns[] = { in probe_kern_probe_read_kernel() local
267 struct bpf_insn insns[] = { in probe_prog_bind_map() local
334 struct bpf_insn insns[] = { in probe_perf_link() local
370 struct bpf_insn insns[] = { in probe_uprobe_multi_link() local
429 struct bpf_insn insns[] = { in probe_kern_bpf_cookie() local
475 const struct bpf_insn insns[] = { in probe_kern_arg_ctx_tag() local
524 struct bpf_insn insns[] = { in probe_ldimm64_full_range_off() local
[all …]
H A Dlibbpf_probes.c104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() argument
207 struct bpf_insn insns[] = { in libbpf_probe_bpf_prog_type() local
419 struct bpf_insn insns[] = { libbpf_probe_bpf_helper() local
H A Dgen_loader.c917 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) in emit_relo()
935 static void emit_relos(struct bpf_gen *gen, int insns) in emit_relos()
952 static void cleanup_relos(struct bpf_gen *gen, int insns) in cleanup_relos()
1005 const char *license, struct bpf_insn *insns, size_t insn_cnt, in bpf_gen__prog_load()
/linux/arch/sparc/kernel/
H A Dentry.h50 unsigned int insns[3]; member
57 unsigned int insns[6]; member
64 unsigned int insns[3]; member
H A Dsignal_32.c40 unsigned long insns[2] __attribute__ ((aligned (8))); member
52 unsigned int insns[2]; member
H A Dsignal32.c49 unsigned int insns[2]; member
63 unsigned int insns[2]; member
/linux/arch/riscv/kernel/
H A Dpatch.c21 u32 *insns; member
240 int patch_text_nosync(void *addr, const void *insns, size_t len) in patch_text_nosync()
278 int patch_text(void *addr, u32 *insns, size_t len) in patch_text()
H A Dtraps.c40 static int copy_code(struct pt_regs *regs, u16 *val, const u16 *insns) in copy_code()
57 const u16 *insns = (u16 *)instruction_pointer(regs); in dump_instr() local
/linux/kernel/bpf/
H A Dconst_fold.c51 struct bpf_insn *insn, struct bpf_insn *insns, int idx) in const_reg_xfer()
236 struct bpf_insn *insns = env->prog->insnsi; in bpf_compute_const_regs() local
342 struct bpf_insn *insns = env->prog->insnsi; in bpf_prune_dead_branches() local
H A Dcfg.c160 static int visit_func_call_insn(int t, struct bpf_insn *insns, in visit_func_call_insn()
453 struct bpf_insn *insns = env->prog->insnsi, *insn = &insns[t]; in visit_insn() local
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsigned_loader.c37 static int load_loader(const void *insns, __u32 insns_sz, int map_fd, in load_loader()
63 static int run_gen_loader(const void *insns, __u32 insns_sz, in run_gen_loader()
821 unsigned char *insns = NULL, *tampered = NULL, *blob = NULL; in signature_authenticates_insns() local
921 unsigned char *insns = NULL, *blob = NULL; in signature_authenticates_metadata() local
1348 static int loadtime_drive(const char *dir, const void *insns, __u32 insns_sz, in loadtime_drive()
1536 struct bpf_insn insns[] = { in signed_no_fd_array() local
1601 struct bpf_insn insns[] = { in signed_map_by_fd_rejected() local
1664 struct bpf_insn insns[] = { in signed_sparse_fd_array_rejected() local
1721 struct bpf_insn insns[] = { in signed_module_kfunc_rejected() local
H A Dglobal_data_init.c275 struct bpf_insn insns[] = { in test_global_percpu_data_rdonly_direct_read() local
298 struct bpf_insn insns[] = { in test_global_percpu_data_rdonly_direct_write() local
H A Dxdp_dev_bound_only.c10 struct bpf_insn insns[] = { BPF_MOV64_IMM(BPF_REG_0, 0), BPF_EXIT_INSN() }; in load_dummy_prog() local
H A Darena_direct_value.c17 struct bpf_insn insns[] = { in test_arena_direct_value_one_past_end() local
H A Dcore_reloc_raw.c52 struct bpf_insn insns[] = { in test_bad_local_id() local
H A Dsockopt.c27 const struct bpf_insn insns[64]; member
986 static int load_prog(const struct bpf_insn *insns, in load_prog()
H A Dalign.c
/linux/arch/x86/include/asm/
H A Dstatic_call.h34 #define __ARCH_DEFINE_STATIC_CALL_TRAMP(name, insns) \ argument
/linux/tools/testing/selftests/powerpc/mm/
H A Dexec_prot.c30 static unsigned int *insns; variable
/linux/net/netfilter/
H A Dxt_bpf.c24 static int __bpf_mt_check_bytecode(struct sock_filter *insns, __u16 len, in __bpf_mt_check_bytecode()
/linux/arch/x86/tools/
H A Dinsn_decoder_test.c115 int insns = 0; in main() local
H A Dinsn_sanity.c221 int insns = 0, ret; in main() local
/linux/samples/bpf/
H A Dfds_example.c52 static struct bpf_insn insns[] = { in bpf_prog_create() local

123