linux-sg2042/tools/lib/api/fs
Kan Liang 3b00ea9386 tools lib api fs: Add sysfs__write_int function
Add sysfs__write_int() to ease up writing int to sysfs.  New interface
is:

  int sysfs__write_int(const char *entry, int value);

Also, introducing filename__write_int() which is useful for new helpers
to write sysctl values.

Signed-off-by: Kan Liang <Kan.liang@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Elliott <elliott@hpe.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1495825538-5230-2-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-06-21 11:35:27 -03:00
..
Build tools lib api fs: Remove debugfs, tracefs and findfs objects 2015-09-14 12:50:15 -03:00
fs.c tools lib api fs: Add sysfs__write_int function 2017-06-21 11:35:27 -03:00
fs.h tools lib api fs: Add sysfs__write_int function 2017-06-21 11:35:27 -03:00
tracing_path.c perf sdt: Show proper hint when event not yet in place via 'perf probe' 2017-02-08 09:28:54 -03:00
tracing_path.h tools lib api fs: Move debugfs__strerror_open into tracing_path.c object 2015-09-04 12:00:58 -03:00