Searched refs:expected_val (Results 1 – 6 of 6) sorted by relevance
| /tools/testing/selftests/alsa/ |
| A D | mixer-test.c | 524 snd_ctl_elem_value_t *expected_val) in show_mismatch() argument 537 expected_int = snd_ctl_elem_value_get_boolean(expected_val, in show_mismatch() 543 expected_int = snd_ctl_elem_value_get_integer(expected_val, in show_mismatch() 549 expected_int = snd_ctl_elem_value_get_integer64(expected_val, in show_mismatch() 556 expected_int = snd_ctl_elem_value_get_enumerated(expected_val, in show_mismatch() 589 snd_ctl_elem_value_t *expected_val) in write_and_verify() argument 604 if (expected_val) { in write_and_verify() 608 snd_ctl_elem_value_alloca(&expected_val); in write_and_verify() 609 snd_ctl_elem_value_copy(expected_val, write_val); in write_and_verify() 692 if (!snd_ctl_elem_value_compare(expected_val, read_val)) in write_and_verify() [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | pmu_counters_test.c | 356 uint64_t expected_val) in guest_test_rdpmc() argument 364 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc() 372 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc() 400 const uint64_t expected_val = expect_success ? test_val : 0; in guest_rd_wr_counters() local 415 GUEST_ASSERT_PMC_VALUE(RDMSR, msr, val, expected_val); in guest_rd_wr_counters() 425 guest_test_rdpmc(rdpmc_idx, expect_success, expected_val); in guest_rd_wr_counters()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | unpriv_bpf_disabled.c | 106 __u32 expected_val = 1; in test_unpriv_bpf_disabled_positive() local 114 vals[j] = expected_val; in test_unpriv_bpf_disabled_positive() 120 expected_val = prog_id; in test_unpriv_bpf_disabled_positive() 124 ASSERT_EQ(lookup_vals[0], expected_val, "map_lookup_elem_values"); in test_unpriv_bpf_disabled_positive()
|
| A D | bpf_iter.c | 849 __u64 val, expected_val = 0; in test_bpf_hash_map() local 891 expected_val += val; in test_bpf_hash_map() 924 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_hash_map() 942 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local 976 expected_val += i + j; in test_bpf_percpu_hash_map() 1021 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local 1039 expected_val += val; in test_bpf_array_map() 1122 __u32 expected_key = 0, expected_val = 0; in test_bpf_percpu_array_map() local 1150 expected_val += i + j; in test_bpf_percpu_array_map() 1327 __u32 val, expected_val = 0; in test_bpf_sk_storage_map() local [all …]
|
| A D | btf_dump.c | 341 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument 372 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data() 892 const char *expected_val) in btf_dump_one_string() argument 904 if (!ASSERT_STREQ(ctx->str, expected_val, "ensure expected/actual match")) in btf_dump_one_string() 999 const char *name, const char *expected_val, in test_btf_datasec() argument 1020 cmp = strcmp(str, expected_val); in test_btf_datasec()
|
| /tools/testing/selftests/bpf/ |
| A D | test_verifier.c | 1253 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument 1293 if (topts.retval != expected_val && expected_val != POINTER_VALUE) { in do_prog_test_run() 1294 printf("FAIL retval %d != %d ", topts.retval, expected_val); in do_prog_test_run() 1672 uint32_t expected_val; in do_test_single() local 1680 expected_val = test->retvals[i].retval_unpriv; in do_test_single() 1682 expected_val = test->retvals[i].retval; in do_test_single() 1684 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
|
Completed in 19 milliseconds