|
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) 0 |
| #define | NOINLINE __attribute__((noinline)) |
| #define | NORETURN noreturn |
| #define | ALWAYS_INLINE inline __attribute__((always_inline)) |
| #define | THREAD_LOCAL __thread |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| #define | PACKED(...) __VA_ARGS__ __attribute__((__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 |
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.
| #define __has_attribute | ( | x | ) | 0 |
Definition at line 51 of file internal.h.
| #define NOINLINE __attribute__((noinline)) |
Definition at line 59 of file internal.h.
| #define NORETURN noreturn |
Definition at line 66 of file internal.h.
| #define ALWAYS_INLINE inline __attribute__((always_inline)) |
Definition at line 72 of file internal.h.
| #define THREAD_LOCAL __thread |
Definition at line 76 of file internal.h.
Definition at line 81 of file internal.h.
| #define PACKED | ( | ... | ) | __VA_ARGS__ __attribute__((__packed__)) |
Definition at line 86 of file internal.h.
| #define FALLTHROUGH do {} while (0) |
Definition at line 92 of file internal.h.
| #define COLOR_DEFAULT -1 |
Definition at line 101 of file internal.h.
| #define COLOR_RED 31 |
Definition at line 102 of file internal.h.
| #define COLOR_GREEN 32 |
Definition at line 103 of file internal.h.
| #define COLOR_YELLOW 33 |
Definition at line 104 of file internal.h.
| #define COLOR_BLUE 34 |
Definition at line 105 of file internal.h.
| #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.
| void checkasm_srand | ( | unsigned | seed | ) |
Definition at line 127 of file utils.c.
Referenced by check_cpu_flag(), and checkasm_check_key().
| NORETURN void checkasm_fail_abort | ( | const char * | msg, |
| ... | |||
| ) |
| void checkasm_setup_fprintf | ( | void | ) |
Definition at line 404 of file utils.c.
Referenced by checkasm_list_cpu_flags(), and checkasm_run().
| void checkasm_fprintf | ( | FILE *const | f, |
| const int | color, | ||
| const char *const | fmt, | ||
| ... | |||
| ) |
| 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 444 of file utils.c.
Referenced by cpu_info_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 469 of file utils.c.
Referenced by json_measurement(), json_var(), print_bench_header(), and print_bench_iter().
| void checkasm_json_pop | ( | CheckasmJson * | json, |
| char | type | ||
| ) |
Definition at line 485 of file utils.c.
Referenced by 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_run().
| const char* checkasm_get_last_signal_desc | ( | void | ) |
Definition at line 167 of file signal.c.
Referenced by check_cpu_flag().
| int checkasm_perf_init | ( | void | ) |
Definition at line 59 of file perf.c.
Referenced by checkasm_run().
| int checkasm_perf_init_linux | ( | CheckasmPerf * | perf | ) |
Referenced by checkasm_perf_init().
| int checkasm_perf_init_macos | ( | CheckasmPerf * | perf | ) |
Referenced by checkasm_perf_init().
| int checkasm_perf_init_arm | ( | CheckasmPerf * | perf | ) |
Definition at line 148 of file arm.c.
Referenced by checkasm_perf_init().
| int checkasm_perf_validate_start | ( | const CheckasmPerf * | perf | ) |
Definition at line 128 of file perf.c.
Referenced by checkasm_perf_init().
| int checkasm_perf_validate_start_stop | ( | const CheckasmPerf * | perf | ) |
| int checkasm_run_on_all_cores | ( | void(*)(void) | func | ) |
Definition at line 601 of file checkasm.c.
Referenced by checkasm_perf_init().
| 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_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_validate_start(), and checkasm_perf_validate_start_stop().
| unsigned checkasm_seed | ( | void | ) |
Definition at line 117 of file utils.c.
Referenced by checkasm_run().
| void checkasm_noop | ( | void * | ) |
Definition at line 63 of file utils.c.
Referenced by checkasm_measure_nop_cycles(), checkasm_measure_perf_scale(), 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(), and checkasm_run().
| void checkasm_measure_perf_scale | ( | CheckasmMeasurement * | meas | ) |
Definition at line 209 of file perf.c.
Referenced by check_cpu_flag(), and checkasm_run().
|
inlinestatic |
Definition at line 160 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(), lup_decompose(), median_16(), median_8(), minmax_slice16(), minmax_slice8(), monochrome_slice16(), monochrome_slice8(), and print_bench_iter().
|
inlinestatic |
Definition at line 165 of file internal.h.
Referenced by filter_frame().
|
inlinestatic |
Definition at line 170 of file internal.h.
Referenced by checkasm_mallocz(), and checkasm_strdup().
|
inlinestatic |
Definition at line 180 of file internal.h.
Referenced by checkasm_check_key(), checkasm_vasprintf(), and func_get().
|
inlinestatic |
Definition at line 185 of file internal.h.
Referenced by checkasm_report().
| char* checkasm_vasprintf | ( | const char * | fmt, |
| va_list | arg | ||
| ) |
Definition at line 711 of file utils.c.
Referenced by checkasm_set_func_variant().
| volatile sig_atomic_t checkasm_interrupted |
Definition at line 50 of file signal.c.
Referenced by checkasm_bench_func(), checkasm_bench_runs(), checkasm_check_key(), handle_interrupt(), and interrupt_handler().
| checkasm_jmp_buf checkasm_context |
Definition at line 46 of file signal.c.
Referenced by check_cpu_flag(), checkasm_fail_abort(), checkasm_perf_init(), interrupt_handler(), and signal_handler().
| CheckasmPerf checkasm_perf |
Definition at line 52 of file perf.c.
Referenced by checkasm_get_perf(), checkasm_measure_nop_cycles(), checkasm_measure_perf_scale(), checkasm_perf_init(), checkasm_run(), print_bench_header(), print_bench_iter(), and print_info().
1.8.17