/samples/bpf/ |
D | ibumad_kern.c | 80 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 …]
|
D | tracex6_kern.c | 33 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()
|
D | cpustat_kern.c | 108 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 …]
|
D | tracex4_user.c | 17 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()
|
D | tracex1_kern.c | 16 typeof(P) val = 0; \ 17 bpf_probe_read_kernel(&val, sizeof(val), &(P)); \ 18 val; \
|
D | offwaketime_kern.c | 17 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()
|
D | test_overhead_kprobe_kern.c | 15 typeof(P) val = 0; \ 16 bpf_probe_read_kernel(&val, sizeof(val), &(P)); \ 17 val; \
|
D | syscall_tp_user.c | 29 __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()
|
D | lathist_kern.c | 76 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()
|
D | trace_event_kern.c | 47 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()
|
D | lwt_len_hist_user.c | 18 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()
|
D | tracex4_kern.c | 14 u64 val; member 47 .val = bpf_ktime_get_ns(), in bpf_prog2()
|
D | xdp_sample.bpf.h | 125 #define WRITE_ONCE(x, val) \ argument 128 { .__val = (val) }; \ 136 #define NO_TEAR_ADD(x, val) WRITE_ONCE((x), READ_ONCE(x) + (val)) argument
|
D | lathist_user.c | 23 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()
|
D | tracex3_kern.c | 28 u64 val = bpf_ktime_get_ns(); in bpf_prog1() local 30 bpf_map_update_elem(&my_map, &rq, &val, BPF_ANY); in bpf_prog1()
|
D | spintest_kern.c | 38 long v = PT_REGS_IP(ctx), *val; \ 40 val = bpf_map_lookup_elem(&my_map, &v); \
|
D | tracex2_user.c | 19 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()
|
D | map_perf_test_kern.c | 181 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()
|
D | xdp_redirect_cpu_user.c | 268 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/ |
D | mdpy.c | 40 #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 …]
|
D | mtty.c | 51 #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 …]
|
D | mbochs.c | 88 #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/ |
D | cn_test.c | 28 __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()
|
D | ucon.c | 66 __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/ |
D | test-fsmount.c | 83 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) \
|