|
Motr
M0
|
#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <signal.h>#include <unistd.h>#include <string.h>#include <sys/time.h>#include <assert.h>#include <errno.h>#include "addb2/addb2.h"#include "addb2/global.h"#include "lib/uuid.h"#include "lib/locality.h"#include "module/instance.h"#include "scripts/systemtap/kem/kem.h"#include "scripts/systemtap/kem/kem_id.h"
Go to the source code of this file.
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 |