Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 33) sorted by relevance

12

/samples/bpf/
Dibumad_kern.c80 u64 zero = 0, *val; in on_ib_umad_read_recv() local
85 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
86 if (!val) { in on_ib_umad_read_recv()
88 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
89 if (!val) in on_ib_umad_read_recv()
93 (*val) += 1; in on_ib_umad_read_recv()
100 u64 zero = 0, *val; in on_ib_umad_read_send() local
105 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
106 if (!val) { in on_ib_umad_read_send()
108 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
[all …]
Dtracex6_kern.c33 u64 count, *val; in bpf_prog1() local
41 val = bpf_map_lookup_elem(&values, &key); in bpf_prog1()
42 if (val) in bpf_prog1()
43 *val = count; in bpf_prog1()
60 struct bpf_perf_event_value *val, buf; in BPF_KPROBE() local
72 val = bpf_map_lookup_elem(&values2, &key); in BPF_KPROBE()
73 if (val) in BPF_KPROBE()
74 *val = buf; in BPF_KPROBE()
Dcpustat_kern.c108 u64 *val; in bpf_prog1() local
176 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog1()
177 if (val) in bpf_prog1()
178 __sync_fetch_and_add((long *)val, delta); in bpf_prog1()
199 val = bpf_map_lookup_elem(&cstate_duration, &key); in bpf_prog1()
200 if (val) in bpf_prog1()
201 __sync_fetch_and_add((long *)val, delta); in bpf_prog1()
216 u64 *val; in bpf_prog2() local
273 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog2()
274 if (val) in bpf_prog2()
[all …]
Dtracex4_user.c17 long long val; member
31 long long val = time_get_ns(); in print_old_objects() local
41 if (val - v.val < 1000000000ll) in print_old_objects()
45 next_key, (val - v.val) / 1000000000ll, v.ip); in print_old_objects()
Dtracex1_kern.c16 typeof(P) val = 0; \
17 bpf_probe_read_kernel(&val, sizeof(val), &(P)); \
18 val; \
Doffwaketime_kern.c17 typeof(P) val; \
18 bpf_probe_read_kernel(&val, sizeof(val), &(P)); \
19 val; \
86 u64 zero = 0, *val; in update_counts() local
101 val = bpf_map_lookup_elem(&counts, &key); in update_counts()
102 if (!val) { in update_counts()
104 val = bpf_map_lookup_elem(&counts, &key); in update_counts()
105 if (!val) in update_counts()
108 (*val) += delta; in update_counts()
Dtest_overhead_kprobe_kern.c15 typeof(P) val = 0; \
16 bpf_probe_read_kernel(&val, sizeof(val), &(P)); \
17 val; \
Dsyscall_tp_user.c29 __u32 val; in verify_map() local
31 if (bpf_map_lookup_elem(map_id, &key, &val) != 0) { in verify_map()
35 if (val == 0) { in verify_map()
39 val = 0; in verify_map()
40 if (bpf_map_update_elem(map_id, &key, &val, BPF_ANY) != 0) { in verify_map()
Dlathist_kern.c76 long *val; in bpf_prog2() local
90 val = bpf_map_lookup_elem(&my_lat, &key); in bpf_prog2()
91 if (val) in bpf_prog2()
92 __sync_fetch_and_add((long *)val, 1); in bpf_prog2()
Dtrace_event_kern.c47 u64 *val, one = 1; in bpf_prog1() local
71 val = bpf_map_lookup_elem(&counts, &key); in bpf_prog1()
72 if (val) in bpf_prog1()
73 (*val)++; in bpf_prog1()
Dlwt_len_hist_user.c18 static void stars(char *str, long val, long max, int width) in stars() argument
22 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) in stars()
24 if (val > max) in stars()
Dtracex4_kern.c14 u64 val; member
47 .val = bpf_ktime_get_ns(), in bpf_prog2()
Dxdp_sample.bpf.h125 #define WRITE_ONCE(x, val) \ argument
128 { .__val = (val) }; \
136 #define NO_TEAR_ADD(x, val) WRITE_ONCE((x), READ_ONCE(x) + (val)) argument
Dlathist_user.c23 static void stars(char *str, long val, long max, int width) in stars() argument
27 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) in stars()
29 if (val > max) in stars()
Dtracex3_kern.c28 u64 val = bpf_ktime_get_ns(); in bpf_prog1() local
30 bpf_map_update_elem(&my_map, &rq, &val, BPF_ANY); in bpf_prog1()
Dspintest_kern.c38 long v = PT_REGS_IP(ctx), *val; \
40 val = bpf_map_lookup_elem(&my_map, &v); \
Dtracex2_user.c19 static void stars(char *str, long val, long max, int width) in stars() argument
23 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) in stars()
25 if (val > max) in stars()
Dmap_perf_test_kern.c181 long val = 1; in SYSCALL() local
204 ret = bpf_map_update_elem(&lru_hash_map, &key, &val, BPF_ANY); in SYSCALL()
206 ret = bpf_map_update_elem(&nocommon_lru_hash_map, &key, &val, in SYSCALL()
219 ret = bpf_map_update_elem(nolocal_lru_map, &key, &val, in SYSCALL()
Dxdp_redirect_cpu_user.c268 struct bpf_devmap_val val = {}; in set_cpumap_prog() local
288 val.ifindex = ifindex_out; in set_cpumap_prog()
289 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_redirect_egress_prog); in set_cpumap_prog()
290 err = bpf_map_update_elem(bpf_map__fd(skel->maps.tx_port), &key, &val, 0); in set_cpumap_prog()
/samples/vfio-mdev/
Dmdpy.c40 #define STORE_LE16(addr, val) (*(u16 *)addr = val) argument
41 #define STORE_LE32(addr, val) (*(u32 *)addr = val) argument
303 u32 val; in mdpy_read() local
305 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
310 if (copy_to_user(buf, &val, sizeof(val))) in mdpy_read()
315 u16 val; in mdpy_read() local
317 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
322 if (copy_to_user(buf, &val, sizeof(val))) in mdpy_read()
327 u8 val; in mdpy_read() local
329 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
[all …]
Dmtty.c51 #define STORE_LE16(addr, val) (*(u16 *)addr = val) argument
52 #define STORE_LE32(addr, val) (*(u32 *)addr = val) argument
792 u32 val; in mtty_read() local
794 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
799 if (copy_to_user(buf, &val, sizeof(val))) in mtty_read()
804 u16 val; in mtty_read() local
806 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
811 if (copy_to_user(buf, &val, sizeof(val))) in mtty_read()
816 u8 val; in mtty_read() local
818 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
[all …]
Dmbochs.c88 #define STORE_LE16(addr, val) (*(u16 *)addr = val) argument
89 #define STORE_LE32(addr, val) (*(u32 *)addr = val) argument
595 u32 val; in mbochs_read() local
597 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mbochs_read()
602 if (copy_to_user(buf, &val, sizeof(val))) in mbochs_read()
607 u16 val; in mbochs_read() local
609 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mbochs_read()
614 if (copy_to_user(buf, &val, sizeof(val))) in mbochs_read()
619 u8 val; in mbochs_read() local
621 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mbochs_read()
[all …]
/samples/connector/
Dcn_test.c28 __func__, jiffies, msg->id.idx, msg->id.val, in cn_test_callback()
70 msg->id.val = -1;
94 req->first = cn_test_id.val;
101 req->first = cn_test_id.val + 20;
151 cn_test_id.val++; in cn_test_init()
162 cn_test_id.idx, cn_test_id.val); in cn_test_init()
177 cn_test_id.val--; in cn_test_fini()
Ducon.c66 __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); in netlink_send()
171 data->id.val = CN_TEST_VAL; in main()
181 ulog("%d messages have been sent to %08x.%08x.\n", i, data->id.idx, data->id.val); in main()
226 ctime(&tm), data->id.idx, data->id.val, data->seq, data->ack); in main()
/samples/vfs/
Dtest-fsmount.c83 const char *key, const void *val, int aux) in fsconfig() argument
85 return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); in fsconfig()
97 #define E_fsconfig(fd, cmd, key, val, aux) \ argument
99 if (fsconfig(fd, cmd, key, val, aux) == -1) \

12