Lines Matching refs:printf
152 printf("%s %zux%zu bytes took %.06f seconds (%f MB/s)\n", in printIter()
157 printf(" %s %zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", in printSummary()
186 printf("%s %zux%zux%zu bytes took %.06f seconds (%f MB/s)\n", in printColdIter()
193 printf(" %s %zux%zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", in printColdSummary()
252 printf("%s: Chosen options lead to no copies, aborting.\n", name); \
385 printf("sleep(%d) took %.06f seconds\n", delay, avg);, in benchmarkSleep()
386 … printf(" sleep(%d) average %.06f seconds std dev %f min %.06f seconds max %0.6f seconds\n", \ in benchmarkSleep()
472 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmp()
489 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmpCold()
501 printf("%s failed, expected %zu, got %zu\n", name, size, real_size); \ in benchmarkStrlen()
518 printf("%s failed, expected %zu, got %zu\n", name, size, real_size); \ in benchmarkStrlenCold()
529 printf("%s requires --dst_str_size to be set to a non-zero value.\n", in benchmarkStrcat()
546 printf("%s requires --dst_str_size to be set to a non-zero value.\n", in benchmarkStrcatCold()
609 printf("Usage:\n"); in usage()
610 printf(" micro_bench [--data_size DATA_BYTES] [--print_average]\n"); in usage()
611 printf(" [--no_print_each_iter] [--lock_to_cpu CORE]\n"); in usage()
612 printf(" [--src_align ALIGN] [--src_or_mask OR_MASK]\n"); in usage()
613 printf(" [--dst_align ALIGN] [--dst_or_mask OR_MASK]\n"); in usage()
614 printf(" [--dst_str_size SIZE] [--cold_data_size DATA_BYTES]\n"); in usage()
615 printf(" [--cold_stride_size SIZE]\n"); in usage()
616 printf(" --data_size DATA_BYTES\n"); in usage()
617 printf(" For the data benchmarks (memcpy/memset/memread) the approximate\n"); in usage()
618 printf(" size of data, in bytes, that will be manipulated in each iteration.\n"); in usage()
619 printf(" --print_average\n"); in usage()
620 printf(" Print the average and standard deviation of all iterations.\n"); in usage()
621 printf(" --no_print_each_iter\n"); in usage()
622 printf(" Do not print any values in each iteration.\n"); in usage()
623 printf(" --lock_to_cpu CORE\n"); in usage()
624 printf(" Lock to the specified CORE. The default is to use the last core found.\n"); in usage()
625 printf(" --dst_align ALIGN\n"); in usage()
626 printf(" If the command supports it, align the destination pointer to ALIGN.\n"); in usage()
627 printf(" The default is to use the value returned by malloc.\n"); in usage()
628 printf(" --dst_or_mask OR_MASK\n"); in usage()
629 printf(" If the command supports it, or in the OR_MASK on to the destination pointer.\n"); in usage()
630 printf(" The OR_MASK must be smaller than the dst_align value.\n"); in usage()
631 printf(" The default value is 0.\n"); in usage()
633 printf(" --src_align ALIGN\n"); in usage()
634 …printf(" If the command supports it, align the source pointer to ALIGN. The default is to use… in usage()
635 printf(" value returned by malloc.\n"); in usage()
636 printf(" --src_or_mask OR_MASK\n"); in usage()
637 printf(" If the command supports it, or in the OR_MASK on to the source pointer.\n"); in usage()
638 printf(" The OR_MASK must be smaller than the src_align value.\n"); in usage()
639 printf(" The default value is 0.\n"); in usage()
640 printf(" --dst_str_size SIZE\n"); in usage()
641 printf(" If the command supports it, create a destination string of this length.\n"); in usage()
642 printf(" The default is to not update the destination string.\n"); in usage()
643 printf(" --cold_data_size DATA_SIZE\n"); in usage()
644 printf(" For _cold benchmarks, use this as the total amount of memory to use.\n"); in usage()
645 …printf(" The default is 128MB, and the number should be larger than the cache on the chip.\n"… in usage()
646 printf(" This value is specified in bytes.\n"); in usage()
647 printf(" --cold_stride_size SIZE\n"); in usage()
648 printf(" For _cold benchmarks, use this as the minimum stride between iterations.\n"); in usage()
649 …printf(" The default is 4096 bytes and the number should be larger than the amount of data\n"… in usage()
650 printf(" pulled in to the cache by each run of the benchmark.\n"); in usage()
651 printf(" ITERS\n"); in usage()
652 printf(" The number of iterations to execute each benchmark. If not\n"); in usage()
653 printf(" passed in then run forever.\n"); in usage()
654 printf(" micro_bench cpu UNUSED [ITERS]\n"); in usage()
655 printf(" micro_bench [--dst_align ALIGN] [--dst_or_mask OR_MASK] memcpy NUM_BYTES [ITERS]\n"); in usage()
656 printf(" micro_bench memread NUM_BYTES [ITERS]\n"); in usage()
657 printf(" micro_bench [--dst_align ALIGN] [--dst_or_mask OR_MASK] memset NUM_BYTES [ITERS]\n"); in usage()
658 printf(" micro_bench sleep TIME_TO_SLEEP [ITERS]\n"); in usage()
659 printf(" TIME_TO_SLEEP\n"); in usage()
660 printf(" The time in seconds to sleep.\n"); in usage()
661 …printf(" micro_bench [--src_align ALIGN] [--src_or_mask OR_MASK] [--dst_align ALIGN] [--dst_or_ma… in usage()
662 …printf(" micro_bench [--src_align ALIGN] [--src_or_mask OR_MASK] [--dst_align ALIGN] [--dst_or_ma… in usage()
663 …printf(" micro_bench [--src_align ALIGN] [--src_or_mask OR_MASK] [--dst_align ALIGN] [--dst_or_ma… in usage()
664 printf(" micro_bench [--dst_align ALIGN] [--dst_or_mask OR_MASK] strlen NUM_BYTES [ITERS]\n"); in usage()
665 printf("\n"); in usage()
666 printf(" In addition, memcpy/memcpy/memset/strcat/strcpy/strlen have _cold versions\n"); in usage()
667 printf(" that will execute the function on a buffer not in the cache.\n"); in usage()
716 printf("Unknown option %s\n", argv[i]); in processOptions()
725 printf("The option %s requires one argument.\n", in processOptions()
739 printf("Uknown command %s\n", argv[i]); in processOptions()
743 printf("More than %d number arguments passed in.\n", MAX_ARGS); in processOptions()
752 printf("Not enough arguments passed in.\n"); in processOptions()
755 printf("The --dst_align option must be greater than or equal to 0.\n"); in processOptions()
758 printf("The --src_align option must be greater than or equal to 0.\n"); in processOptions()
761 printf("The --data_size option must be a positive number.\n"); in processOptions()
764 printf("The --dst_align option must be a power of 2.\n"); in processOptions()
767 printf("The --src_align option must be a power of 2.\n"); in processOptions()
770 printf("The --src_or_mask option requires that --src_align be set.\n"); in processOptions()
773 printf("The --dst_or_mask option requires that --dst_align be set.\n"); in processOptions()
776 printf("The value of --src_or_mask cannot be larger that --src_align.\n"); in processOptions()
779 printf("The value of --src_or_mask cannot be larger that --src_align.\n"); in processOptions()
808 printf("Cpu %d does not exist.\n", cpu_to_lock); in raisePriorityAndLock()
813 printf("Cannot find any valid cpu to lock.\n"); in raisePriorityAndLock()
840 printf("%s\n", command->name); in main()