mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Complain if we can't find /lib/modules/uname -r/build/Makefile.
Tue Aug 30 16:57:33 2005 Søren Sandmann <sandmann@redhat.com> * configure.ac: Complain if we can't find /lib/modules/`uname -r`/build/Makefile. * process.c (process_lookup_symbol): Take an address of 0x1 to mean "in kernel". * module/sysprof-module.c (timer_notify): When reporting in-kernel time, give the current pid instead of -1. * TODO: updates
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
509d5f07ed
commit
ee53bcffd4
@ -462,10 +462,12 @@ timer_notify (struct pt_regs *regs)
|
||||
{
|
||||
/* kernel */
|
||||
|
||||
trace->pid = -1;
|
||||
trace->pid = current->pid;
|
||||
trace->truncated = 0;
|
||||
trace->n_addresses = 1;
|
||||
trace->addresses[0] = 0x0;
|
||||
|
||||
/* 0x1 is taken by sysprof to mean "in kernel" */
|
||||
trace->addresses[0] = (void *)0x1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user