aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/fs/fs.h
diff options
context:
space:
mode:
authorAlexander Shishkin <[email protected]>2017-03-16 18:41:59 +0200
committerArnaldo Carvalho de Melo <[email protected]>2017-03-17 11:49:09 -0300
commitb9835a90084bd3cc45d7ab80c37f282046bc13d3 (patch)
treeda00b83a1c1d5a49b8d5bb5f47fae906c25a5424 /tools/lib/api/fs/fs.h
parentf371594a514a4d3bc8fca6913ce9b5d9e325095d (diff)
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 <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Vince Weaver <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/fs.h')
-rw-r--r--tools/lib/api/fs/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/fs/fs.h b/tools/lib/api/fs/fs.h
index 6b332dc74498..956c21127d1e 100644
--- a/tools/lib/api/fs/fs.h
+++ b/tools/lib/api/fs/fs.h
@@ -37,4 +37,5 @@ int sysctl__read_int(const char *sysctl, int *value);
int sysfs__read_int(const char *entry, int *value);
int sysfs__read_ull(const char *entry, unsigned long long *value);
int sysfs__read_str(const char *entry, char **buf, size_t *sizep);
+int sysfs__read_bool(const char *entry, bool *value);
#endif /* __API_FS__ */