diff options
author | Colin Cross <ccross@android.com> | 2014-06-16 18:52:47 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-06-16 18:54:43 -0700 |
commit | d6c0e17d4fc53db1d123134866d8ec610288221a (patch) | |
tree | 150d3bce0fa7cbb4450e6591cac6ea7718a6b8e7 /libpagemap | |
parent | b733b3c7b0601326801d43f548aa139ca0be721e (diff) | |
download | extras-d6c0e17d4fc53db1d123134866d8ec610288221a.tar.gz |
fix libpagemap for x86_64
libpagemap was storing a virtual pfn in an int, which works on arm64
with 39 bits of virtual address space but fails on x86_64. Use an
unsigned long instead.
Fixes errors when running procrank on x86_64:
warning: could not read usage for 1
Change-Id: I171c8ee49faa51accf3c1bb69059d549aee04979
Diffstat (limited to 'libpagemap')
-rw-r--r-- | libpagemap/pm_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpagemap/pm_process.c b/libpagemap/pm_process.c index dcc9a554..e68263c6 100644 --- a/libpagemap/pm_process.c +++ b/libpagemap/pm_process.c @@ -102,7 +102,7 @@ int pm_process_usage(pm_process_t *proc, pm_memusage_t *usage_out) { int pm_process_pagemap_range(pm_process_t *proc, unsigned long low, unsigned long high, uint64_t **range_out, size_t *len) { - int firstpage, numpages; + unsigned long firstpage, numpages; uint64_t *range; off_t off; int error; |