mbgtools-lx
4.2.8
|
#include <mbgdevio.h>
#include <toolutil.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <sched.h>
Go to the source code of this file.
Macros | |
#define | USE_PROCESS_AFFINITY 1 |
#define | MBG_FIRST_COPYRIGHT_YEAR 2008 |
#define | MBG_LAST_COPYRIGHT_YEAR 0 |
Functions | |
static void | print_cpu_set (const char *info, MBG_CPU_SET *p_cpu_set) |
void | check_set_process_affinity_mask (MBG_PROCESS_ID pid, int cpu_num) |
static int | do_mbgxhrtime (MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev) |
static void | usage (void) |
int | main (int argc, char *argv[]) |
Variables | |
static const char * | pname = "mbgxhrtime" |
static int | loops |
static MBG_DEV_HANDLER_FNC | do_mbgxhrtime |
#define MBG_FIRST_COPYRIGHT_YEAR 2008 |
Definition at line 91 of file mbgxhrtime.c.
Referenced by main().
#define MBG_LAST_COPYRIGHT_YEAR 0 |
Definition at line 92 of file mbgxhrtime.c.
Referenced by main().
#define USE_PROCESS_AFFINITY 1 |
Definition at line 87 of file mbgxhrtime.c.
void check_set_process_affinity_mask | ( | MBG_PROCESS_ID | pid, |
int | cpu_num | ||
) |
Definition at line 136 of file mbgxhrtime.c.
References _mbg_cpu_clear, _mbg_cpu_set, MBG_CPU_SET, mbg_get_process_affinity(), mbg_set_process_affinity(), and print_cpu_set().
Referenced by main().
|
static |
Definition at line 170 of file mbgxhrtime.c.
References _pcps_has_hr_time, loops, mbg_get_default_cycles_frequency_from_dev(), mbg_get_pc_cycles(), mbg_get_xhrt_cycles_frequency(), mbg_get_xhrt_time_as_pcps_hr_time(), mbg_snprint_hr_time(), MBG_SUCCESS, mbg_xhrt_poll_thread_create(), mbg_xhrt_poll_thread_stop(), and MBG_POLL_THREAD_INFO::xhrt_info.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 299 of file mbgxhrtime.c.
References _mbg_get_current_process, check_set_process_affinity_mask(), do_mbgxhrtime, loops, MBG_EXIT_CODE_FAIL, MBG_EXIT_CODE_SUCCESS, MBG_EXIT_CODE_USAGE, MBG_FIRST_COPYRIGHT_YEAR, mbg_handle_devices(), MBG_LAST_COPYRIGHT_YEAR, mbg_print_program_info(), mbg_rc_is_success, must_print_usage, pname, and usage().
|
static |
Definition at line 104 of file mbgxhrtime.c.
References _mbg_cpu_isset, and MBG_CPU_SET_SIZE.
Referenced by check_set_process_affinity_mask().
|
static |
Definition at line 275 of file mbgxhrtime.c.
References mbg_print_device_options(), mbg_print_help_options(), mbg_print_opt_info(), mbg_print_usage_intro(), and pname.
Referenced by main().
|
static |
Definition at line 270 of file mbgxhrtime.c.
Referenced by main().
|
static |
Definition at line 97 of file mbgxhrtime.c.
Referenced by do_mbgxhrtime(), and main().
|
static |
Definition at line 94 of file mbgxhrtime.c.