OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e59e09
)
perf python: Add missing perf_event__parse_sample 'swapped' parm
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 23 Sep 2011 18:38:53 +0000
(15:38 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 23 Sep 2011 18:38:53 +0000
(15:38 -0300)
Problem introduced in
936be50
, that missed one perf_event__parse_sample
user, the python binding.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link:
http://lkml.kernel.org/n/tip-ja4phms9618ggi657plyuch2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/python.c
b/tools/perf/util/python.c
index
cbc8f21
..
7624324
100644
(file)
--- a/
tools/perf/util/python.c
+++ b/
tools/perf/util/python.c
@@
-803,7
+803,7
@@
static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist,
first = list_entry(evlist->entries.next, struct perf_evsel, node);
err = perf_event__parse_sample(event, first->attr.sample_type,
perf_evsel__sample_size(first),
- sample_id_all, &pevent->sample);
+ sample_id_all, &pevent->sample
, false
);
if (err)
return PyErr_Format(PyExc_OSError,
"perf: can't parse sample, err=%d", err);