Linux Kernel
3.7.1
|
#include <pthread.h>
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | agent_info |
struct | rw_thread_info |
Macros | |
#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) |
Functions | |
int | rw_ctl_init (const char *ctl_path) |
void * | rw_ctl_loop (int ctl_fd) |
void * | rw_thread_info_new (void) |
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) |
pthread_t | rw_thread_run (struct rw_thread_info *rw_ti) |
Variables | |
bool | global_sig_receive |
bool | global_run_operation |
pthread_mutex_t | mutex_notify |
pthread_cond_t | cond_wakeup |
#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.
Definition at line 67 of file trace-agent.h.
Definition at line 68 of file trace-agent.h.
Definition at line 34 of file trace-agent-ctl.c.
Definition at line 91 of file trace-agent-ctl.c.
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.
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.