summaryrefslogtreecommitdiffstats
path: root/kernel/irq/migration.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-12-03 14:09:22 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-04 19:20:12 +0100
commitcef82c9f5a3deab94c1f1f02cfc25213844852ed (patch)
tree72bd6003cdb4692b964a5a5b05feb877a5c116bc /kernel/irq/migration.c
parentperf tools: Add build and install plugins targets (diff)
downloadlinux-cef82c9f5a3deab94c1f1f02cfc25213844852ed.tar.xz
linux-cef82c9f5a3deab94c1f1f02cfc25213844852ed.zip
perf tools: Add filename__read_str util function
Adding filename__read_str util function to read text file and return it in the char array. The interface is: int filename__read_str(const char *filename, char **buf, size_t *sizep) Returns 0/-1 if the read suceeded/fail respectively. buf - place to store the data pointer size - place to store data size v2 change: - better error handling suggested by Namhyung Kim. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1386076182-14484-9-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/irq/migration.c')
0 files changed, 0 insertions, 0 deletions