Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234343
b: refs/heads/master
c: 744bd8a
h: refs/heads/master
i:
  234341: f3b7186
  234339: eda1223
  234335: f084cd5
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 22, 2011
1 parent 6536450 commit c614a5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 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: 70082dd92c4b288bd723a77897e2b555f0e63113
refs/heads/master: 744bd8aa3c8b43447f689a27872fa95e700b8a4f
25 changes: 4 additions & 21 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,9 @@ static off_t post_processing_offset;
static struct perf_session *session;
static const char *cpu_list;

struct mmap_data {
void *base;
unsigned int mask;
unsigned int prev;
};

static struct mmap_data mmap_array[MAX_NR_CPUS];

static unsigned long mmap_read_head(struct mmap_data *md)
{
struct perf_event_mmap_page *pc = md->base;
long head;

head = pc->data_head;
rmb();

return head;
}
static struct perf_mmap mmap_array[MAX_NR_CPUS];

static void mmap_write_tail(struct mmap_data *md, unsigned long tail)
static void mmap_write_tail(struct perf_mmap *md, unsigned long tail)
{
struct perf_event_mmap_page *pc = md->base;

Expand Down Expand Up @@ -136,9 +119,9 @@ static int process_synthesized_event(event_t *event,
return 0;
}

static void mmap_read(struct mmap_data *md)
static void mmap_read(struct perf_mmap *md)
{
unsigned int head = mmap_read_head(md);
unsigned int head = perf_mmap__read_head(md);
unsigned int old = md->prev;
unsigned char *data = md->base + page_size;
unsigned long size;
Expand Down

0 comments on commit c614a5e

Please sign in to comment.