projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanup: always use sysconf to get the page size
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-syscall-events
/
gen-syscall-events.c
diff --git
a/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
b/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
index 1a2882f99780bf4ed865c4be2842199763a7c59e..6a246867d39c824422e0db778ecdf85ef46528fc 100644
(file)
--- a/
tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
+++ b/
tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
@@
-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.024148 seconds
and
4
git commands to generate.