MCPcopy Create free account
hub / github.com/F-Stack/f-stack / interrupt_testsuite_setup

Function interrupt_testsuite_setup

dpdk/app/test-bbdev/test_bbdev_perf.c:1017–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1015}
1016
1017static int
1018interrupt_testsuite_setup(void)
1019{
1020 TEST_ASSERT_SUCCESS(read_test_vector(), "Test suite setup failed\n");
1021
1022 /* Enable interrupts */
1023 intr_enabled = true;
1024
1025 /* Special case for NULL device (RTE_BBDEV_OP_NONE) */
1026 if (populate_active_devices() == 0 ||
1027 test_vector.op_type == RTE_BBDEV_OP_NONE) {
1028 intr_enabled = false;
1029 printf("No suitable devices found!\n");
1030 return TEST_SKIPPED;
1031 }
1032
1033 return TEST_SUCCESS;
1034}
1035
1036static void
1037testsuite_teardown(void)

Callers

nothing calls this directly

Calls 3

read_test_vectorFunction · 0.85
populate_active_devicesFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected