Use kernel builtin tracer instead of copying everything ourselves.

2008-03-20  Soren Sandmann <sandmann@redhat.com>
 
       * module/sysprof-module.c (trace_kernel): Use kernel builtin
       tracer instead of copying everything ourselves.


svn path=/trunk/; revision=401
This commit is contained in:
Soren Sandmann
2008-03-20 09:49:46 +00:00
committed by Søren Sandmann Pedersen
parent 83fd2bbc31
commit c2de993836
5 changed files with 107 additions and 31 deletions

View File

@ -25,11 +25,11 @@ typedef struct SysprofStackInfo SysprofStackInfo;
typedef struct SysprofMmapArea SysprofMmapArea;
#define SYSPROF_N_TRACES 64
#define SYSPROF_MAX_ADDRESSES 1020 /* to make it three pages wide */
#define SYSPROF_MAX_ADDRESSES 126
struct SysprofStackTrace
{
void *kernel_stack[1024];
void *kernel_stack[SYSPROF_MAX_ADDRESSES];
void *addresses[SYSPROF_MAX_ADDRESSES];
int n_kernel_words;
int n_addresses; /* note: this can be 1 if the process was compiled