mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Use getpagesize()
Sat Apr 30 16:57:23 2005 Soeren Sandmann <sandmann@redhat.com> * process.c (PAGE_SIZE): Use getpagesize() * TODO: More updates
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
914d8bf668
commit
6906804784
@ -24,12 +24,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "process.h"
|
||||
#include "binfile.h"
|
||||
|
||||
/* FIXME: this should be done with getpagesize() */
|
||||
#define PAGE_SIZE 4096
|
||||
#define PAGE_SIZE (getpagesize())
|
||||
|
||||
static GHashTable *processes_by_cmdline;
|
||||
static GHashTable *processes_by_pid;
|
||||
|
||||
Reference in New Issue
Block a user