From 038aa951a070a3ec2c06fd0cd22e27b67a8f36b0 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 9 Dec 2009 20:09:38 -0200 Subject: [PATCH] --- yaml --- r: 175438 b: refs/heads/master c: 716d69e4fda0563ef67d62ee44baa17b377b9b23 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/util/data_map.c | 4 ++-- trunk/tools/perf/util/data_map.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 6589fc4780ab..32d1b2ab3c82 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8b4825bf8da5c07e80496b749e9a50d675df4119 +refs/heads/master: 716d69e4fda0563ef67d62ee44baa17b377b9b23 diff --git a/trunk/tools/perf/util/data_map.c b/trunk/tools/perf/util/data_map.c index ca0bedf637c2..59b65d0bd7c1 100644 --- a/trunk/tools/perf/util/data_map.c +++ b/trunk/tools/perf/util/data_map.c @@ -100,11 +100,11 @@ process_event(event_t *event, unsigned long offset, unsigned long head) } } -int perf_header__read_build_ids(int input, off_t offset, off_t size) +int perf_header__read_build_ids(int input, u64 offset, u64 size) { struct build_id_event bev; char filename[PATH_MAX]; - off_t limit = offset + size; + u64 limit = offset + size; int err = -1; while (offset < limit) { diff --git a/trunk/tools/perf/util/data_map.h b/trunk/tools/perf/util/data_map.h index 3180ff7e3633..258a87bcc4fb 100644 --- a/trunk/tools/perf/util/data_map.h +++ b/trunk/tools/perf/util/data_map.h @@ -27,6 +27,6 @@ int mmap_dispatch_perf_file(struct perf_header **pheader, int full_paths, int *cwdlen, char **cwd); -int perf_header__read_build_ids(int input, off_t offset, off_t file_size); +int perf_header__read_build_ids(int input, u64 offset, u64 file_size); #endif