projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf python: Init perf_event_attr::size in perf.evsel constructor
[cascardo/linux.git]
/
tools
/
perf
/
util
/
python.c
diff --git
a/tools/perf/util/python.c
b/tools/perf/util/python.c
index
65c6c73
..
d0c1267
100644
(file)
--- a/
tools/perf/util/python.c
+++ b/
tools/perf/util/python.c
@@
-653,6
+653,7
@@
static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
attr.precise_ip = precise_ip;
attr.mmap_data = mmap_data;
attr.sample_id_all = sample_id_all;
+ attr.size = sizeof(attr);
perf_evsel__init(&pevsel->evsel, &attr, idx);
return 0;