Home
last modified time | relevance | path

Searched refs:test_result (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dskb_load_bytes.c9 int err, prog_fd, test_result; in test_skb_load_bytes() local
31 test_result = skel->bss->test_result; in test_skb_load_bytes()
32 if (!ASSERT_EQ(test_result, -EFAULT, "offset -1")) in test_skb_load_bytes()
39 test_result = skel->bss->test_result; in test_skb_load_bytes()
40 if (!ASSERT_EQ(test_result, 0, "offset 10")) in test_skb_load_bytes()
H A Dload_bytes_relative.c16 struct bpf_map *test_result; in test_load_bytes_relative() local
35 test_result = bpf_object__find_map_by_name(obj, "test_result"); in test_load_bytes_relative()
36 if (CHECK_FAIL(!test_result)) in test_load_bytes_relative()
39 map_fd = bpf_map__fd(test_result); in test_load_bytes_relative()
H A Dxdp_context_test_run.c165 err = bpf_map__lookup_elem(skel->maps.test_result, &map_key, in assert_test_result()
168 if (!ASSERT_OK(err, "lookup test_result")) in assert_test_result()
172 "test_result map contains test payload"); in assert_test_result()
/linux/tools/testing/selftests/net/
H A Dunicast_extensions.sh119 test_result=0
120 _do_segmenttest "$@" || test_result=1
128 [ -n "$expect_failure" ] && test_result=`expr 1 - $test_result`
130 show_result $test_result "$4"
144 test_result=0
145 _do_route_test "$@" || test_result=1
155 [ -n "$expect_failure" ] && test_result=`expr 1 - $test_result`
156 show_result $test_result "
[all...]
/linux/tools/perf/tests/
H A Ddlfilter-test.c59 static int test_result(const char *msg, int ret) in test_result() function
195 return test_result("perf_event__synthesize_sample() failed", TEST_FAIL); in write_sample()
199 return test_result("Failed to write sample", TEST_FAIL); in write_sample()
330 return test_result("dlfilters not found", TEST_SKIP); in test__dlfilter_test()
333 return test_result("Failed to get expected filter description", TEST_FAIL); in test__dlfilter_test()
336 return test_result("gcc not found", TEST_SKIP); in test__dlfilter_test()
341 return test_result("Failed to write test C file", TEST_FAIL); in test__dlfilter_test()
353 return test_result("Failed to find program symbols", TEST_FAIL); in test__dlfilter_test()
361 return test_result("Failed to create test perf.data file", TEST_FAIL); in test__dlfilter_test()
365 err = test_result("perf_header__write_pip in test__dlfilter_test()
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dskb_load_bytes.c9 int test_result = 0; variable
16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10); in skb_process()
H A Dfexit_bpf2bpf_simple.c11 __u64 test_result = 0; variable
24 test_result = 1; in BPF_PROG()
H A Dload_bytes_relative.c18 } test_result SEC(".maps");
45 bpf_map_update_elem(&test_result, &map_key, &test_passed, BPF_ANY); in load_bytes_relative()
H A Dtest_xdp_meta.c24 } test_result SEC(".maps");
38 bpf_map_update_elem(&test_result, &key, data_meta, BPF_ANY); in ing_cls()
H A Dfexit_bpf2bpf.c16 __u64 test_result = 0; variable
27 test_result = 1; in BPF_PROG()
/linux/tools/testing/selftests/media_tests/
H A Dvideo_device_test.c122 int test_result; in main() local
149 test_result = priority_test(fd); in main()
150 if (!test_result) in main()
/linux/lib/
H A Dtest_firmware.c72 * @test_result: a test may use this to collect the result from the call
117 int test_result; member
238 test_fw_config->test_result = 0; in __test_firmware_config_init()
862 test_fw_config->test_result = -EINVAL; in test_fw_run_batch_request()
901 if (!test_fw_config->test_result) in test_fw_run_batch_request()
902 test_fw_config->test_result = req->rc; in test_fw_run_batch_request()
984 test_fw_config->test_result = rc; in trigger_batched_requests_store()
1001 test_fw_config->test_result = -EINVAL; in trigger_batched_cb()
1017 if (!fw && !test_fw_config->test_result) in trigger_batched_cb()
1018 test_fw_config->test_result in trigger_batched_cb()
[all...]
H A Dtest_kmod.c83 int test_result; member
313 config->test_result = err_ret; in tally_up_work()
543 config->test_result); in trigger_config_run()
548 * then userspace must just check the result of config->test_result. in trigger_config_run()
823 config->test_result = 0; in __kmod_config_init()
982 &config->test_result); in test_result_store()
1039 return test_dev_config_show_int(test_dev, buf, config->test_result); in test_result_show()
1041 static DEVICE_ATTR_RW(test_result);
1054 TEST_KMOD_DEV_ATTR(test_result),
/linux/tools/testing/selftests/arm64/signal/
H A Dtest_signals.c38 test_result(current); in main()
H A Dtest_signals_utils.c410 void test_result(struct tdescr *td) in test_result() function
/linux/lib/kunit/
H A Dattributes.c404 bool suite_result, test_result, default_result, result; in kunit_filter_attr_tests() local
435 test_result = filter.attr->filter(filter.attr->get_attr(test_case, true), in kunit_filter_attr_tests()
447 if (test_result) in kunit_filter_attr_tests()
/linux/tools/testing/selftests/devices/probe/
H A Dtest_discoverable_devices.py200 ksft.test_result(os.path.isdir(driver_link), test_name)
204 ksft.test_result(os.path.isdir(driver_link), test_name)
263 ksft.test_result(
/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c1040 struct test_result { struct
1048 struct test_result *rbestslottime, in test_loop() argument
1049 struct test_result *rbestruntime) in test_loop()
1052 struct test_result result = {}; in test_loop()
1107 struct test_result rbestslottime = {}; in main()
1119 struct test_result rbestruntime = {}; in main()
/linux/tools/testing/selftests/kselftest/
H A Dksft.py68 def test_result(condition, description=""): function
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.h272 s32 test_result; member
H A Dfm10k_ethtool.c895 mbx->test_result = FM10K_NOT_IMPLEMENTED; in fm10k_mbx_test()
911 err = mbx->test_result; in fm10k_mbx_test()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_dp_test.c179 u8 test_result = DP_TEST_ACK; in intel_dp_autotest_edid() local
211 test_result = DP_TEST_ACK | DP_TEST_EDID_CHECKSUM_WRITE; in intel_dp_autotest_edid()
218 return test_result; in intel_dp_autotest_edid()
/linux/tools/testing/selftests/kmod/
H A Dkmod.sh254 cat $DIR/test_result
/linux/tools/testing/kunit/
H A Dkunit.py198 _, test_result = parse_tests(request, metadata, run_result)
205 test_counts.add_subtest_counts(test_result.counts)
/linux/drivers/scsi/qla4xxx/
H A Dql4_83xx.c699 * value read ANDed with test_mask is equal to test_result.
705 * @test_result : Compare (value&test_mask) with test_result.
709 uint32_t test_result) in qla4_83xx_poll_reg() argument
721 if ((value & test_mask) != test_result) { in qla4_83xx_poll_reg()
738 __func__, value, test_mask, test_result); in qla4_83xx_poll_reg()

12