To allow for a dynamic page size on arm64 remove the static valud from
the kcov tests
Sponsored by: The FreeBSD Foundation
Differential D35020
Remove PAGE_SIZE from the kcov tests andrew on Apr 21 2022, 10:02 AM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions The ATF header isn't really supposed to be used this way: it's executed even when the test itself is not, so kyua will run this code when interrogating tests for their metadata. See atf-test-case.4. Instead of having a header for each test which wants to know the page size, perhaps have static size_t pagesize(void) { static int ps = 0; if (ps == 0) ps = getpagesize(); return (ps); } and make each test call it where it uses page_size now? |