|
FFmpeg
|
#include <signal.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include "checkasm/attributes.h"#include "checkasm/test.h"#include "longjmp.h"#include "stats.h"#include <stdnoreturn.h>Go to the source code of this file.
Data Structures | |
| struct | CheckasmJson |
Macros | |
| #define | COLD __attribute__((cold)) |
| #define | __has_attribute(x) |
| #define | NOINLINE __attribute__((noinline)) |
| #define | NORETURN noreturn |
| #define | ALWAYS_INLINE inline __attribute__((always_inline)) |
| #define | THREAD_LOCAL __thread |
| #define | ARRAY_SIZE(a) |
| #define | PACKED(...) |
| #define | FALLTHROUGH do {} while (0) |
| #define | COLOR_DEFAULT -1 |
| #define | COLOR_RED 31 |
| #define | COLOR_GREEN 32 |
| #define | COLOR_YELLOW 33 |
| #define | COLOR_BLUE 34 |
| #define | COLOR_MAGENTA 35 |
| #define | COLOR_CYAN 36 |
| #define | COLOR_WHITE 37 |
| #define | LOG_COLOR(...) |
| #define | LOG(...) |
Variables | |
| volatile sig_atomic_t | checkasm_interrupted |
| checkasm_jmp_buf | checkasm_context |
| CheckasmPerf | checkasm_perf |
| #define COLD __attribute__((cold)) |
Definition at line 45 of file internal.h.
Referenced by checkasm_cpu_info(), checkasm_get_jedec_vendor_name(), checkasm_getauxval(), checkasm_init_cpu(), checkasm_measure_nop_cycles(), checkasm_measure_perf_scale(), checkasm_perf_init(), checkasm_perf_init_arm(), checkasm_perf_validate_start(), checkasm_perf_validate_start_stop(), checkasm_set_signal_handlers(), checkasm_setup_fprintf(), get_brand_string(), jvcmp(), print_info(), and should_use_color().
| #define __has_attribute | ( | x | ) |
Definition at line 51 of file internal.h.
| #define NOINLINE __attribute__((noinline)) |
Definition at line 59 of file internal.h.
Referenced by checkasm_noop().
| #define NORETURN noreturn |
Definition at line 66 of file internal.h.
Referenced by checkasm_fail_abort().
| #define ALWAYS_INLINE inline __attribute__((always_inline)) |
Definition at line 72 of file internal.h.
Referenced by gettime_nsec(), rotl(), and xoshiro128pp().
| #define THREAD_LOCAL __thread |
Definition at line 76 of file internal.h.
| #define ARRAY_SIZE | ( | a | ) |
Definition at line 81 of file internal.h.
Referenced by checkasm_get_jedec_vendor_name(), checkasm_measure_nop_cycles(), and checkasm_measure_perf_scale().
| #define PACKED | ( | ... | ) |
Definition at line 86 of file internal.h.
| #define FALLTHROUGH do {} while (0) |
Definition at line 92 of file internal.h.
Referenced by print_bench_header().
| #define COLOR_DEFAULT -1 |
Definition at line 101 of file internal.h.
Referenced by print_bench_iter().
| #define COLOR_RED 31 |
Definition at line 102 of file internal.h.
Referenced by checkasm_list_cpu_flags(), checkasm_report(), fail_internal(), print_bench_iter(), and print_summary().
| #define COLOR_GREEN 32 |
Definition at line 103 of file internal.h.
Referenced by checkasm_list_cpu_flags(), checkasm_report(), print_bench_header(), and print_bench_iter().
| #define COLOR_YELLOW 33 |
Definition at line 104 of file internal.h.
Referenced by print_bench_header(), print_bench_iter(), print_cpu_name(), print_info(), and print_summary().
| #define COLOR_BLUE 34 |
Definition at line 105 of file internal.h.
Referenced by print_summary().
| #define COLOR_MAGENTA 35 |
Definition at line 106 of file internal.h.
| #define COLOR_CYAN 36 |
Definition at line 107 of file internal.h.
| #define COLOR_WHITE 37 |
Definition at line 108 of file internal.h.
| #define LOG_COLOR | ( | ... | ) |
Definition at line 125 of file internal.h.
Referenced by checkasm_report(), fail_internal(), print_cpu_name(), print_info(), and print_summary().
| #define LOG | ( | ... | ) |
Definition at line 126 of file internal.h.
Referenced by acalc_magnitudes(), calc_channel_magnitudes(), checkasm_main(), checkasm_report(), checkasm_run(), draw_legend(), fade_gain(), fail_internal(), filter_frame(), filter_frame(), get_iscale(), get_scale(), print_info(), print_summary(), read16_fft_bin(), read8_fft_bin(), and set_cpu_affinity().
| void checkasm_srand | ( | unsigned | seed | ) |
Definition at line 229 of file utils.c.
Referenced by check_cpu_flag(), checkasm_check_key(), and run_all_tests().
| NORETURN void checkasm_fail_abort | ( | const char * | msg, |
| ... ) |
| void checkasm_setup_fprintf | ( | void | ) |
Definition at line 544 of file utils.c.
Referenced by checkasm_list_cpu_flags(), and checkasm_run().
| int checkasm_vfprintf | ( | FILE *const | f, |
| int | color, | ||
| const char * | fmt, | ||
| va_list | arg ) |
Referenced by checkasm_fprintf(), and checkasm_vfprintf().
|
inlinestatic |
Definition at line 116 of file internal.h.
Referenced by checkasm_fprintf(), checkasm_list_cpu_flags(), print_bench_header(), and print_bench_iter().
| void checkasm_statusline | ( | const char * | status | ) |
Definition at line 501 of file utils.c.
Referenced by print_summary(), and update_statusline().
| void checkasm_json | ( | CheckasmJson * | json, |
| const char * | key, | ||
| const char * | fmt, | ||
| ... ) |
Referenced by json_measurement(), json_var(), print_bench_footer(), and print_bench_header().
| void void checkasm_json_str | ( | CheckasmJson * | json, |
| const char * | key, | ||
| const char * | str ) |
Definition at line 586 of file utils.c.
Referenced by checkasm_json(), cpu_info_json(), cpu_mask_json(), json_var(), print_bench_header(), and print_bench_iter().
| void checkasm_json_push | ( | CheckasmJson * | json, |
| const char *const | key, | ||
| char | type ) |
Definition at line 611 of file utils.c.
Referenced by checkasm_json(), cpu_mask_json(), json_measurement(), json_var(), print_bench_header(), and print_bench_iter().
| void checkasm_json_pop | ( | CheckasmJson * | json, |
| char | type ) |
Definition at line 627 of file utils.c.
Referenced by checkasm_json(), cpu_mask_json(), json_measurement(), json_var(), print_bench_footer(), print_bench_header(), and print_bench_iter().
| void checkasm_set_signal_handlers | ( | void | ) |
Definition at line 132 of file signal.c.
Referenced by checkasm_json(), and checkasm_run().
| const char * checkasm_get_last_signal_desc | ( | void | ) |
Definition at line 167 of file signal.c.
Referenced by check_cpu_flag(), and checkasm_json().
| int checkasm_perf_init | ( | void | ) |
Definition at line 59 of file perf.c.
Referenced by checkasm_json(), and checkasm_run().
| int checkasm_perf_init_linux | ( | CheckasmPerf * | perf | ) |
Referenced by checkasm_perf_init(), and checkasm_perf_init_linux().
| int checkasm_perf_init_macos | ( | CheckasmPerf * | perf | ) |
Referenced by checkasm_perf_init(), and checkasm_perf_init_macos().
| int checkasm_perf_init_arm | ( | CheckasmPerf * | perf | ) |
Definition at line 148 of file arm.c.
Referenced by checkasm_perf_init(), and checkasm_perf_init_macos().
| int checkasm_perf_validate_start | ( | const CheckasmPerf * | perf | ) |
Definition at line 128 of file perf.c.
Referenced by checkasm_perf_init(), and checkasm_perf_init_macos().
| int checkasm_perf_validate_start_stop | ( | const CheckasmPerf * | perf | ) |
Definition at line 150 of file perf.c.
Referenced by checkasm_perf_init_macos().
| int checkasm_run_on_all_cores | ( | void(* | func )(void) | ) |
Definition at line 625 of file checkasm.c.
Referenced by checkasm_perf_init(), and checkasm_perf_init_macos().
| uint64_t checkasm_gettime_nsec | ( | void | ) |
Definition at line 107 of file utils.c.
Referenced by checkasm_measure_perf_scale(), checkasm_perf_init(), checkasm_perf_init_macos(), checkasm_perf_validate_start(), and checkasm_perf_validate_start_stop().
| uint64_t checkasm_gettime_nsec_diff | ( | uint64_t | t | ) |
Definition at line 112 of file utils.c.
Referenced by checkasm_measure_perf_scale(), checkasm_perf_init(), checkasm_perf_init_macos(), checkasm_perf_validate_start(), and checkasm_perf_validate_start_stop().
| unsigned checkasm_seed | ( | void | ) |
Definition at line 117 of file utils.c.
Referenced by checkasm_perf_init_macos(), and checkasm_run().
| void checkasm_noop | ( | void * | ptr | ) |
Definition at line 63 of file utils.c.
Referenced by checkasm_measure_nop_cycles(), checkasm_measure_perf_scale(), checkasm_perf_init_macos(), and checkasm_perf_validate_start_stop().
| void checkasm_measure_nop_cycles | ( | CheckasmMeasurement * | meas, |
| uint64_t | target_cycles ) |
Definition at line 176 of file perf.c.
Referenced by check_cpu_flag(), checkasm_perf_init_macos(), and checkasm_run().
| void checkasm_measure_perf_scale | ( | CheckasmMeasurement * | meas | ) |
Definition at line 209 of file perf.c.
Referenced by check_cpu_flag(), checkasm_perf_init_macos(), and checkasm_run().
|
inlinestatic |
Definition at line 177 of file internal.h.
Referenced by average_slice16(), average_slice8(), blackdetect_vulkan_filter_frame(), blend_slice_packed_rgb(), checkasm_report(), colorcorrect_slice16(), colorcorrect_slice8(), do_hsvkey_pixel(), filter_frame(), find_next_delta_ts(), get_xoutput(), imax(), lup_decompose(), median_16(), median_8(), minmax_slice16(), minmax_slice8(), monochrome_slice16(), monochrome_slice8(), and print_bench_iter().
|
inlinestatic |
Definition at line 182 of file internal.h.
Referenced by filter_frame().
|
inlinestatic |
Definition at line 187 of file internal.h.
Referenced by checkasm_mallocz(), and checkasm_strdup().
|
inlinestatic |
Definition at line 197 of file internal.h.
Referenced by checkasm_check_key(), checkasm_vasprintf(), and func_get().
|
inlinestatic |
Definition at line 202 of file internal.h.
Referenced by checkasm_report().
| char * checkasm_vasprintf | ( | const char * | fmt, |
| va_list | arg ) |
Definition at line 853 of file utils.c.
Referenced by checkasm_set_func_variant().
|
extern |
Definition at line 50 of file signal.c.
Referenced by checkasm_bench_func(), checkasm_bench_runs(), checkasm_check_key(), checkasm_json(), handle_interrupt(), and interrupt_handler().
|
extern |
Definition at line 46 of file signal.c.
Referenced by check_cpu_flag(), checkasm_fail_abort(), checkasm_json(), checkasm_perf_init(), interrupt_handler(), and signal_handler().
|
extern |
Definition at line 52 of file perf.c.
Referenced by checkasm_get_perf(), checkasm_json(), checkasm_measure_nop_cycles(), checkasm_measure_perf_scale(), checkasm_perf_init(), checkasm_run(), print_bench_header(), print_bench_iter(), and print_info().