Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad4e3c04 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarJiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1468148882-10362-4-git-send-email-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 71fe1052
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -653,6 +653,7 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
	attr.precise_ip	    = precise_ip;
	attr.precise_ip	    = precise_ip;
	attr.mmap_data	    = mmap_data;
	attr.mmap_data	    = mmap_data;
	attr.sample_id_all  = sample_id_all;
	attr.sample_id_all  = sample_id_all;
	attr.size	    = sizeof(attr);


	perf_evsel__init(&pevsel->evsel, &attr, idx);
	perf_evsel__init(&pevsel->evsel, &attr, idx);
	return 0;
	return 0;