From d6c0e17d4fc53db1d123134866d8ec610288221a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 16 Jun 2014 18:52:47 -0700 Subject: 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 --- libpagemap/pm_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpagemap/pm_process.c') 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; -- cgit v1.2.3