Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146152
b: refs/heads/master
c: 7da3046
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 7, 2009
1 parent c58c7aa commit 1f4f5f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0574ea421b90e0e45a72c447dd3c2c79ffd8c153
refs/heads/master: 7da3046d6ce6ea97494020081c509b642b7016af
11 changes: 11 additions & 0 deletions trunk/kernel/trace/ring_buffer_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ static void ring_buffer_producer(void)
avg = 1000000 / hit;
pr_info("%ld ns per entry\n", avg);
}


if (missed) {
if (time)
missed /= (long)time;

pr_info("Total iterations per millisec: %ld\n", hit + missed);

avg = 1000000 / (hit + missed);
pr_info("%ld ns per entry\n", avg);
}
}

static void wait_to_die(void)
Expand Down

0 comments on commit 1f4f5f8

Please sign in to comment.