mbgtools-lx  4.2.8
mbgxhrtime.c File Reference
#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
 

Macro Definition Documentation

◆ MBG_FIRST_COPYRIGHT_YEAR

#define MBG_FIRST_COPYRIGHT_YEAR   2008

Definition at line 91 of file mbgxhrtime.c.

Referenced by main().

◆ MBG_LAST_COPYRIGHT_YEAR

#define MBG_LAST_COPYRIGHT_YEAR   0

Definition at line 92 of file mbgxhrtime.c.

Referenced by main().

◆ USE_PROCESS_AFFINITY

#define USE_PROCESS_AFFINITY   1

Definition at line 87 of file mbgxhrtime.c.

Function Documentation

◆ check_set_process_affinity_mask()

void check_set_process_affinity_mask ( MBG_PROCESS_ID  pid,
int  cpu_num 
)

◆ do_mbgxhrtime()

◆ main()

◆ print_cpu_set()

static void print_cpu_set ( const char *  info,
MBG_CPU_SET p_cpu_set 
)
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().

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ do_mbgxhrtime

MBG_DEV_HANDLER_FNC do_mbgxhrtime
static

Definition at line 270 of file mbgxhrtime.c.

Referenced by main().

◆ loops

int loops
static

Definition at line 97 of file mbgxhrtime.c.

Referenced by do_mbgxhrtime(), and main().

◆ pname

const char* pname = "mbgxhrtime"
static

Definition at line 94 of file mbgxhrtime.c.

Referenced by main(), and usage().