Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223977
b: refs/heads/master
c: 6d8afb5
h: refs/heads/master
i:
  223975: 92a575f
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 5, 2011
1 parent 1b0afa0 commit 4d7f382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 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: 1109599458c06256064213dc44ca5f5fa8ee3833
refs/heads/master: 6d8afb56300c53a250c6de0f973ef502e54aabf3
15 changes: 1 addition & 14 deletions trunk/tools/perf/builtin-script.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,24 +99,13 @@ static int process_sample_event(event_t *event, struct sample_data *sample,
return 0;
}

static u64 nr_lost;

static int process_lost_event(event_t *event, struct sample_data *sample __used,
struct perf_session *session __used)
{
nr_lost += event->lost.lost;

return 0;
}

static struct perf_event_ops event_ops = {
.sample = process_sample_event,
.comm = event__process_comm,
.attr = event__process_attr,
.event_type = event__process_event_type,
.tracing_data = event__process_tracing_data,
.build_id = event__process_build_id,
.lost = process_lost_event,
.ordering_requires_timestamps = true,
.ordered_samples = true,
};
Expand All @@ -136,10 +125,8 @@ static int __cmd_script(struct perf_session *session)

ret = perf_session__process_events(session, &event_ops);

if (debug_mode) {
if (debug_mode)
pr_err("Misordered timestamps: %llu\n", nr_unordered);
pr_err("Lost events: %llu\n", nr_lost);
}

return ret;
}
Expand Down

0 comments on commit 4d7f382

Please sign in to comment.