diff options
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
-rw-r--r-- | tools/perf/util/trace-event-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index 407fd65b6cdb..5ea8973ad331 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c | |||
@@ -515,7 +515,7 @@ int read_tracing_data(int fd, struct perf_event_attr *pattrs, int nb_events) | |||
515 | write_or_die(buf, 1); | 515 | write_or_die(buf, 1); |
516 | 516 | ||
517 | /* save page_size */ | 517 | /* save page_size */ |
518 | page_size = getpagesize(); | 518 | page_size = sysconf(_SC_PAGESIZE); |
519 | write_or_die(&page_size, 4); | 519 | write_or_die(&page_size, 4); |
520 | 520 | ||
521 | read_header_files(); | 521 | read_header_files(); |