/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 33 int retval; in TEST() local 41 retval = mincore(0, 0, vec); in TEST() 42 EXPECT_EQ(0, retval); in TEST() 46 retval = mincore(NULL, page_size, vec); in TEST() 47 EXPECT_EQ(-1, retval); in TEST() 59 retval = mincore(addr + 1, page_size, vec); in TEST() 60 EXPECT_EQ(-1, retval); in TEST() 65 retval = mincore(addr, -1, vec); in TEST() 66 EXPECT_EQ(-1, retval); in TEST() 71 retval = mincore(addr, page_size, NULL); in TEST() [all …]
|
/tools/testing/selftests/bpf/verifier/ |
D | jmp32.c | 20 { .retval = 0, 23 { .retval = 2, 26 { .retval = 2, 52 { .retval = 0, 55 { .retval = 2, 58 { .retval = 2, 77 .retval = 2, 108 { .retval = 0, 111 { .retval = 2, 132 { .retval = 0, [all …]
|
D | event_output.c | 45 .retval = 1, 53 .retval = 1, 61 .retval = 1, 69 .retval = 1, 77 .retval = 1, 85 .retval = 1, 93 .retval = 1, 101 .retval = 1, 109 .retval = 1, 118 .retval = 1,
|
D | div0.c | 11 .retval = 42, 23 .retval = 42, 35 .retval = 42, 47 .retval = 42, 59 .retval = 42, 71 .retval = 42, 85 .retval = 8, 97 .retval = 0, 109 .retval = 0, 121 .retval = 0, [all …]
|
D | dead_code.c | 14 .retval = 7, 25 .retval = 7, 40 .retval = 1, 51 .retval = 7, 63 .retval = 7, 77 .retval = 7, 93 .retval = 7, 111 .retval = 7, 129 .retval = 7, 145 .retval = 2, [all …]
|
D | ld_dw.c | 8 .retval = 4090, 17 .retval = 2047, 26 .retval = 511, 35 .retval = 5, 44 .retval = 1000000 - 6,
|
D | div_overflow.c | 15 .retval = 0, 26 .retval = 0, 41 .retval = 0, 55 .retval = 0, 67 .retval = INT_MIN, 78 .retval = INT_MIN, 94 .retval = 1, 109 .retval = 1,
|
D | basic_instr.c | 14 .retval = -3, 30 .retval = 1, 40 .retval = 0, 50 .retval = -16069393, 61 .retval = 0, 72 .retval = 43724, 104 .retval = 1, 118 .retval = 1, 132 .retval = 1, 146 .retval = 1, [all …]
|
D | subreg.c | 24 .retval = 0, 50 .retval = 0, 63 .retval = 0, 83 .retval = 0, 96 .retval = 0, 116 .retval = 0, 129 .retval = 0, 149 .retval = 0, 162 .retval = 0, 182 .retval = 0, [all …]
|
D | runtime_jit.c | 12 .retval = 42, 25 .retval = 41, 38 .retval = 1, 51 .retval = 24, 73 .retval = 24, 95 .retval = 24, 117 .retval = 24, 139 .retval = 42, 164 .retval = 1, 189 .retval = 42, [all …]
|
D | masking.c | 15 .retval = 0, 31 .retval = 0, 47 .retval = 0, 63 .retval = 0, 79 .retval = 0, 95 .retval = 0, 111 .retval = 0, 127 .retval = 0, 143 .retval = 0, 159 .retval = 0, [all …]
|
D | jset.c | 34 { .retval = 2, 37 { .retval = 2, 40 { .retval = 2, 43 { .retval = 2, 46 { .retval = 2, 49 { .retval = 0, 52 { .retval = 0, 72 .retval = 2, 87 .retval = 1,
|
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_adjust_tail.c | 8 __u32 duration, retval, size, expect_sz; in test_xdp_adjust_tail_shrink() local 18 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink() 20 CHECK(err || retval != XDP_DROP, in test_xdp_adjust_tail_shrink() 22 err, errno, retval, size); in test_xdp_adjust_tail_shrink() 26 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink() 27 CHECK(err || retval != XDP_TX || size != expect_sz, in test_xdp_adjust_tail_shrink() 29 err, errno, retval, size, expect_sz); in test_xdp_adjust_tail_shrink() 38 __u32 duration, retval, size, expect_sz; in test_xdp_adjust_tail_grow() local 46 buf, &size, &retval, &duration); in test_xdp_adjust_tail_grow() 47 CHECK(err || retval != XDP_DROP, in test_xdp_adjust_tail_grow() [all …]
|
D | tailcalls.c | 15 __u32 retval, duration; in test_tailcall_1() local 58 &duration, &retval, NULL); in test_tailcall_1() 59 CHECK(err || retval != i, "tailcall", in test_tailcall_1() 60 "err %d errno %d retval %d\n", err, errno, retval); in test_tailcall_1() 68 &duration, &retval, NULL); in test_tailcall_1() 69 CHECK(err || retval != 3, "tailcall", "err %d errno %d retval %d\n", in test_tailcall_1() 70 err, errno, retval); in test_tailcall_1() 89 &duration, &retval, NULL); in test_tailcall_1() 90 CHECK(err || retval != 0, "tailcall", "err %d errno %d retval %d\n", in test_tailcall_1() 91 err, errno, retval); in test_tailcall_1() [all …]
|
D | pkt_access.c | 9 __u32 duration, retval; in test_pkt_access() local 17 NULL, NULL, &retval, &duration); in test_pkt_access() 18 CHECK(err || retval, "ipv4", in test_pkt_access() 20 err, errno, retval, duration); in test_pkt_access() 23 NULL, NULL, &retval, &duration); in test_pkt_access() 24 CHECK(err || retval, "ipv6", in test_pkt_access() 26 err, errno, retval, duration); in test_pkt_access()
|
D | xdp.c | 16 __u32 duration, retval, size; in test_xdp() local 30 buf, &size, &retval, &duration); in test_xdp() 32 CHECK(err || retval != XDP_TX || size != 74 || in test_xdp() 35 err, errno, retval, size); in test_xdp() 38 buf, &size, &retval, &duration); in test_xdp() 39 CHECK(err || retval != XDP_TX || size != 114 || in test_xdp() 42 err, errno, retval, size); in test_xdp()
|
D | pe_preserve_elems.c | 33 if (CHECK(opts.retval != 0, "bpf_perf_event_read_value", in test_one_map() 34 "failed with %d\n", opts.retval)) in test_one_map() 45 CHECK(opts.retval != 0, "bpf_perf_event_read_value", in test_one_map() 46 "failed with %d\n", opts.retval); in test_one_map() 48 CHECK(opts.retval != -ENOENT, "bpf_perf_event_read_value", in test_one_map() 50 opts.retval); in test_one_map()
|
D | queue_stack_map.c | 13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local 62 buf, &size, &retval, &duration); in test_queue_stack_map_by_type() 63 if (err || retval || size != sizeof(pkt_v4) || in test_queue_stack_map_by_type() 68 CHECK(err || retval || size != sizeof(pkt_v4) || iph->daddr != val, in test_queue_stack_map_by_type() 71 err, errno, retval, size, iph->daddr); in test_queue_stack_map_by_type() 75 buf, &size, &retval, &duration); in test_queue_stack_map_by_type() 76 CHECK(err || retval != 2 /* TC_ACT_SHOT */|| size != sizeof(pkt_v4), in test_queue_stack_map_by_type() 79 err, errno, retval, size); in test_queue_stack_map_by_type()
|
D | pkt_md_access.c | 9 __u32 duration, retval; in test_pkt_md_access() local 17 NULL, NULL, &retval, &duration); in test_pkt_md_access() 18 CHECK(err || retval, "", in test_pkt_md_access() 20 err, errno, retval, duration); in test_pkt_md_access()
|
D | xdp_perf.c | 7 __u32 duration, retval, size; in test_xdp_perf() local 17 out, &size, &retval, &duration); in test_xdp_perf() 19 CHECK(err || retval != XDP_PASS || size != 128, in test_xdp_perf() 22 err, errno, retval, size); in test_xdp_perf()
|
D | map_ptr.c | 12 __u32 duration = 0, retval; in test_map_ptr() local 21 sizeof(pkt_v4), buf, NULL, &retval, NULL); in test_map_ptr() 26 if (CHECK(!retval, "retval", "retval=%d map_type=%u line=%u\n", retval, in test_map_ptr()
|
D | xdp_noinline.c | 28 __u32 duration = 0, retval, size; in test_xdp_noinline() local 44 buf, &size, &retval, &duration); in test_xdp_noinline() 45 CHECK(err || retval != 1 || size != 54 || in test_xdp_noinline() 48 err, errno, retval, size, *magic); in test_xdp_noinline() 52 buf, &size, &retval, &duration); in test_xdp_noinline() 53 CHECK(err || retval != 1 || size != 74 || in test_xdp_noinline() 56 err, errno, retval, size, *magic); in test_xdp_noinline()
|
D | l4lb_all.c | 26 __u32 duration, retval, size; in test_l4lb() local 53 buf, &size, &retval, &duration); in test_l4lb() 54 CHECK(err || retval != 7/*TC_ACT_REDIRECT*/ || size != 54 || in test_l4lb() 57 err, errno, retval, size, *magic); in test_l4lb() 60 buf, &size, &retval, &duration); in test_l4lb() 61 CHECK(err || retval != 7/*TC_ACT_REDIRECT*/ || size != 74 || in test_l4lb() 64 err, errno, retval, size, *magic); in test_l4lb()
|
/tools/testing/selftests/timers/ |
D | rtcpie.c | 32 int i, fd, retval, irqcount = 0; in main() local 62 retval = ioctl(fd, RTC_IRQP_READ, &old_pie_rate); in main() 63 if (retval == -1) { in main() 80 retval = ioctl(fd, RTC_IRQP_SET, tmp); in main() 81 if (retval == -1) { in main() 96 retval = ioctl(fd, RTC_PIE_ON, 0); in main() 97 if (retval == -1) { in main() 105 retval = read(fd, &data, sizeof(unsigned long)); in main() 106 if (retval == -1) { in main() 127 retval = ioctl(fd, RTC_PIE_OFF, 0); in main() [all …]
|
/tools/perf/scripts/python/Perf-Trace-Util/ |
D | Context.c | 27 int retval; in perf_trace_context_common_pc() local 33 retval = common_pc(scripting_context); in perf_trace_context_common_pc() 35 return Py_BuildValue("i", retval); in perf_trace_context_common_pc() 43 int retval; in perf_trace_context_common_flags() local 49 retval = common_flags(scripting_context); in perf_trace_context_common_flags() 51 return Py_BuildValue("i", retval); in perf_trace_context_common_flags() 59 int retval; in perf_trace_context_common_lock_depth() local 65 retval = common_lock_depth(scripting_context); in perf_trace_context_common_lock_depth() 67 return Py_BuildValue("i", retval); in perf_trace_context_common_lock_depth()
|