|
#define | tprintf(x...) do { if (g && g->p.show_details >= 0) printf(x); } while (0) |
|
#define | dprintf(x...) do { if (g && g->p.show_details >= 1) printf(x); } while (0) |
|
#define | HPSIZE (2*1024*1024) |
|
#define | set_taskname(fmt...) |
|
#define | BIT(x) (1ul << x) |
|
#define | MAX_NR_NODES 64 |
|
#define | MAX_ARGS 50 |
|
#define | OPT_BW_RAM "-s", "20", "-zZq", "--thp", " 1", "--no-data_rand_walk" |
|
#define | OPT_BW_RAM_NOTHP OPT_BW_RAM, "--thp", "-1" |
|
#define | OPT_CONV "-s", "100", "-zZ0qcm", "--thp", " 1" |
|
#define | OPT_CONV_NOTHP OPT_CONV, "--thp", "-1" |
|
#define | OPT_BW "-s", "20", "-zZ0q", "--thp", " 1" |
|
#define | OPT_BW_NOTHP OPT_BW, "--thp", "-1" |
|
|
static int | parse_cpus_opt (const struct option *opt, const char *arg, int unset) |
|
static int | parse_nodes_opt (const struct option *opt, const char *arg, int unset) |
|
static int | nr_numa_nodes (void) |
|
static int | is_node_present (int node) |
|
static bool | node_has_cpus (int node) |
|
static cpu_set_t | bind_to_cpu (int target_cpu) |
|
static cpu_set_t | bind_to_node (int target_node) |
|
static void | bind_to_cpumask (cpu_set_t mask) |
|
static void | mempol_restore (void) |
|
static void | bind_to_memnode (int node) |
|
static u8 * | alloc_data (ssize_t bytes0, int map_flags, int init_zero, int init_cpu0, int thp, int init_random) |
|
static void | free_data (void *data, ssize_t bytes) |
|
static void * | zalloc_shared_data (ssize_t bytes) |
|
static void * | setup_shared_data (ssize_t bytes) |
|
static void * | setup_private_data (ssize_t bytes) |
|
static void | init_global_mutex (pthread_mutex_t *mutex) |
|
static int | parse_cpu_list (const char *arg) |
|
static int | parse_setup_cpu_list (void) |
|
static int | parse_cpus_opt (const struct option *opt __maybe_unused, const char *arg, int unset __maybe_unused) |
|
static int | parse_node_list (const char *arg) |
|
static int | parse_setup_node_list (void) |
|
static int | parse_nodes_opt (const struct option *opt __maybe_unused, const char *arg, int unset __maybe_unused) |
|
static uint32_t | lfsr_32 (uint32_t lfsr) |
|
static u64 | access_data (u64 *data, u64 val) |
|
static u64 | do_work (u8 *__data, long bytes, int nr, int nr_max, int loop, u64 val) |
|
static void | update_curr_cpu (int task_nr, unsigned long bytes_worked) |
|
static int | count_process_nodes (int process_nr) |
|
static int | count_node_processes (int node) |
|
static void | calc_convergence_compression (int *strong) |
|
static void | calc_convergence (double runtime_ns_max, double *convergence) |
|
static void | show_summary (double runtime_ns_max, int l, double *convergence) |
|
static void * | worker_thread (void *__tdata) |
|
static void | worker_process (int process_nr) |
|
static void | print_summary (void) |
|
static void | init_thread_data (void) |
|
static void | deinit_thread_data (void) |
|
static int | init (void) |
|
static void | deinit (void) |
|
static void | print_res (const char *name, double val, const char *txt_unit, const char *txt_short, const char *txt_long) |
|
static int | __bench_numa (const char *name) |
|
static int | command_size (const char **argv) |
|
static void | init_params (struct params *p, const char *name, int argc, const char **argv) |
|
static int | run_bench_numa (const char *name, const char **argv) |
|
static int | bench_all (void) |
|
int | bench_numa (int argc, const char **argv) |
|