Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100460
b: refs/heads/master
c: 088b1e4
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent 66168da commit a3301c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: dcb6308f2b56720599f6b9d5a01c33e67e69bde4
refs/heads/master: 088b1e427dbba2af93cb6a7d39258c10ff58dd27
15 changes: 7 additions & 8 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,6 @@ trace_entry_idx(struct trace_array *tr, struct trace_array_cpu *data,

array = page_address(page);

/* Still possible to catch up to the tail */
if (iter->next_idx[cpu] && array == data->trace_tail &&
iter->next_page_idx[cpu] == data->trace_tail_idx)
return NULL;

WARN_ON(iter->next_page_idx[cpu] >= ENTRIES_PER_PAGE);
return &array[iter->next_page_idx[cpu]];
}
Expand Down Expand Up @@ -1921,7 +1916,6 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
struct trace_iterator *iter = filp->private_data;
struct trace_array_cpu *data;
static cpumask_t mask;
struct trace_entry *entry;
static int start;
unsigned long flags;
int read = 0;
Expand Down Expand Up @@ -2013,10 +2007,15 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
cpu_set(cpu, mask);
}

while ((entry = find_next_entry_inc(iter)) != NULL) {
while (find_next_entry_inc(iter) != NULL) {
int len = iter->seq.len;

ret = print_trace_line(iter);
if (!ret)
if (!ret) {
/* don't print partial lines */
iter->seq.len = len;
break;
}

trace_consume(iter);

Expand Down

0 comments on commit a3301c9

Please sign in to comment.