/samples/bpf/ |
D | fds_example.c | 76 static int bpf_do_map(const char *file, uint32_t flags, uint32_t key, in bpf_do_map() argument 81 if (flags & BPF_F_PIN) { in bpf_do_map() 95 if ((flags & BPF_F_KEY_VAL) == BPF_F_KEY_VAL) { in bpf_do_map() 100 } else if (flags & BPF_F_KEY) { in bpf_do_map() 110 static int bpf_do_prog(const char *file, uint32_t flags, const char *object) in bpf_do_prog() argument 114 if (flags & BPF_F_PIN) { in bpf_do_prog() 142 uint32_t key = 0, value = 0, flags = 0; in main() local 152 flags |= BPF_F_PIN; in main() 155 flags |= BPF_F_GET; in main() 163 flags |= BPF_F_KEY; in main() [all …]
|
D | do_hbm_test.sh | 91 flags="" 96 echo "./hbm $dir -n $id -r $rate -t $dur $flags $dbg $prog" > hbm.out 98 ./hbm $dir -n $id -r $rate -t $dur $flags $dbg $prog >> hbm.out 2>&1 & 121 flags="$flags --no_cn" 124 flags="$flags -d" 137 flags="$flags --edt" 147 flags="$flags -l" 171 flags="$flags -s" 178 flags="$flags -w"
|
D | xdp_sample_pkts_kern.c | 40 u64 flags = BPF_F_CURRENT_CPU; in xdp_sample_prog() local 47 flags |= (u64)sample_size << 32; in xdp_sample_prog() 49 ret = bpf_perf_event_output(ctx, &my_map, flags, in xdp_sample_prog()
|
D | test_overhead_user.c | 81 static void loop(int cpu, int flags) in loop() argument 89 if (flags & 1) in loop() 91 if (flags & 2) in loop() 95 static void run_perf_test(int tasks, int flags) in run_perf_test() argument 103 loop(i, flags); in run_perf_test()
|
D | bpf_load.h | 57 int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
|
D | test_lwt_bpf.c | 95 int ret, off = 0, flags = IS_PSEUDO; in rewrite() local 111 flags |= BPF_F_MARK_MANGLED_0; in rewrite() 121 flags | sizeof(new_ip)); in rewrite()
|
D | xdp_fwd_kern.c | 43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags() argument 104 rc = bpf_fib_lookup(ctx, &fib_params, sizeof(fib_params), flags); in xdp_fwd_flags()
|
D | syscall_tp_kern.c | 11 long flags; member
|
D | test_cgrp2_tc_kern.c | 28 __u32 flags; member
|
D | lwt_len_hist_kern.c | 31 __u32 flags; member
|
D | xdp_router_ipv4_user.c | 28 int sock, sock_arp, flags = XDP_FLAGS_UPDATE_IF_NOEXIST; variable 46 if (bpf_get_link_xdp_id(ifindex_list[i], &prog_id, flags)) { in int_exit() 52 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in int_exit() 650 flags |= XDP_FLAGS_SKB_MODE; in main() 655 flags &= ~XDP_FLAGS_UPDATE_IF_NOEXIST; in main() 707 if (bpf_set_link_xdp_fd(ifindex_list[i], prog_fd, flags) < 0) { in main() 712 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in main()
|
D | sockex2_kern.c | 129 __be16 flags; in flow_dissector() member 134 nhoff + offsetof(struct gre_hdr, flags)); in flow_dissector()
|
D | sockex3_kern.c | 147 __be16 flags; in parse_ip_proto() member 152 nhoff + offsetof(struct gre_hdr, flags)); in parse_ip_proto()
|
D | bpf_load.c | 59 int fd, ret, flags; in write_kprobe_events() local 64 flags = O_WRONLY | O_TRUNC; in write_kprobe_events() 66 flags = O_WRONLY | O_APPEND; in write_kprobe_events() 68 fd = open(DEBUGFS "kprobe_events", flags); in write_kprobe_events()
|
/samples/vfs/ |
D | test-fsmount.c | 72 static inline int fsopen(const char *fs_name, unsigned int flags) in fsopen() argument 74 return syscall(__NR_fsopen, fs_name, flags); in fsopen() 77 static inline int fsmount(int fsfd, unsigned int flags, unsigned int ms_flags) in fsmount() argument 79 return syscall(__NR_fsmount, fsfd, flags, ms_flags); in fsmount() 90 unsigned int flags) in move_mount() argument 94 to_dfd, to_pathname, flags); in move_mount()
|
D | test-statx.c | 42 ssize_t statx(int dfd, const char *filename, unsigned flags, in statx() argument 45 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in statx()
|
/samples/pidfd/ |
D | pidfd-metadata.c | 34 static pid_t pidfd_clone(int flags, int *pidfd) in pidfd_clone() argument 40 return __clone2(do_child, stack, stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone() 42 return clone(do_child, stack + stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone() 47 unsigned int flags) in sys_pidfd_send_signal() argument 49 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
|
/samples/kprobes/ |
D | kprobe_example.c | 32 p->symbol_name, p->addr, regs->ip, regs->flags); in handler_pre() 49 p->symbol_name, p->addr, regs->psw.addr, regs->flags); in handler_pre() 58 unsigned long flags) in handler_post() argument 62 p->symbol_name, p->addr, regs->flags); in handler_post() 78 p->symbol_name, p->addr, regs->flags); in handler_post()
|
/samples/seccomp/ |
D | user-trap.c | 26 static int seccomp(unsigned int op, unsigned int flags, void *args) in seccomp() argument 29 return syscall(__NR_seccomp, op, flags, args); in seccomp() 86 static int user_trap_syscall(int nr, unsigned int flags) in user_trap_syscall() argument 101 return seccomp(SECCOMP_SET_MODE_FILTER, flags, &prog); in user_trap_syscall()
|
/samples/vfio-mdev/ |
D | mtty.c | 915 static int mtty_set_irqs(struct mdev_device *mdev, uint32_t flags, in mtty_set_irqs() argument 932 switch (flags & VFIO_IRQ_SET_ACTION_TYPE_MASK) { in mtty_set_irqs() 938 if (flags & VFIO_IRQ_SET_DATA_NONE) { in mtty_set_irqs() 945 if (flags & VFIO_IRQ_SET_DATA_EVENTFD) { in mtty_set_irqs() 967 switch (flags & VFIO_IRQ_SET_ACTION_TYPE_MASK) { in mtty_set_irqs() 972 if (flags & VFIO_IRQ_SET_DATA_NONE) { in mtty_set_irqs() 979 if (flags & VFIO_IRQ_SET_DATA_EVENTFD) { in mtty_set_irqs() 1086 region_info->flags = VFIO_REGION_INFO_FLAG_READ | in mtty_get_region_info() 1105 irq_info->flags = VFIO_IRQ_INFO_EVENTFD; in mtty_get_irq_info() 1109 irq_info->flags |= (VFIO_IRQ_INFO_MASKABLE | in mtty_get_irq_info() [all …]
|
D | mdpy.c | 443 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info() 450 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info() 457 region_info->flags = 0; in mdpy_get_region_info() 473 dev_info->flags = VFIO_DEVICE_FLAGS_PCI; in mdpy_get_device_info() 484 if (plane->flags & VFIO_GFX_PLANE_TYPE_PROBE) { in mdpy_query_gfx_plane() 485 if (plane->flags == (VFIO_GFX_PLANE_TYPE_PROBE | in mdpy_query_gfx_plane() 491 if (plane->flags != VFIO_GFX_PLANE_TYPE_REGION) in mdpy_query_gfx_plane()
|
D | mbochs.c | 1037 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1043 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1050 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1057 ext->base.flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1070 region_info->flags = 0; in mbochs_get_region_info() 1086 dev_info->flags = VFIO_DEVICE_FLAGS_PCI; in mbochs_get_device_info() 1101 if (plane->flags & VFIO_GFX_PLANE_TYPE_PROBE) { in mbochs_query_gfx_plane() 1102 if (plane->flags == (VFIO_GFX_PLANE_TYPE_PROBE | in mbochs_query_gfx_plane() 1108 if (plane->flags != VFIO_GFX_PLANE_TYPE_DMABUF) in mbochs_query_gfx_plane()
|
D | mdpy-fb.c | 173 info->flags = FBINFO_DEFAULT; in mdpy_fb_probe()
|
/samples/v4l/ |
D | v4l2-pci-skeleton.c | 219 unsigned long flags; in buffer_queue() local 221 spin_lock_irqsave(&skel->qlock, flags); in buffer_queue() 226 spin_unlock_irqrestore(&skel->qlock, flags); in buffer_queue() 233 unsigned long flags; in return_all_buffers() local 235 spin_lock_irqsave(&skel->qlock, flags); in return_all_buffers() 240 spin_unlock_irqrestore(&skel->qlock, flags); in return_all_buffers()
|
/samples/mic/mpssd/ |
D | mpssd.c | 330 if (!(le16toh(desc->flags) & VRING_DESC_F_NEXT)) in next_desc() 607 hdr->flags |= VIRTIO_NET_HDR_F_DATA_VALID; in virtio_net() 610 __func__, __LINE__, hdr->flags); in virtio_net() 674 hdr->flags); in virtio_net() 1087 if (!(le16toh(desc->flags) & VRING_DESC_F_NEXT)) { in header_error_check() 1092 if (le16toh(desc->flags) & VRING_DESC_F_WRITE) { in header_error_check() 1250 desc->flags & VRING_DESC_F_NEXT; in virtio_block()
|