]> git.karo-electronics.de Git - linux-beck.git/commit
perf tools: cleanup initialization of attr->size
authorStephane Eranian <eranian@google.com>
Thu, 9 Feb 2012 15:12:38 +0000 (16:12 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Feb 2012 01:35:04 +0000 (23:35 -0200)
commit7e1ccd3804281fc0755eb726b654469c40a96d89
treedd262703dfc95983c4a8308b5f40fb41b404a1a6
parentf1c67db7e351bf9fd328e368ba045cbeca11d513
perf tools: cleanup initialization of attr->size

The perf_event_attr size needs to be initialized in all cases because it
captures the ABI version.

This patch moves the initialization of the field from the
perf_event_open() syscall stub to its proper location in the
event_attr_init().

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120209151238.GA10272@quad
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf.h
tools/perf/util/util.c