Re: [PATCH 2/3] perf callchain: Stop resolving callchains after invalid address

From: David Ahern
Date: Thu Nov 26 2015 - 08:15:07 EST


On 11/26/15 12:08 AM, Namhyung Kim wrote:
@@ -528,11 +529,16 @@ int main(int argc, const char **argv)
{
const char *cmd;
char sbuf[STRERR_BUFSIZE];
+ int min_addr;

/* The page_size is placed in util object. */
page_size = sysconf(_SC_PAGE_SIZE);
cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);

+ if (sysctl__read_int("vm/mmap_min_addr", &min_addr) < 0)

This assumes the record and analysis are done on the same system.

David

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/