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

@ -662,6 +662,14 @@ process_lookup_kernel_symbol (gulong address,
GArray *ksyms = get_kernel_symbols ();
KernelSymbol *result;
if (offset)
{
/* If we don't have any offset, just return 1, so it doesn't
* look like a callback
*/
*offset = 1;
}
if (ksyms->len == 0)
return NULL;