/samples/bpf/ |
D | xdp_sample_user.h | 34 int __sample_init(int mask); 42 const char *doc, int mask, bool error); 83 static int sample_init(struct name *skel, int mask) \ 86 ret = __sample_init(mask); \ 89 if (mask & SAMPLE_REDIRECT_MAP_CNT) \ 91 if (mask & SAMPLE_REDIRECT_CNT) \ 93 if (mask & SAMPLE_REDIRECT_ERR_MAP_CNT) \ 95 if (mask & SAMPLE_REDIRECT_ERR_CNT) \ 97 if (mask & SAMPLE_CPUMAP_ENQUEUE_CNT) \ 99 if (mask & SAMPLE_CPUMAP_KTHREAD_CNT) \ [all …]
|
D | xdp_redirect_user.c | 28 static int mask = SAMPLE_RX_CNT | SAMPLE_REDIRECT_ERR_CNT | variable 61 mask &= ~(SAMPLE_DEVMAP_XMIT_CNT | in main() 74 mask |= SAMPLE_REDIRECT_CNT; in main() 79 sample_usage(argv, long_options, __doc__, mask, error); in main() 85 sample_usage(argv, long_options, __doc__, mask, true); in main() 99 sample_usage(argv, long_options, __doc__, mask, true); in main() 128 ret = sample_init(skel, mask); in main()
|
D | xdp_monitor_user.c | 31 static int mask = SAMPLE_REDIRECT_ERR_CNT | SAMPLE_CPUMAP_ENQUEUE_CNT | variable 60 mask |= SAMPLE_REDIRECT_CNT; in main() 71 sample_usage(argv, long_options, __doc__, mask, error); in main() 98 ret = sample_init(skel, mask); in main()
|
D | xdp_redirect_map_user.c | 27 static int mask = SAMPLE_RX_CNT | SAMPLE_REDIRECT_ERR_MAP_CNT | variable 68 mask &= ~(SAMPLE_DEVMAP_XMIT_CNT | in main() 84 mask |= SAMPLE_REDIRECT_MAP_CNT; in main() 89 sample_usage(argv, long_options, __doc__, mask, error); in main() 95 sample_usage(argv, long_options, __doc__, mask, true); in main() 109 sample_usage(argv, long_options, __doc__, mask, true); in main() 150 ret = sample_init(skel, mask); in main()
|
D | xdp_redirect_map_multi_user.c | 33 static int mask = SAMPLE_RX_CNT | SAMPLE_REDIRECT_ERR_MAP_CNT | variable 101 mask &= ~(SAMPLE_DEVMAP_XMIT_CNT | in main() 117 mask |= SAMPLE_REDIRECT_MAP_CNT; in main() 122 sample_usage(argv, long_options, __doc__, mask, error); in main() 128 sample_usage(argv, long_options, __doc__, mask, error); in main() 154 sample_usage(argv, long_options, __doc__, mask, true); in main() 179 ret = sample_init(skel, mask); in main()
|
D | xdp_redirect_cpu_user.c | 42 static int mask = SAMPLE_RX_CNT | SAMPLE_REDIRECT_ERR_MAP_CNT | variable 82 const char *doc, int mask, bool error, struct bpf_object *obj) in usage() argument 84 sample_usage(argv, long_options, doc, mask, error); in usage() 392 usage(argv, long_options, __doc__, mask, true, skel->obj); in main() 401 usage(argv, long_options, __doc__, mask, true, skel->obj); in main() 406 mask |= SAMPLE_REDIRECT_MAP_CNT; in main() 439 mask |= SAMPLE_DEVMAP_XMIT_CNT_MULTI; in main() 451 usage(argv, long_options, __doc__, mask, true, skel->obj); in main() 468 usage(argv, long_options, __doc__, mask, error, skel->obj); in main() 476 usage(argv, long_options, __doc__, mask, true, skel->obj); in main() [all …]
|
D | xdp_sample_user.c | 213 static void sample_print_help(int mask) in sample_print_help() argument 227 if (mask & SAMPLE_RX_CNT) { in sample_print_help() 235 if (mask & (SAMPLE_REDIRECT_CNT | SAMPLE_REDIRECT_ERR_CNT)) { in sample_print_help() 251 if (mask & SAMPLE_CPUMAP_ENQUEUE_CNT) { in sample_print_help() 261 if (mask & SAMPLE_CPUMAP_KTHREAD_CNT) { in sample_print_help() 275 if (mask & SAMPLE_EXCEPTION_CNT) { in sample_print_help() 283 if (mask & SAMPLE_DEVMAP_XMIT_CNT) { in sample_print_help() 296 const char *doc, int mask, bool error) in sample_usage() argument 301 sample_print_help(mask); in sample_usage() 1103 static void stats_print(const char *prefix, int mask, struct stats_record *r, in stats_print() argument [all …]
|
/samples/vfs/ |
D | test-statx.c | 43 unsigned int mask, struct statx *buffer) in statx() argument 45 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in statx() 221 unsigned int mask = STATX_BASIC_STATS | STATX_BTIME; in main() local 239 mask &= ~STATX_BASIC_STATS; in main() 252 ret = statx(AT_FDCWD, *argv, atflag, mask, &stx); in main()
|
/samples/seccomp/ |
D | bpf-direct.c | 93 sigset_t mask; in install_emulator() local 95 sigemptyset(&mask); in install_emulator() 96 sigaddset(&mask, SIGSYS); in install_emulator() 104 if (sigprocmask(SIG_UNBLOCK, &mask, NULL)) { in install_emulator()
|
/samples/trace_events/ |
D | trace-events-sample.h | 259 const char *string, const struct cpumask *mask), 261 TP_ARGS(foo, bar, lst, string, mask), 277 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
|
/samples/vfio-mdev/ |
D | mdpy-fb.c | 65 u32 value, mask; in mdpy_fb_setcolreg() local 74 mask = (1 << info->var.transp.length) - 1; in mdpy_fb_setcolreg() 75 mask <<= info->var.transp.offset; in mdpy_fb_setcolreg() 76 value |= mask; in mdpy_fb_setcolreg()
|