Thread (19 messages) flat view 19 messages, 5 authors, 2014-09-16

Re: [RFC 2/2] perf: Marker software event and ioctl

From: Christopher Covington <hidden>
Date: 2014-09-12 14:00:14
Also in: lkml

On 09/12/2014 08:57 AM, Pawel Moll wrote:
On Fri, 2014-09-12 at 13:43 +0100, Christopher Covington wrote:
quoted
Just to ask the dumb questions in case the answers I've come up with are
wrong: What is PAGE_SIZE on an arm64 kernel? 
It's either 4 or 64k, depending on CONFIG_ARM64_64K_PAGES.
quoted
How does userspace know?
#include <unistd.h>
#include <stdio.h>

int main(void)
{
	printf("%ld\n", sysconf(_SC_PAGESIZE));
	return 0;
}
Oh excellent, that actually works. Based on a misreading of the glibc code I
thought it was hard-coded to 64K.

Thanks,
Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help