diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2013-10-17 16:33:43 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-10-17 16:33:43 -0300 |
commit | 97a07f10c38064dea492794c99445f6260afcdc1 (patch) | |
tree | baa4b7832bae42e80cb0f27bde490c73875f1a95 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6ef068cb8e77784431b6c80adc49d0b0a6a5df66 (diff) |
perf tools: Introduce filename__read_int helper
Just opens a file and calls atoi() in at most its first 64 bytes.
To read things like /proc/sys/kernel/perf_event_paranoid.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions