diff options
| author | Jiri Olsa <[email protected]> | 2016-07-10 11:07:55 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-12 19:16:17 +0000 |
| commit | ad4e3c04587c01c2e2b00c0e6a414dbededa6c55 (patch) | |
| tree | d7fc61b698fc662b354e9ceacaa7ef675506e54a /tools/perf/util/python.c | |
| parent | perf tools: Introduce trace_event__tp_format_id() (diff) | |
| download | kernel-ad4e3c04587c01c2e2b00c0e6a414dbededa6c55.tar.gz kernel-ad4e3c04587c01c2e2b00c0e6a414dbededa6c55.zip | |
perf python: Init perf_event_attr::size in perf.evsel constructor
Currently 0 is passed as perf_event_attr::size, which could block usage
of new features.
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 65c6c73d28fe..d0c1267741ee 100644 --- 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; |
