Motr  M0
User-space application for KEM profiler

Data Structures

struct  kemc_ctx
 

Enumerations

enum  { FILENAME_SIZE = 256, KEMD_FILENAME_SIZE = 256, ADDB2_STOB_NAME_SIZE = 256, ADDB2_STOB_SIZE = 4 * 1024 * 1024 * 1024ull }
 

Functions

static void kem_int_set (struct kemc_ctx *ctx, unsigned int v)
 
static unsigned int kem_int_get (struct kemc_ctx *ctx)
 
static void kem_sigint (int signum)
 
static void usage (void)
 
void ke_pf_print (struct pf_event *event)
 
void ke_cs_print (struct cs_event *event)
 
void kem_print (struct ke_msg *msg)
 
static int kem_addb2_init (struct kemc_ctx *ctx)
 
static void kem_addb2_fini (struct kemc_ctx *ctx)
 
static void kem_addb2_log (struct ke_msg *msg)
 
static int kem_init (struct kemc_ctx *ctx, int dev_num, void(*sighandler)(int), bool use_stdout, bool use_addb2)
 
static void kem_fini (struct kemc_ctx *ctx)
 
static void kem_log (struct kemc_ctx *ctx, struct ke_msg *msg)
 
static int kem_read (struct kemc_ctx *ctx, struct ke_msg *msg)
 
int main (int argc, char **argv)
 

Variables

const char * stob_location = "linuxstob:./_kemc"
 
const char * kemd_dev_path = "/dev/"
 
static struct kemc_ctx kemc_ctx
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FILENAME_SIZE 
KEMD_FILENAME_SIZE 
ADDB2_STOB_NAME_SIZE 
ADDB2_STOB_SIZE 

Definition at line 48 of file kemc.c.

Function Documentation

◆ ke_cs_print()

void ke_cs_print ( struct cs_event event)

Definition at line 102 of file kemc.c.

Here is the caller graph for this function:

◆ ke_pf_print()

void ke_pf_print ( struct pf_event event)

Definition at line 93 of file kemc.c.

Here is the caller graph for this function:

◆ kem_addb2_fini()

static void kem_addb2_fini ( struct kemc_ctx ctx)
static

Definition at line 172 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_addb2_init()

static int kem_addb2_init ( struct kemc_ctx ctx)
static

Definition at line 129 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_addb2_log()

static void kem_addb2_log ( struct ke_msg msg)
static

Definition at line 187 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_fini()

static void kem_fini ( struct kemc_ctx ctx)
static

Definition at line 276 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_init()

static int kem_init ( struct kemc_ctx ctx,
int  dev_num,
void(*)(int)  sighandler,
bool  use_stdout,
bool  use_addb2 
)
static

Definition at line 218 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_int_get()

static unsigned int kem_int_get ( struct kemc_ctx ctx)
inlinestatic

Definition at line 76 of file kemc.c.

Here is the caller graph for this function:

◆ kem_int_set()

static void kem_int_set ( struct kemc_ctx ctx,
unsigned int  v 
)
inlinestatic

Definition at line 71 of file kemc.c.

Here is the caller graph for this function:

◆ kem_log()

static void kem_log ( struct kemc_ctx ctx,
struct ke_msg msg 
)
static

Definition at line 288 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_print()

void kem_print ( struct ke_msg msg)

Definition at line 111 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kem_read()

static int kem_read ( struct kemc_ctx ctx,
struct ke_msg msg 
)
static

Definition at line 297 of file kemc.c.

Here is the caller graph for this function:

◆ kem_sigint()

static void kem_sigint ( int  signum)
static

Definition at line 81 of file kemc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 302 of file kemc.c.

Here is the call graph for this function:

◆ usage()

static void usage ( void  )
static

Definition at line 86 of file kemc.c.

Here is the caller graph for this function:

Variable Documentation

◆ kemc_ctx

struct kemc_ctx kemc_ctx
static

Definition at line 69 of file kemc.c.

◆ kemd_dev_path

const char* kemd_dev_path = "/dev/"

Definition at line 56 of file kemc.c.

◆ stob_location

const char* stob_location = "linuxstob:./_kemc"

Definition at line 55 of file kemc.c.