Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119415
b: refs/heads/master
c: 7ee1768
h: refs/heads/master
i:
  119413: aa963e0
  119411: 85ede0e
  119407: ec55759
v: v3
  • Loading branch information
Pekka Paalanen authored and Ingo Molnar committed Nov 23, 2008
1 parent cb418ac commit 973c84a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 522a110b42b306d696cf84e34c677ed0e7080194
refs/heads/master: 7ee1768ddb3075ae3a0801cc2d0ea4195530a7db
16 changes: 7 additions & 9 deletions trunk/kernel/trace/trace_mmiotrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ struct header_iter {

static struct trace_array *mmio_trace_array;
static bool overrun_detected;
static unsigned long prev_overruns;

static void mmio_reset_data(struct trace_array *tr)
{
int cpu;

overrun_detected = false;
prev_overruns = 0;
tr->time_start = ftrace_now(tr->cpu);

for_each_online_cpu(cpu)
Expand Down Expand Up @@ -128,16 +130,12 @@ static void mmio_close(struct trace_iterator *iter)

static unsigned long count_overruns(struct trace_iterator *iter)
{
int cpu;
unsigned long cnt = 0;
/* FIXME: */
#if 0
for_each_online_cpu(cpu) {
cnt += iter->overrun[cpu];
iter->overrun[cpu] = 0;
}
#endif
(void)cpu;
unsigned long over = ring_buffer_overruns(iter->tr->buffer);

if (over > prev_overruns)
cnt = over - prev_overruns;
prev_overruns = over;
return cnt;
}

Expand Down

0 comments on commit 973c84a

Please sign in to comment.