summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2013-10-17 21:33:43 +0200
committerArnaldo Carvalho de Melo2013-10-17 21:33:43 +0200
commit97a07f10c38064dea492794c99445f6260afcdc1 (patch)
treebaa4b7832bae42e80cb0f27bde490c73875f1a95 /tools/perf/builtin-trace.c
parentperf evlist: Introduce perf_evlist__strerror_tp method (diff)
downloadkernel-qcow2-linux-97a07f10c38064dea492794c99445f6260afcdc1.tar.gz
kernel-qcow2-linux-97a07f10c38064dea492794c99445f6260afcdc1.tar.xz
kernel-qcow2-linux-97a07f10c38064dea492794c99445f6260afcdc1.zip
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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-669q04c5tou5pnt8jtiz6y2r@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
0 files changed, 0 insertions, 0 deletions