Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223911
b: refs/heads/master
c: e4c2df1
h: refs/heads/master
i:
  223909: 03d2f27
  223907: 209f567
  223903: 1e3701e
v: v3
  • Loading branch information
Thomas Gleixner authored and Arnaldo Carvalho de Melo committed Dec 9, 2010
1 parent d5df40a commit d8ace8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 9aefcab0de472ee2b3ab195a6827ddd4b170e3a7
refs/heads/master: e4c2df132fef60a28b851abc1859a531e64f350c
7 changes: 5 additions & 2 deletions trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ static event__swap_op event__swap_ops[] = {

struct sample_queue {
u64 timestamp;
u64 file_offset;
event_t *event;
struct list_head list;
};
Expand Down Expand Up @@ -596,7 +597,7 @@ static void __queue_event(struct sample_queue *new, struct perf_session *s)
#define MAX_SAMPLE_BUFFER (64 * 1024 / sizeof(struct sample_queue))

static int perf_session_queue_event(struct perf_session *s, event_t *event,
struct sample_data *data)
struct sample_data *data, u64 file_offset)
{
struct ordered_samples *os = &s->ordered_samples;
struct list_head *sc = &os->sample_cache;
Expand Down Expand Up @@ -628,6 +629,7 @@ static int perf_session_queue_event(struct perf_session *s, event_t *event,
}

new->timestamp = timestamp;
new->file_offset = file_offset;
new->event = event;

__queue_event(new, s);
Expand Down Expand Up @@ -780,7 +782,8 @@ static int perf_session__process_event(struct perf_session *session,
}

if (ops->ordered_samples) {
ret = perf_session_queue_event(session, event, &sample);
ret = perf_session_queue_event(session, event, &sample,
file_offset);
if (ret != -ETIME)
return ret;
}
Expand Down

0 comments on commit d8ace8a

Please sign in to comment.