Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257026
b: refs/heads/master
c: 5c6970a
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jun 2, 2011
1 parent eb3c255 commit 9f586b5
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: bccdaba044a445eb2c391295587aa47977994777
refs/heads/master: 5c6970af2f4be4e04b06fe78214f6809777a8354
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 9f586b5

Please sign in to comment.