summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/data.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2017-01-23 22:42:56 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-10-30 13:38:50 -0300
commite268687bfb73bb7bfe65f23f5cba5c8a0e5bb050 (patch)
treef23e05b039e19ca0761322a6b8f493f78023e29f /tools/perf/util/data.h
parenteae8ad8042d82775da1ddf3faa915b32854d9cf4 (diff)
downloadblackbird-op-linux-e268687bfb73bb7bfe65f23f5cba5c8a0e5bb050.tar.gz
blackbird-op-linux-e268687bfb73bb7bfe65f23f5cba5c8a0e5bb050.zip
perf tools: Add perf_data_file__write function
Adding perf_data_file__write function to provide single file write operation. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: Changbin Du <changbin.du@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-c3f9p4xzykr845ktqcek6p4t@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/data.h')
-rw-r--r--tools/perf/util/data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h
index 1797bed3aa4b..000c43bbb7ac 100644
--- a/tools/perf/util/data.h
+++ b/tools/perf/util/data.h
@@ -50,6 +50,8 @@ int perf_data__open(struct perf_data *data);
void perf_data__close(struct perf_data *data);
ssize_t perf_data__write(struct perf_data *data,
void *buf, size_t size);
+ssize_t perf_data_file__write(struct perf_data_file *file,
+ void *buf, size_t size);
/*
* If at_exit is set, only rename current perf.data to
* perf.data.<postfix>, continue write on original data.
OpenPOWER on IntegriCloud