Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
trace-agent.h File Reference
#include <pthread.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  agent_info
struct  rw_thread_info


#define MAX_CPUS   256
#define PIPE_INIT   (1024*1024)
#define pr_err(format,...)   fprintf(stderr, format, ## __VA_ARGS__)
#define pr_info(format,...)   fprintf(stdout, format, ## __VA_ARGS__)
#define pr_debug(format,...)   do {} while (0)


int rw_ctl_init (const char *ctl_path)
voidrw_ctl_loop (int ctl_fd)
voidrw_thread_info_new (void)
voidrw_thread_init (int cpu, const char *in_path, const char *out_path, bool stdout_flag, unsigned long pipe_size, struct rw_thread_info *rw_ti)
pthread_t rw_thread_run (struct rw_thread_info *rw_ti)


bool global_sig_receive
bool global_run_operation
pthread_mutex_t mutex_notify
pthread_cond_t cond_wakeup

Macro Definition Documentation

#define MAX_CPUS   256

Definition at line 6 of file trace-agent.h.

#define PIPE_INIT   (1024*1024)

Definition at line 7 of file trace-agent.h.

#define pr_debug (   format,
)    do {} while (0)

Definition at line 72 of file trace-agent.h.

#define pr_err (   format,
)    fprintf(stderr, format, ## __VA_ARGS__)

Definition at line 67 of file trace-agent.h.

#define pr_info (   format,
)    fprintf(stdout, format, ## __VA_ARGS__)

Definition at line 68 of file trace-agent.h.

Function Documentation

int rw_ctl_init ( const char ctl_path)

Definition at line 34 of file trace-agent-ctl.c.

void* rw_ctl_loop ( int  ctl_fd)

Definition at line 91 of file trace-agent-ctl.c.

void* rw_thread_info_new ( void  )

Definition at line 22 of file trace-agent-rw.c.

void* rw_thread_init ( int  cpu,
const char in_path,
const char out_path,
bool  stdout_flag,
unsigned long  pipe_size,
struct rw_thread_info rw_ti 

Definition at line 42 of file trace-agent-rw.c.

pthread_t rw_thread_run ( struct rw_thread_info rw_ti)

Definition at line 180 of file trace-agent-rw.c.

Variable Documentation

pthread_cond_t cond_wakeup

Definition at line 29 of file trace-agent.c.

bool global_run_operation

Definition at line 26 of file trace-agent-ctl.c.

bool global_sig_receive

Definition at line 25 of file trace-agent-ctl.c.

pthread_mutex_t mutex_notify

Definition at line 28 of file trace-agent.c.