| /samples/pktgen/ |
| A D | parameters.sh | 34 info "Output device set to: DEV=$DEV" 58 info "Number of threads to start: $THREADS" 62 info "CLONE_SKB=$CLONE_SKB" 66 info "COUNT=$COUNT" 70 info "SKB bursting: BURST=$BURST" 74 info "DELAY=$DELAY" 78 info "Verbose mode: VERBOSE=$VERBOSE" 82 info "Debug mode: DEBUG=$DEBUG" 86 info "IP6: IP6=$IP6" 90 info "Append mode: APPEND=$APPEND" [all …]
|
| A D | pktgen_sample06_numa_awared_queue_irq_affinity.sh | 61 … info "irq ${irq_array[$i]} is set affinity to `cat /proc/irq/${irq_array[$i]}/smp_affinity_list`" 69 info "queue number is $queue_num"
|
| A D | pktgen_sample05_flow_per_thread.sh | 82 info "$dev: Not using burst"
|
| A D | pktgen_sample03_burst_single_flow.sh | 87 info "$dev: Not using burst"
|
| A D | functions.sh | 22 function info() { function 126 info "Not root, running with sudo"
|
| /samples/vfio-mdev/ |
| A D | mdpy-fb.c | 85 if (info->screen_base) in mdpy_fb_destroy() 99 struct fb_info *info; in mdpy_fb_probe() local 135 if (!info) { in mdpy_fb_probe() 140 par = info->par; in mdpy_fb_probe() 142 info->fix = mdpy_fb_fix; in mdpy_fb_probe() 147 info->var = mdpy_fb_var; in mdpy_fb_probe() 148 info->var.xres = width; in mdpy_fb_probe() 149 info->var.yres = height; in mdpy_fb_probe() 153 info->screen_size = info->fix.smem_len; in mdpy_fb_probe() 154 info->screen_base = ioremap(info->fix.smem_start, in mdpy_fb_probe() [all …]
|
| A D | mdpy.c | 526 struct vfio_device_info info; in mdpy_ioctl() local 533 if (info.argsz < minsz) in mdpy_ioctl() 536 ret = mdpy_get_device_info(&info); in mdpy_ioctl() 540 memcpy(&mdev_state->dev_info, &info, sizeof(info)); in mdpy_ioctl() 542 if (copy_to_user((void __user *)arg, &info, minsz)) in mdpy_ioctl() 549 struct vfio_region_info info; in mdpy_ioctl() local 558 if (info.argsz < minsz) in mdpy_ioctl() 574 struct vfio_irq_info info; in mdpy_ioctl() local 581 if ((info.argsz < minsz) || in mdpy_ioctl() 582 (info.index >= mdev_state->dev_info.num_irqs)) in mdpy_ioctl() [all …]
|
| A D | mtty.c | 839 struct vfio_precopy_info info = {}; in mtty_precopy_ioctl() local 850 if (info.argsz < minsz) in mtty_precopy_ioctl() 874 info.dirty_bytes = 0; in mtty_precopy_ioctl() 1799 struct vfio_device_info info; in mtty_ioctl() local 1806 if (info.argsz < minsz) in mtty_ioctl() 1813 memcpy(&mdev_state->dev_info, &info, sizeof(info)); in mtty_ioctl() 1822 struct vfio_region_info info; in mtty_ioctl() local 1831 if (info.argsz < minsz) in mtty_ioctl() 1847 struct vfio_irq_info info; in mtty_ioctl() local 1854 if ((info.argsz < minsz) || in mtty_ioctl() [all …]
|
| A D | mbochs.c | 1199 struct vfio_device_info info; in mbochs_ioctl() local 1206 if (info.argsz < minsz) in mbochs_ioctl() 1209 ret = mbochs_get_device_info(&info); in mbochs_ioctl() 1220 struct vfio_region_info_ext info; in mbochs_ioctl() local 1222 minsz = offsetofend(typeof(info), base.offset); in mbochs_ioctl() 1227 outsz = info.base.argsz; in mbochs_ioctl() 1230 if (outsz > sizeof(info)) in mbochs_ioctl() 1245 struct vfio_irq_info info; in mbochs_ioctl() local 1252 if ((info.argsz < minsz) || in mbochs_ioctl() 1253 (info.index >= VFIO_PCI_NUM_IRQS)) in mbochs_ioctl() [all …]
|
| /samples/timers/ |
| A D | hpet_example.c | 101 struct hpet_info info; in hpet_info() local 115 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_info() 121 info.hi_ireqfreq, info.hi_flags); in hpet_info() 123 info.hi_hpet, info.hi_timer); in hpet_info() 136 struct hpet_info info; in hpet_poll() local 161 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_poll() 166 fprintf(stderr, "hpet_poll: info.hi_flags 0x%lx\n", info.hi_flags); in hpet_poll() 168 if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) { in hpet_poll() 228 struct hpet_info info; in hpet_fasync() local 266 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_fasync() [all …]
|
| /samples/vfs/ |
| A D | test-list-all-mounts.c | 76 struct mnt_ns_info info = {}; in main() local 86 ret = ioctl(fd_mntns, NS_MNT_GET_INFO, &info); in main() 91 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 96 info.mnt_ns_id, list, LISTMNT_BUFFER, in main() 102 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 103 fd_mntns_next = ioctl(fd_mntns, NS_MNT_GET_NEXT, &info); in main() 115 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 124 stmnt = sys_statmount(last_mnt_id, info.mnt_ns_id, in main() 136 (uint64_t)last_mnt_id, (uint64_t)info.mnt_ns_id); in main()
|
| /samples/fanotify/ |
| A D | fs-monitor.c | 62 struct fanotify_event_info_header *info; in handle_notifications() local 83 off += info->len) { in handle_notifications() 84 info = (struct fanotify_event_info_header *) in handle_notifications() 87 switch (info->info_type) { in handle_notifications() 89 err = (struct fanotify_event_info_error *) info; in handle_notifications() 98 fid = (struct fanotify_event_info_fid *) info; in handle_notifications() 111 info->info_type, info->len); in handle_notifications()
|
| /samples/hidraw/ |
| A D | hid-example.c | 49 struct hidraw_devinfo info; in main() local 65 memset(&info, 0x0, sizeof(info)); in main() 102 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main() 108 info.bustype, bus_str(info.bustype)); in main() 109 printf("\tvendor: 0x%04hx\n", info.vendor); in main() 110 printf("\tproduct: 0x%04hx\n", info.product); in main()
|
| /samples/bpf/ |
| A D | xdp2skb_meta.sh | 41 function info() { function 94 info "Device set to: DEV=$DEV" >&2 105 info "Dry-run mode: enable VERBOSE and don't call TC+IP" >&2 147 info "Listing current TC ingress rules" 155 info "Listing current XDP device($device) setting" 163 info "Flush TC on device: $device" 172 info "Flush XDP on device: $device"
|
| A D | xdp_adjust_tail_user.c | 86 struct bpf_prog_info info = {}; in main() local 87 __u32 info_len = sizeof(info); in main() 187 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in main() 192 prog_id = info.id; in main()
|
| A D | test_map_in_map_user.c | 37 struct bpf_map_info info = {}; in check_map_id() local 38 uint32_t info_len = sizeof(info); in check_map_id() 41 ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id() 46 assert(id == info.id); in check_map_id()
|
| A D | xdp_sample_shared.h | 11 size_t info; member
|
| A D | xdp_tx_iptunnel_user.c | 157 struct bpf_prog_info info = {}; in main() local 158 __u32 info_len = sizeof(info); in main() 298 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in main() 303 prog_id = info.id; in main()
|
| A D | xdp_sample_user.c | 631 packets = r->info - p->info; in calc_info_pps() 975 if (info > 0) in stats_get_devmap_xmit() 976 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit() 980 info, "bulk-avg"); in stats_get_devmap_xmit() 986 if (info > 0) in stats_get_devmap_xmit() 987 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit() 992 out->xmit_cnt.bavg = info; in stats_get_devmap_xmit() 1048 if (info > 0) in stats_get_devmap_xmit_multi() 1049 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit_multi() 1092 if (info > 0) in stats_get_devmap_xmit_multi() [all …]
|
| A D | xdp_sample.bpf.c | 228 NO_TEAR_INC(rec->info); in BPF_PROG() 262 NO_TEAR_INC(rec->info); in BPF_PROG()
|
| /samples/rust/ |
| A D | rust_driver_platform.rs | 105 info: Option<&Self::IdInfo>, in probe() 111 if let Some(info) = info { in probe() 112 dev_info!(dev, "Probed with info: '{}'.\n", info.0); in probe()
|
| A D | rust_driver_pci.rs | 68 fn probe(pdev: &pci::Device<Core>, info: &Self::IdInfo) -> Result<Pin<KBox<Self>>> { in probe() 83 index: *info, in probe() 92 Self::testdev(info, bar)? in probe()
|
| /samples/watch_queue/ |
| A D | watch_test.c | 107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer() 109 len = n.n.info & WATCH_INFO_LENGTH; in consumer() 120 (n.n.info & WATCH_INFO_ID) >> in consumer()
|
| /samples/pidfd/ |
| A D | pidfd-metadata.c | 46 static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, in sys_pidfd_send_signal() argument 49 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
|
| /samples/seccomp/ |
| A D | bpf-direct.c | 62 static void emulator(int nr, siginfo_t *info, void *void_context) in emulator() argument 69 if (info->si_code != SYS_SECCOMP) in emulator()
|