Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182433
b: refs/heads/master
c: a8e6f73
h: refs/heads/master
i:
  182431: ab701cc
v: v3
  • Loading branch information
Hitoshi Mitake authored and Ingo Molnar committed Jan 31, 2010
1 parent b616b0f commit 944ef4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 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: 6a1b751fb89b61ef7240f2e3ed65a2e2776e7cfd
refs/heads/master: a8e6f734ce9a79d44ebb296f2a341f435227b34e
28 changes: 10 additions & 18 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,16 @@ static void write_output(void *buf, size_t size)

static void write_event(event_t *buf, size_t size)
{
size_t processed_size = buf->header.size;
event_t *ev = buf;

do {
/*
* Add it to the list of DSOs, so that when we finish this
* record session we can pick the available build-ids.
*/
if (ev->header.type == PERF_RECORD_MMAP) {
struct list_head *head = &dsos__user;
if (ev->header.misc == 1)
head = &dsos__kernel;
__dsos__findnew(head, ev->mmap.filename);
}

ev = ((void *)ev) + ev->header.size;
processed_size += ev->header.size;
} while (processed_size < size);
/*
* Add it to the list of DSOs, so that when we finish this
* record session we can pick the available build-ids.
*/
if (buf->header.type == PERF_RECORD_MMAP) {
struct list_head *head = &dsos__user;
if (buf->mmap.header.misc == 1)
head = &dsos__kernel;
__dsos__findnew(head, buf->mmap.filename);
}

write_output(buf, size);
}
Expand Down

0 comments on commit 944ef4e

Please sign in to comment.