Increase the max number of addresses to 1021, reorganise SysprofMmapArea

2006-10-26  Soren Sandmann <sandmann@daimi.au.dk>

        * module/sysprof-module.h (struct SysprofStackTrace): Increase the
        max number of addresses to 1021, reorganise SysprofMmapArea to
        make the traces naturally page aligned.

        * TODO: Update
This commit is contained in:
Soren Sandmann
2006-11-02 06:54:12 +00:00
committed by Søren Sandmann Pedersen
parent e7415d4492
commit 9a1ed3d336
6 changed files with 50 additions and 28 deletions

View File

@ -24,8 +24,8 @@ typedef struct SysprofStackTrace SysprofStackTrace;
typedef struct SysprofStackInfo SysprofStackInfo;
typedef struct SysprofMmapArea SysprofMmapArea;
#define SYSPROF_N_TRACES 256
#define SYSPROF_MAX_ADDRESSES 512
#define SYSPROF_N_TRACES 64
#define SYSPROF_MAX_ADDRESSES 1021 /* to make it one page wide */
struct SysprofStackTrace
{
@ -39,9 +39,9 @@ struct SysprofStackTrace
struct SysprofMmapArea
{
unsigned int head;
SysprofStackTrace traces[SYSPROF_N_TRACES];
unsigned int head;
};
#endif