perf tools: Move sys_perf_event_open function from perf.h
authorJiri Olsa <jolsa@kernel.org>
Mon, 5 May 2014 10:58:31 +0000 (12:58 +0200)
committerJiri Olsa <jolsa@kernel.org>
Mon, 5 May 2014 15:48:51 +0000 (17:48 +0200)
commit82baa0eb46c15b749723d0c801470fea044657d7
tree97781ce38bb6eb3496dc49cb62094d097466de60
parent43599d1f7adffbbf990b00716ba22974ec1487be
perf tools: Move sys_perf_event_open function from perf.h

Into perf-sys.h header, as requested by Peter:
  http://lkml.kernel.org/r/20140502115201.GI30445@twins.programming.kicks-ass.net

Adding HAVE_ATTR_TEST define to turn off/on the attribute
test code in the sys_perf_event_open function.

Requested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1399293219-8732-10-git-send-email-jolsa@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/perf-sys.h
tools/perf/perf.h