Lines Matching +full:cs +full:- +full:0

9  * unittest.cfg for micro-bench, allowing a client program to get the
15 * Author: Shih-Wei Li <shihwei@cs.columbia.edu>
16 * Author: Christoffer Dall <cdall@cs.columbia.edu>
24 #include <asm/gic-v3-its.h>
27 #define QEMU_MMIO_ADDR 0x0a000008
102 while (!irq_ready && tries--) in gic_prep_common()
124 nr_ipi_received = 0; in ipi_prep()
148 nr_ipi_received = 0; in ipi_hw_prep()
161 while (!irq_received && tries--) in ipi_exec()
196 static int received = 0; in lpi_exec()
203 while (!irq_received && tries--) in lpi_exec()
231 static int received = 0; in timer_exec()
241 while (!irq_received && tries--) in timer_exec()
257 *total_ticks -= ntimes * (cntfrq / 100); in timer_post()
262 asm volatile("mov w0, #0x4b000000; hvc #0" ::: "w0"); in hvc_exec()
271 * exits to userspace. Ideally, the test-dev would provide us this in mmio_read_user_prep()
273 * use a virtio-mmio transport address. FIXME2: We should be getting in mmio_read_user_prep()
274 * this address (and the future test-dev address) from the devicetree, in mmio_read_user_prep()
331 ns_time->ns = ps / 1000; in ticks_to_ns_time()
332 ns_time->ns_frac = (ps % 1000) / 100; in ticks_to_ns_time()
337 uint64_t start, end, total_ticks, ntimes = 0; in loop_test()
340 total_ticks = 0; in loop_test()
341 if (test->prep) { in loop_test()
342 if(!test->prep()) { in loop_test()
343 printf("%s test skipped\n", test->name); in loop_test()
352 while (ntimes < test->times) { in loop_test()
353 test->exec(); in loop_test()
361 total_ticks = end - start; in loop_test()
364 if (test->post) { in loop_test()
365 test->post(ntimes, &total_ticks); in loop_test()
372 printf("%-30s%15" PRId64 ".%-15" PRId64 "%15" PRId64 ".%-15" PRId64 "\n", in loop_test()
373 test->name, total_ns.ns, total_ns.ns_frac, avg_ns.ns, avg_ns.ns_frac); in loop_test()
383 if (len == -1) in parse_args()
386 if (strncmp(argv[i], "mmio-addr", len) == 0) { in parse_args()
388 report_info("found mmio_addr=0x%lx", mmio_addr); in parse_args()
402 printf("\n%-30s%18s%13s%18s%13s\n", "name", "total ns", "", "avg ns", ""); in main()
403 for (i = 0 ; i < 92; ++i) in main()
404 printf("%c", '-'); in main()
406 for (i = 0; i < ARRAY_SIZE(tests); i++) { in main()
413 return 0; in main()