mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
*** empty log message ***
This commit is contained in:
@ -20,9 +20,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/config.h>
|
#include <linux/config.h>
|
||||||
#if !CONFIG_PROFILING
|
|
||||||
# error Sysprof needs a kernel with profiling support compiled in.
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
# define __SMP__
|
# define __SMP__
|
||||||
#endif
|
#endif
|
||||||
@ -41,8 +38,8 @@
|
|||||||
#include "sysprof-module.h"
|
#include "sysprof-module.h"
|
||||||
|
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
#if KERNEL_VERSION(2,6,11) > LINUX_VERSION_CODE
|
#if (KERNEL_VERSION(2,6,11) > LINUX_VERSION_CODE) || (!CONFIG_PROFILING)
|
||||||
# error Sysprof needs a Linux 2.6.11 kernel or later
|
# error Sysprof needs a Linux 2.6.11 kernel or later, with profiling support compiled in.
|
||||||
#endif
|
#endif
|
||||||
#include <linux/kallsyms.h>
|
#include <linux/kallsyms.h>
|
||||||
|
|
||||||
@ -137,7 +134,6 @@ timer_notify (struct pt_regs *regs)
|
|||||||
if (!is_user)
|
if (!is_user)
|
||||||
{
|
{
|
||||||
trace->addresses[i++] = (void *)0x01;
|
trace->addresses[i++] = (void *)0x01;
|
||||||
/* FIXME: doesn't compile on x86-64 */
|
|
||||||
regs = (void *)current->thread.REG_STACK_PTR0 - sizeof (struct pt_regs);
|
regs = (void *)current->thread.REG_STACK_PTR0 - sizeof (struct pt_regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user