Linux Kernel
3.7.1
|
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "trace-agent.h"
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
#define | PAGE_SIZE (sysconf(_SC_PAGE_SIZE)) |
#define | PIPE_DEF_BUFS 16 |
#define | PIPE_MIN_SIZE (PAGE_SIZE*PIPE_DEF_BUFS) |
#define | PIPE_MAX_SIZE (1024*1024) |
#define | READ_PATH_FMT "/sys/kernel/debug/tracing/per_cpu/cpu%d/trace_pipe_raw" |
#define | WRITE_PATH_FMT "/dev/virtio-ports/trace-path-cpu%d" |
#define | CTL_PATH "/dev/virtio-ports/agent-ctl-path" |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
pthread_mutex_t | mutex_notify = PTHREAD_MUTEX_INITIALIZER |
pthread_cond_t | cond_wakeup = PTHREAD_COND_INITIALIZER |
#define _GNU_SOURCE |
Definition at line 12 of file trace-agent.c.
Definition at line 26 of file trace-agent.c.
#define PAGE_SIZE (sysconf(_SC_PAGE_SIZE)) |
Definition at line 19 of file trace-agent.c.
#define PIPE_DEF_BUFS 16 |
Definition at line 20 of file trace-agent.c.
#define PIPE_MAX_SIZE (1024*1024) |
Definition at line 22 of file trace-agent.c.
#define PIPE_MIN_SIZE (PAGE_SIZE*PIPE_DEF_BUFS) |
Definition at line 21 of file trace-agent.c.
Definition at line 23 of file trace-agent.c.
Definition at line 25 of file trace-agent.c.
Definition at line 258 of file trace-agent.c.
pthread_cond_t cond_wakeup = PTHREAD_COND_INITIALIZER |
Definition at line 29 of file trace-agent.c.
pthread_mutex_t mutex_notify = PTHREAD_MUTEX_INITIALIZER |
Definition at line 28 of file trace-agent.c.