Cleanup: always use sysconf to get the page size
[lttng-tools.git] / tests / utils / testapp / gen-syscall-events / gen-syscall-events.c
index 1a2882f99780bf4ed865c4be2842199763a7c59e..6a246867d39c824422e0db778ecdf85ef46528fc 100644 (file)
@@ -37,7 +37,7 @@ void prefault_string(const char *p)
                 * for reading.
                 */
                asm volatile("" : : "m"(*p));
-               p += PAGE_SIZE;
+               p += sysconf(_SC_PAGE_SIZE);
        }
 }
 
This page took 0.02327 seconds and 4 git commands to generate.