Searched refs:prog (Results 176 - 200 of 467) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_tail.c146 struct bpf_program *prog; local
159 prog = bpf_object__next_program(obj, NULL);
163 prog_fd = bpf_program__fd(prog);
213 struct bpf_program *prog; local
223 prog = bpf_object__next_program(obj, NULL);
227 prog_fd = bpf_program__fd(prog);
H A Dxdp_adjust_frags.c9 struct bpf_program *prog; local
20 prog = bpf_object__next_program(obj, NULL);
24 prog_fd = bpf_program__fd(prog);
/linux-master/arch/sparc/net/
H A Dbpf_jit_comp_64.c190 struct bpf_prog *prog; member in struct:jit_ctx
802 struct bpf_prog *prog = ctx->prog; local
805 stack_depth = prog->aux->stack_depth;
900 const int i = insn - ctx->prog->insnsi;
1010 if (!ctx->prog->aux->verifier_zext)
1165 !ctx->prog->aux->verifier_zext)
1236 if (i == ctx->prog->len - 1)
1440 const struct bpf_prog *prog = ctx->prog; local
1480 bpf_int_jit_compile(struct bpf_prog *prog) argument
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_loader.c172 struct bpf_program *prog,
183 spec->prog_name = bpf_program__name(prog);
288 err = parse_int(val, &flags, "test prog flags");
365 struct bpf_program *prog)
374 bpf_program__set_log_buf(prog, tester->log_buf, tester->log_buf_sz);
381 bpf_program__set_log_level(prog, (spec->log_level & 4) | min_log_level);
383 bpf_program__set_log_level(prog, spec->log_level);
385 prog_flags = bpf_program__flags(prog);
386 bpf_program__set_flags(prog, prog_flags | spec->prog_flags);
402 struct bpf_program *prog,
170 parse_test_spec(struct test_loader *tester, struct bpf_object *obj, struct bpf_program *prog, struct test_spec *spec) argument
362 prepare_case(struct test_loader *tester, struct test_spec *spec, struct bpf_object *obj, struct bpf_program *prog) argument
399 validate_case(struct test_loader *tester, struct test_subspec *subspec, struct bpf_object *obj, struct bpf_program *prog, int load_err) argument
678 struct bpf_program *prog; local
[all...]
H A Dtest_verifier.c581 struct bpf_insn prog[] = { local
586 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL);
592 struct bpf_insn prog[] = { local
601 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL);
614 printf("Failed to create prog array '%s'!\n", strerror(errno));
972 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, argument
1001 prog[fixup_kfunc_btf_id->insn_idx].off = 1;
1006 prog[fixup_kfunc_btf_i
1011 do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, struct bpf_insn *prog, int *map_fds, int *fd_array) argument
1518 struct bpf_insn *prog = test->insns; local
[all...]
H A Dtest_flow_dissector.sh27 $bpftool prog loadall $BPF_FILE /sys/fs/bpf/flow \
30 if ! unshare --net $bpftool prog attach pinned \
36 $bpftool prog attach pinned /sys/fs/bpf/flow/_dissect \
39 if unshare --net $bpftool prog attach pinned \
45 if ! $bpftool prog detach pinned \
/linux-master/net/bpf/
H A Dtest_run.c283 static int xdp_test_run_batch(struct xdp_test_data *xdp, struct bpf_prog *prog, argument
313 act = bpf_prog_run_xdp(prog, ctx);
336 ret = xdp_do_redirect_frame(xdp->dev, ctx, frm, prog);
344 bpf_warn_invalid_xdp_action(NULL, prog, act);
366 static int bpf_test_run_xdp_live(struct bpf_prog *prog, struct xdp_buff *ctx, argument
384 ret = xdp_test_run_batch(&xdp, prog, repeat - t.i);
394 static int bpf_test_run(struct bpf_prog *prog, void *ctx, u32 repeat, argument
397 struct bpf_prog_array_item item = {.prog = prog};
405 item.cgroup_storage[stype] = bpf_cgroup_storage_alloc(prog, styp
671 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
721 struct bpf_prog *prog; member in struct:bpf_raw_tp_test_run_info
742 bpf_prog_test_run_raw_tp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
970 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1164 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1326 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1395 bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1495 bpf_prog_test_run_syscall(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1593 bpf_prog_test_run_nf(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
[all...]
/linux-master/arch/mips/net/
H A Dbpf_jit_comp.c852 const struct bpf_prog *prog = ctx->program; local
856 for (i = 0; i < prog->len; i++) {
857 const struct bpf_insn *insn = &prog->insnsi[i];
883 ctx->descriptors[prog->len] = ctx->jit_index;
890 const struct bpf_prog *prog = ctx->program; local
894 for (i = 0; i <= prog->len; i++)
912 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) argument
914 struct bpf_prog *tmp, *orig_prog = prog;
927 if (!prog->jit_requested)
934 tmp = bpf_jit_blind_constants(prog);
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtoeplitz.c299 struct sock_fprog prog = {}; local
301 prog.filter = filter;
302 prog.len = ARRAY_SIZE(filter);
303 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &prog, sizeof(prog)))
328 struct sock_fprog prog = {}; local
330 prog.filter = filter;
331 prog.len = ARRAY_SIZE(filter);
332 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &prog, sizeof(prog)))
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c39 struct bpf_prog *prog, struct netlink_ext_ack *extack)
47 xdp_running = running && nn->xdp_hw.prog;
49 if (!prog && !xdp_running)
51 if (prog && running && !xdp_running)
54 return nfp_net_bpf_offload(nn, prog, running, extack);
149 if (!cls_bpf->prog)
153 err = nfp_net_bpf_offload(nn, cls_bpf->prog, oldprog,
158 bv->tc_prog = cls_bpf->prog;
186 struct bpf_prog *prog; local
191 if (nn->xdp_hw.prog) {
38 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, struct bpf_prog *prog, struct netlink_ext_ack *extack) argument
[all...]
/linux-master/scripts/kconfig/
H A DMakefile41 config-prog := conf
42 menuconfig-prog := mconf
43 nconfig-prog := nconf
44 gconfig-prog := gconf
45 xconfig-prog := qconf
49 $(1): $(obj)/$($(1)-prog)
53 build_$(1): $(obj)/$($(1)-prog)
/linux-master/kernel/bpf/
H A Dverifier.c426 struct bpf_func_info_aux *aux = env->prog->aux->func_info_aux;
435 if (!env->prog->aux->func_info)
438 info = &env->prog->aux->func_info[subprog];
439 return btf_type_name(env->prog->aux->btf, info->type_id);
548 return is_may_goto_insn(&env->prog->insnsi[insn_idx]);
1467 return env->prog->len;
2450 subprog /* subprog number within this prog */);
2488 int insn_cnt = env->prog->len;
2511 struct bpf_prog_aux *aux = env->prog->aux;
2621 find_kfunc_desc(const struct bpf_prog *prog, u3 argument
2634 bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id, u16 btf_fd_idx, u8 **func_addr) argument
2872 sort_kfunc_descs_by_imm_off(struct bpf_prog *prog) argument
2884 bpf_prog_has_kfunc_call(const struct bpf_prog *prog) argument
2890 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, const struct bpf_insn *insn) argument
9499 struct bpf_prog *prog = env->prog; local
15541 const struct bpf_prog *prog = env->prog; local
16072 struct bpf_prog *prog; local
16174 struct bpf_prog *prog; local
16264 struct bpf_prog *prog; local
16391 struct bpf_prog *prog = env->prog; local
18295 check_map_prog_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, struct bpf_prog *prog) argument
18684 adjust_poke_descs(struct bpf_prog *prog, u32 off, u32 len) argument
18785 struct bpf_prog *prog = env->prog; local
19304 struct bpf_prog *prog = env->prog, **func, *tmp; local
19565 struct bpf_prog *prog = env->prog; local
19617 struct bpf_prog *prog = env->prog; local
19773 struct bpf_prog *prog; local
19800 struct bpf_prog *prog = env->prog; local
20971 struct bpf_prog *prog = env->prog; local
21072 bpf_check_attach_target(struct bpf_verifier_log *log, const struct bpf_prog *prog, const struct bpf_prog *tgt_prog, u32 btf_id, struct bpf_attach_target_info *tgt_info) argument
21377 can_be_sleepable(struct bpf_prog *prog) argument
21397 struct bpf_prog *prog = env->prog; local
21490 bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr, __u32 uattr_size) argument
[all...]
H A Dcgroup_iter.c23 * continues if prog returns 0.
25 * The prog can check (seq->num == 0) to determine whether this is
26 * the first element. The prog may also be passed a NULL cgroup,
27 * which means the walk has completed and the prog has a chance to
94 /* pass NULL to the prog for post-processing */
126 struct bpf_prog *prog; local
136 prog = bpf_iter_get_info(&meta, in_stop);
137 if (prog)
138 ret = bpf_iter_run_prog(prog, &ctx);
140 /* if prog return
194 bpf_iter_attach_cgroup(struct bpf_prog *prog, union bpf_iter_link_info *linfo, struct bpf_iter_aux_info *aux) argument
[all...]
/linux-master/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c206 static int do_hid_bpf_attach_prog(struct hid_device *hdev, int prog_fd, struct bpf_prog *prog, argument
211 prog_type = hid_bpf_get_prog_attach_type(prog);
224 fd = __hid_bpf_attach_prog(hdev, prog_type, prog_fd, prog, flags);
283 struct bpf_prog *prog; local
300 * take a ref on the prog itself, it will be released
303 prog = bpf_prog_get(prog_fd);
304 if (IS_ERR(prog)) {
305 err = PTR_ERR(prog);
309 fd = do_hid_bpf_attach_prog(hdev, prog_fd, prog, flags);
318 bpf_prog_put(prog);
[all...]
/linux-master/samples/bpf/
H A Dtrace_event_user.c24 struct bpf_program *prog; variable in typeref:struct:bpf_program
158 links[i] = bpf_program__attach_perf_event(prog, pmu_fd);
197 link = bpf_program__attach_perf_event(prog, pmu_fd);
318 prog = bpf_object__find_program_by_name(obj, "bpf_prog1");
319 if (!prog) {
320 printf("finding a prog in obj file failed\n");
H A Dtest_cgrp2_sock.c78 struct bpf_insn *prog; local
93 p = prog = malloc(insns_cnt);
94 if (!prog) {
123 prog, insns_cnt, &opts);
125 free(prog);
270 printf("Failed to load prog: '%s'\n", strerror(errno));
279 printf("Failed to attach prog to cgroup: '%s'\n",
286 printf("Failed to detach prog from cgroup: '%s'\n",
H A Dtest_cgrp2_attach.c45 struct bpf_insn prog[] = { local
74 size_t insns_cnt = ARRAY_SIZE(prog);
81 prog, insns_cnt, &opts);
109 printf("Failed to load prog: '%s'\n", strerror(errno));
115 printf("Failed to attach prog to cgroup: '%s'\n",
H A Dtracex2_user.c120 struct bpf_program *prog; local
158 bpf_object__for_each_program(prog, obj) {
159 links[j] = bpf_program__attach(prog);
/linux-master/drivers/net/
H A Dnetkit.c42 const struct bpf_prog *prog; local
44 bpf_mprog_foreach_prog(entry, fp, prog) {
46 ret = bpf_prog_run(prog, skb);
515 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
532 prog->type);
539 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog,
556 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) argument
574 ret = bpf_mprog_detach(entry, &entry_new, prog, NULL, attr->attach_flags,
622 ret = bpf_mprog_attach(entry, &entry_new, link->prog, link, NULL, flags,
650 ret = bpf_mprog_detach(entry, &entry_new, link->prog, lin
758 netkit_link_init(struct netkit_link *nkl, struct bpf_link_primer *link_primer, const union bpf_attr *attr, struct net_device *dev, struct bpf_prog *prog) argument
771 netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
[all...]
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_xdp.c10 int igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog, argument
28 old_prog = xchg(&adapter->xdp_prog, prog);
32 if (prog)
/linux-master/tools/hv/
H A Dvmbus_testing272 parser = argparse.ArgumentParser(prog = "vmbus_testing",usage ="\n"
273 "%(prog)s [delay] [-h] [-e|-E] -t [-p]\n"
274 "%(prog)s [view_all | V] [-h]\n"
275 "%(prog)s [disable_all | D] [-h]\n"
276 "%(prog)s [disable_single | d] [-h|-p]\n"
277 "%(prog)s [view_single | v] [-h|-p]\n"
278 "%(prog)s --version\n",
285 version = '%(prog)s 0.1.0')
313 prog = "vmbus_testing",
314 usage = "%(prog)
[all...]
/linux-master/net/sunrpc/
H A Dstats.c39 const struct rpc_program *prog = statp->program; local
54 for (i = 0; i < prog->nrvers; i++) {
55 const struct rpc_version *vers = prog->version[i];
84 const struct svc_program *prog = statp->program; local
103 for (i = 0; i < prog->pg_nvers; i++) {
104 vers = prog->pg_vers[i];
/linux-master/samples/seccomp/
H A Dbpf-fancy.c81 struct sock_fprog prog = { local
93 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) {
/linux-master/tools/testing/selftests/futex/functional/
H A Dfutex_wait.c22 void usage(char *prog) argument
24 printf("Usage: %s\n", prog);
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_rename.c63 static void attach_bpf(struct bpf_program *prog) argument
67 link = bpf_program__attach(prog);

Completed in 431 milliseconds

1234567891011>>