/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="" 106 echo "./hbm $dir -n $id -r $rate -t $dur $flags $dbg $prog" > hbm.out 108 ./hbm $dir -n $id -r $rate -t $dur $flags $dbg $prog >> hbm.out 2>&1 & 131 flags="$flags --no_cn" 134 flags="$flags -d" 147 flags="$flags --edt" 157 flags="$flags -l" 181 flags="$flags -s" 188 flags="$flags -w"
|
D | xdp_sample_pkts_kern.c | 38 u64 flags = BPF_F_CURRENT_CPU; in xdp_sample_prog() local 45 flags |= (u64)sample_size << 32; in xdp_sample_prog() 47 ret = bpf_perf_event_output(ctx, &my_map, flags, in xdp_sample_prog()
|
D | test_overhead_user.c | 85 static void loop(int cpu, int flags) in loop() argument 93 if (flags & 1) in loop() 95 if (flags & 2) in loop() 99 static void run_perf_test(int tasks, int flags) in run_perf_test() argument 107 loop(i, flags); in run_perf_test()
|
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() 649 flags |= XDP_FLAGS_SKB_MODE; in main() 654 flags &= ~XDP_FLAGS_UPDATE_IF_NOEXIST; in main() 664 if (!(flags & XDP_FLAGS_SKB_MODE)) in main() 665 flags |= XDP_FLAGS_DRV_MODE; in main() 704 if (bpf_set_link_xdp_fd(ifindex_list[i], prog_fd, flags) < 0) { in main() 709 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in main()
|
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 | lwt_len_hist_kern.c | 24 __u32 flags; member
|
D | test_cgrp2_tc_kern.c | 28 __u32 flags; member
|
D | sockex2_kern.c | 130 __be16 flags; in flow_dissector() member 135 nhoff + offsetof(struct gre_hdr, flags)); in flow_dissector()
|
D | sockex3_kern.c | 150 __be16 flags; in parse_ip_proto() member 155 nhoff + offsetof(struct gre_hdr, flags)); in parse_ip_proto()
|
D | tc_l2_redirect_kern.c | 28 __u32 flags; member
|
/samples/ftrace/ |
D | ftrace-direct-too.c | 8 unsigned int flags, struct pt_regs *regs); 11 unsigned int flags, struct pt_regs *regs) in my_direct_func() argument 14 vma, address, flags, regs); in my_direct_func()
|
/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 | 33 p->symbol_name, p->addr, regs->ip, regs->flags); in handler_pre() 57 p->symbol_name, p->addr, regs->psw.addr, regs->flags); in handler_pre() 66 unsigned long flags) in handler_post() argument 70 p->symbol_name, p->addr, regs->flags); in handler_post() 94 p->symbol_name, p->addr, regs->flags); in handler_post()
|
/samples/landlock/ |
D | sandboxer.c | 27 const size_t size, const __u32 flags) in landlock_create_ruleset() argument 29 return syscall(__NR_landlock_create_ruleset, attr, size, flags); in landlock_create_ruleset() 37 const __u32 flags) in landlock_add_rule() argument 40 flags); in landlock_add_rule() 46 const __u32 flags) in landlock_restrict_self() argument 48 return syscall(__NR_landlock_restrict_self, ruleset_fd, flags); in landlock_restrict_self()
|
/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 | 900 static int mtty_set_irqs(struct mdev_state *mdev_state, uint32_t flags, in mtty_set_irqs() argument 909 switch (flags & VFIO_IRQ_SET_ACTION_TYPE_MASK) { in mtty_set_irqs() 915 if (flags & VFIO_IRQ_SET_DATA_NONE) { in mtty_set_irqs() 922 if (flags & VFIO_IRQ_SET_DATA_EVENTFD) { in mtty_set_irqs() 944 switch (flags & VFIO_IRQ_SET_ACTION_TYPE_MASK) { in mtty_set_irqs() 949 if (flags & VFIO_IRQ_SET_DATA_NONE) { in mtty_set_irqs() 956 if (flags & VFIO_IRQ_SET_DATA_EVENTFD) { in mtty_set_irqs() 1055 region_info->flags = VFIO_REGION_INFO_FLAG_READ | in mtty_get_region_info() 1073 irq_info->flags = VFIO_IRQ_INFO_EVENTFD; in mtty_get_irq_info() 1077 irq_info->flags |= (VFIO_IRQ_INFO_MASKABLE | in mtty_get_irq_info() [all …]
|
D | mdpy.c | 440 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info() 447 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info() 454 region_info->flags = 0; in mdpy_get_region_info() 468 dev_info->flags = VFIO_DEVICE_FLAGS_PCI; in mdpy_get_device_info() 477 if (plane->flags & VFIO_GFX_PLANE_TYPE_PROBE) { in mdpy_query_gfx_plane() 478 if (plane->flags == (VFIO_GFX_PLANE_TYPE_PROBE | in mdpy_query_gfx_plane() 484 if (plane->flags != VFIO_GFX_PLANE_TYPE_REGION) in mdpy_query_gfx_plane()
|
D | mbochs.c | 1021 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1027 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1034 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1041 ext->base.flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info() 1054 region_info->flags = 0; in mbochs_get_region_info() 1068 dev_info->flags = VFIO_DEVICE_FLAGS_PCI; in mbochs_get_device_info() 1081 if (plane->flags & VFIO_GFX_PLANE_TYPE_PROBE) { in mbochs_query_gfx_plane() 1082 if (plane->flags == (VFIO_GFX_PLANE_TYPE_PROBE | in mbochs_query_gfx_plane() 1088 if (plane->flags != VFIO_GFX_PLANE_TYPE_DMABUF) in mbochs_query_gfx_plane()
|
/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/nitro_enclaves/ |
D | ne_ioctl_sample.c | 296 .flags = NE_EIF_IMAGE, in ne_load_enclave_image() 412 .flags = NE_DEFAULT_MEMORY_REGION, in ne_set_user_mem_region()
|