perf tools: Use sysctl__read_int instead of ad-hoc copies
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 11 Dec 2014 16:37:59 +0000 (13:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 11 Dec 2014 20:53:04 +0000 (17:53 -0300)
commitce27309f67c347e6e49ebd45042f5362b0ccbdcc
tree5ca6a4d73f1a41f8104cc558582478c6206cd42f
parent42e3c4a1274d49b42e9d4306ec096b282a6e14aa
perf tools: Use sysctl__read_int instead of ad-hoc copies

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-pt2u7a3b50oddggecx7rwq2n@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/record.c
tools/perf/util/util.c