aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/Build
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2015-09-10 14:58:50 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-09-14 15:50:25 +0000
commit2d729f6a8ac3edbf68de7239fab96c9736946af5 (patch)
treeec0a1ee34c30e969b6affb211850c7e1bcf320d0 /tools/lib/api/Build
parentperf env: Read msr pmu type from header (diff)
downloadkernel-2d729f6a8ac3edbf68de7239fab96c9736946af5.tar.gz
kernel-2d729f6a8ac3edbf68de7239fab96c9736946af5.zip
tools lib api fs: Introduce sysfs__read_{int,ull}()
To read either an int or an unsigned long long value from the given file. E.g.: $ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq 3200000 $ ./sysfs__read_ull devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq=3200000 $ Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/Build')
0 files changed, 0 insertions, 0 deletions