|
@@ -75,59 +75,6 @@ struct callchain_param callchain_param = {
|
|
|
|
|
|
static u64 sample_type;
|
|
static u64 sample_type;
|
|
|
|
|
|
-struct ip_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u64 ip;
|
|
|
|
- u32 pid, tid;
|
|
|
|
- unsigned char __more_data[];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-struct mmap_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u32 pid, tid;
|
|
|
|
- u64 start;
|
|
|
|
- u64 len;
|
|
|
|
- u64 pgoff;
|
|
|
|
- char filename[PATH_MAX];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-struct comm_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u32 pid, tid;
|
|
|
|
- char comm[16];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-struct fork_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u32 pid, ppid;
|
|
|
|
- u32 tid, ptid;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-struct lost_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u64 id;
|
|
|
|
- u64 lost;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-struct read_event {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- u32 pid,tid;
|
|
|
|
- u64 value;
|
|
|
|
- u64 time_enabled;
|
|
|
|
- u64 time_running;
|
|
|
|
- u64 id;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-typedef union event_union {
|
|
|
|
- struct perf_event_header header;
|
|
|
|
- struct ip_event ip;
|
|
|
|
- struct mmap_event mmap;
|
|
|
|
- struct comm_event comm;
|
|
|
|
- struct fork_event fork;
|
|
|
|
- struct lost_event lost;
|
|
|
|
- struct read_event read;
|
|
|
|
-} event_t;
|
|
|
|
-
|
|
|
|
static int repsep_fprintf(FILE *fp, const char *fmt, ...)
|
|
static int repsep_fprintf(FILE *fp, const char *fmt, ...)
|
|
{
|
|
{
|
|
int n;
|
|
int n;
|