Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 36) sorted by relevance

12

/samples/bpf/
A Dxdp_fwd_user.c34 int err; in do_attach() local
39 return err; in do_attach()
44 if (err) in do_attach()
47 return err; in do_attach()
57 int err = 1; in do_detach() local
62 return err; in do_detach()
80 if (err) { in do_detach()
90 err = 1; in do_detach()
104 return err; in do_detach()
216 if (err) in main()
[all …]
A Dxdp_sample.bpf.c46 static __always_inline __u32 xdp_get_err_key(int err) in xdp_get_err_key() argument
48 switch (err) { in xdp_get_err_key()
76 key = xdp_get_err_key(err); in xdp_redirect_collect_stat()
97 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG() argument
100 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
105 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG() argument
108 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
116 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
124 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
231 if (err || drops < 0) in BPF_PROG()
[all …]
A Dtask_fd_query_user.c104 if (err < 0) { in test_debug_fs_kprobe()
137 return err; in test_nondebug_fs_kuprobe_common()
166 err = 0; in test_nondebug_fs_kuprobe_common()
170 return err; in test_nondebug_fs_kuprobe_common()
181 int err; in test_nondebug_fs_probe() local
303 err = 0; in test_debug_fs_uprobe()
307 return err; in test_debug_fs_uprobe()
321 return err; in main()
328 return err; in main()
415 err = 0; in main()
[all …]
A Dxdp_sample_user.c62 #define ERR(err) err, "error/s" argument
118 __u64 err; member
127 __u64 err; member
684 out->rx_cnt.err = err; in stats_get_rx_cnt()
687 out->totals.err += err; in stats_get_rx_cnt()
715 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
736 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
993 out->xmit_cnt.err = err; in stats_get_devmap_xmit()
996 out->totals.err += err; in stats_get_devmap_xmit()
1056 out->totals.err += err; in stats_get_devmap_xmit_multi()
[all …]
A Dxdp2skb_meta.sh34 function err() { function
65 err 2 "Exec error($status) occurred cmd: \"$cmd $@\""
84 err 4 "Error calling getopt"
133 err 3 "Missing BPF object file ($FILE)"
138 err 2 "Please specify network device -- required option --dev"
A Dsockex1_user.c17 int i, sock, err; in main() local
29 err = bpf_object__load(obj); in main()
30 if (err) in main()
A Dsockex2_user.c22 int i, sock, err; in main() local
33 err = bpf_object__load(obj); in main()
34 if (err) in main()
A Dibumad_user.c89 int opt, err = -1; in main() local
119 return err; in main()
149 err = 0; in main()
157 return err; in main()
A Dhbm.c133 goto err; in prog_load()
145 goto err; in prog_load()
151 goto err; in prog_load()
156 err: in prog_load()
177 goto err; in run_bpf_prog()
182 goto err; in run_bpf_prog()
186 goto err; in run_bpf_prog()
195 goto err; in run_bpf_prog()
204 goto err; in run_bpf_prog()
211 goto err; in run_bpf_prog()
[all …]
A Dxdp_adjust_tail_user.c95 int err; in main() local
156 err = bpf_object__load(obj); in main()
157 if (err) in main()
187 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in main()
188 if (err) { in main()
A Dtrace_event_user.c94 static void err_exit(int err) in err_exit() argument
97 exit(err); in err_exit()
145 goto err; in test_perf_event_all_cpu()
175 err: in test_perf_event_all_cpu()
195 goto err; in test_perf_event_task()
202 goto err; in test_perf_event_task()
206 goto err; in test_perf_event_task()
210 err: in test_perf_event_task()
A Dxdp_tx_iptunnel_user.c166 int i, err; in main() local
267 err = bpf_object__load(obj); in main()
268 if (err) { in main()
298 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in main()
299 if (err) { in main()
301 return err; in main()
/samples/damon/
A Dwsse.c64 int err; in damon_sample_wsse_start() local
90 if (err) in damon_sample_wsse_start()
91 return err; in damon_sample_wsse_start()
111 int err; in damon_sample_wsse_enable_store() local
114 if (err) in damon_sample_wsse_enable_store()
115 return err; in damon_sample_wsse_enable_store()
122 if (err) in damon_sample_wsse_enable_store()
124 return err; in damon_sample_wsse_enable_store()
132 int err = 0; in damon_sample_wsse_init() local
137 if (err) in damon_sample_wsse_init()
[all …]
A Dprcl.c64 int err; in damon_sample_prcl_start() local
109 if (err) in damon_sample_prcl_start()
110 return err; in damon_sample_prcl_start()
131 int err; in damon_sample_prcl_enable_store() local
133 err = kstrtobool(val, &enabled); in damon_sample_prcl_enable_store()
134 if (err) in damon_sample_prcl_enable_store()
135 return err; in damon_sample_prcl_enable_store()
142 if (err) in damon_sample_prcl_enable_store()
144 return err; in damon_sample_prcl_enable_store()
152 int err = 0; in damon_sample_prcl_init() local
[all …]
A Dmtier.c202 int err; in damon_sample_mtier_enable_store() local
204 err = kstrtobool(val, &enabled); in damon_sample_mtier_enable_store()
205 if (err) in damon_sample_mtier_enable_store()
206 return err; in damon_sample_mtier_enable_store()
212 err = damon_sample_mtier_start(); in damon_sample_mtier_enable_store()
213 if (err) in damon_sample_mtier_enable_store()
215 return err; in damon_sample_mtier_enable_store()
223 int err = 0; in damon_sample_mtier_init() local
227 err = damon_sample_mtier_start(); in damon_sample_mtier_init()
228 if (err) in damon_sample_mtier_init()
/samples/cgroup/
A Dcgroup_event_listener.c36 err(1, "Cannot open %s", argv[1]); in main()
45 err(1, "Cannot open %s", event_control_path); in main()
49 err(1, "eventfd() failed"); in main()
57 err(1, "Cannot write to cgroup.event_control"); in main()
66 err(1, "Cannot read from eventfd"); in main()
77 err(1, "cgroup.event_control is not accessible any more"); in main()
/samples/pktgen/
A Dfunctions.sh11 function err() { function
71 err 4 "proc file:$proc_ctrl not writable, not root?!"
88 err 5 "Write error($status) occurred cmd: \"$@ > $proc_ctrl\""
107 err 5 "Write error($status) occurred cmd: \"$1 > $PGDEV\""
130 err 4 "cannot perform sudo run of $0"
191 err 5 "Invalid IP6 address: $1"
198 err 5 "Invalid IP6 address: $1"
225 err 5 "Invalid prefix: /$prefix"
235 err 5 "Invalid IP$IP6 address: $1"
242 err 5 "Invalid IP$IP6 address: $1"
[all …]
A Dparameters.sh98 err 2 "[ERROR] Unknown parameters!!!"
125 err 2 "Please specify output device"
/samples/hid/
A Dhid_surface_dial.c94 int haptic_fd, err; in set_haptic() local
106 err = bpf_prog_test_run_opts(haptic_fd, &tattr); in set_haptic()
107 if (err) { in set_haptic()
109 hid_id, err); in set_haptic()
121 int err, opt, hid_id, resolution = 72; in main() local
177 err = hid_surface_dial__load(skel); in main()
178 if (err < 0) { in main()
A Dhid_mouse.c79 int err; in main() local
117 err = hid_mouse__load(skel); in main()
118 if (err < 0) { in main()
/samples/fanotify/
A Dfs-monitor.c63 struct fanotify_event_info_error *err; in handle_notifications() local
89 err = (struct fanotify_event_info_error *) info; in handle_notifications()
92 err->hdr.len); in handle_notifications()
93 printf("\terror: %d\n", err->error); in handle_notifications()
94 printf("\terror_count: %d\n", err->error_count); in handle_notifications()
/samples/connector/
A Dcn_test.c146 int err; in cn_test_init() local
148 err = cn_add_callback(&cn_test_id, cn_test_name, cn_test_callback); in cn_test_init()
149 if (err) in cn_test_init()
152 err = cn_add_callback(&cn_test_id, cn_test_name, cn_test_callback); in cn_test_init()
153 if (err) { in cn_test_init()
170 return err; in cn_test_init()
A Ducon.c50 int err; in netlink_send() local
70 err = send(s, nlh, size, 0); in netlink_send()
71 if (err == -1) in netlink_send()
75 return err; in netlink_send()
/samples/vfs/
A Dtest-fsmount.c23 int err, n; in check_messages() local
25 err = errno; in check_messages()
46 errno = err; in check_messages()
/samples/check-exec/
A Dinc.c78 int err; in interpret_stream() local
88 err = sys_execveat(fileno(script), "", script_argv, envp, in interpret_stream()
90 if (err && restrict_stream) { in interpret_stream()

Completed in 43 milliseconds

12