Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253263
b: refs/heads/master
c: 9c850d6
h: refs/heads/master
i:
  253261: 1b2ae01
  253259: 05beac1
  253255: 8e1938e
  253247: d9397e7
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jun 3, 2011
1 parent e5f7746 commit a3eafbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: d21cc9f67d689effbfd24bac878bc2c057de8c46
refs/heads/master: 9c850d6c4b95bb07fb066eb7f43dd4e3b4842b85
10 changes: 4 additions & 6 deletions trunk/tools/perf/util/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,14 +694,12 @@ static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist,
err = perf_event__parse_sample(event, first->attr.sample_type,
perf_sample_size(first->attr.sample_type),
sample_id_all, &pevent->sample);
if (err) {
pr_err("Can't parse sample, err = %d\n", err);
goto end;
}

if (err)
return PyErr_Format(PyExc_OSError,
"perf: can't parse sample, err=%d", err);
return pyevent;
}
end:

Py_INCREF(Py_None);
return Py_None;
}
Expand Down

0 comments on commit a3eafbd

Please sign in to comment.