Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257037
b: refs/heads/master
c: 7636913
h: refs/heads/master
i:
  257035: 25d7764
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Jun 9, 2011
1 parent 28f1fa7 commit 35cdbae
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 528 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b58f6b0dd3d677338b9065388cc2cc942b86338e
refs/heads/master: 76369139ceb955deefc509e6e12ce9d6ce50ccab
33 changes: 4 additions & 29 deletions trunk/include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -680,33 +680,6 @@ enum perf_event_active_state {
};

struct file;

#define PERF_BUFFER_WRITABLE 0x01

struct perf_buffer {
atomic_t refcount;
struct rcu_head rcu_head;
#ifdef CONFIG_PERF_USE_VMALLOC
struct work_struct work;
int page_order; /* allocation order */
#endif
int nr_pages; /* nr of data pages */
int writable; /* are we writable */

atomic_t poll; /* POLL_ for wakeups */

local_t head; /* write position */
local_t nest; /* nested writers */
local_t events; /* event limit */
local_t wakeup; /* wakeup stamp */
local_t lost; /* nr records lost */

long watermark; /* wakeup watermark */

struct perf_event_mmap_page *user_page;
void *data_pages[0];
};

struct perf_sample_data;

typedef void (*perf_overflow_handler_t)(struct perf_event *, int,
Expand Down Expand Up @@ -745,6 +718,8 @@ struct perf_cgroup {
};
#endif

struct ring_buffer;

/**
* struct perf_event - performance event kernel representation:
*/
Expand Down Expand Up @@ -834,7 +809,7 @@ struct perf_event {
atomic_t mmap_count;
int mmap_locked;
struct user_struct *mmap_user;
struct perf_buffer *buffer;
struct ring_buffer *rb;

/* poll related */
wait_queue_head_t waitq;
Expand Down Expand Up @@ -945,7 +920,7 @@ struct perf_cpu_context {

struct perf_output_handle {
struct perf_event *event;
struct perf_buffer *buffer;
struct ring_buffer *rb;
unsigned long wakeup;
unsigned long size;
void *addr;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_core.o = -pg
endif

obj-y := core.o
obj-y := core.o ring_buffer.o
obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
Loading

0 comments on commit 35cdbae

Please sign in to comment.