tools lib api fs: Introduce sysfs__read_bool
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 16 Mar 2017 16:41:59 +0000 (18:41 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Mar 2017 14:49:09 +0000 (11:49 -0300)
commitb9835a90084bd3cc45d7ab80c37f282046bc13d3
treeda00b83a1c1d5a49b8d5bb5f47fae906c25a5424
parentf371594a514a4d3bc8fca6913ce9b5d9e325095d
tools lib api fs: Introduce sysfs__read_bool

Will be used in a upcoming patch warning about PERF_RECORD_AUX data
gaps, reading the "module/kvm_intel/parameters/vmm_exclusive" sysfs
entry.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Vince Weaver <vince@deater.net>
Link: http://lkml.kernel.org/r/8760j941ig.fsf@ashishki-desk.ger.corp.intel.com
[ split from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fs/fs.c
tools/lib/api/fs/fs.h