diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-07-22 09:17:35 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-23 10:57:27 -0400 |
commit | 6d363459d7e6e05f0afeb8e36e6de262a4964694 (patch) | |
tree | 01cdc30704115b5332bdd2b6f8f4f7a6ca3111f7 /tools/perf/util/dso.h | |
parent | a6a69db4b686e51045771945669bba6578af67c1 (diff) |
perf tools: Add dso__data_size()
Add a function to return the dso data size, for use in estimating the
size an instruction cache.
Signed-off-by: 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: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1406035081-14301-27-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/dso.h')
-rw-r--r-- | tools/perf/util/dso.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index c805f604da1f..af1c256aad4f 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -166,6 +166,7 @@ int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type t | |||
166 | * The dso__data_* external interface provides following functions: | 166 | * The dso__data_* external interface provides following functions: |
167 | * dso__data_fd | 167 | * dso__data_fd |
168 | * dso__data_close | 168 | * dso__data_close |
169 | * dso__data_size | ||
169 | * dso__data_read_offset | 170 | * dso__data_read_offset |
170 | * dso__data_read_addr | 171 | * dso__data_read_addr |
171 | * | 172 | * |
@@ -203,6 +204,7 @@ int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type t | |||
203 | int dso__data_fd(struct dso *dso, struct machine *machine); | 204 | int dso__data_fd(struct dso *dso, struct machine *machine); |
204 | void dso__data_close(struct dso *dso); | 205 | void dso__data_close(struct dso *dso); |
205 | 206 | ||
207 | off_t dso__data_size(struct dso *dso, struct machine *machine); | ||
206 | ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine, | 208 | ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine, |
207 | u64 offset, u8 *data, ssize_t size); | 209 | u64 offset, u8 *data, ssize_t size); |
208 | ssize_t dso__data_read_addr(struct dso *dso, struct map *map, | 210 | ssize_t dso__data_read_addr(struct dso *dso, struct map *map, |