Package: sysprof-module-source Version: 1.0.11-0.1 Severity: serious Tags: patch Justification: no longer builds from source
The 64-bit registers in AMD64 architecture are defined as bp, ip, and sp if __KERNEL__ is defined (include/asm-x86/ptrace.h). Looking at sysprof-module.c this is since kernel 2.6.25 for x86, so I just copied the conditionals from few lines below. It compiles, and works for me. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sysprof-module-source depends on: ii build-essential 11.4 Informational list of build-essent ii bzip2 1.0.5-1 high-quality block-sorting file co ii debhelper 7.0.15 helper programs for debian/rules ii module-assistant 0.10.11.0 tool to make module package creati sysprof-module-source recommends no packages. sysprof-module-source suggests no packages. -- no debconf information
diff -cr sysprof-module/sysprof-module.c sysprof-module.fixed/sysprof-module.c *** sysprof-module/sysprof-module.c 2008-10-29 21:21:59.000000000 +0200 --- sysprof-module.fixed/sysprof-module.c 2008-12-09 13:09:19.000000000 +0200 *************** *** 68,77 **** /* Macro the names of the registers that are used on each architecture */ #if defined(CONFIG_X86_64) ! # define REG_FRAME_PTR rbp ! # define REG_INS_PTR rip ! # define REG_STACK_PTR rsp ! # define REG_STACK_PTR0 rsp0 #elif defined(CONFIG_X86) # if LINUX_VERSION_CODE >= KERNEL_VERSION (2,6,25) # define REG_FRAME_PTR bp --- 68,84 ---- /* Macro the names of the registers that are used on each architecture */ #if defined(CONFIG_X86_64) ! # if LINUX_VERSION_CODE >= KERNEL_VERSION (2,6,25) ! # define REG_FRAME_PTR bp ! # define REG_INS_PTR ip ! # define REG_STACK_PTR sp ! # define REG_STACK_PTR0 sp0 ! # else ! # define REG_FRAME_PTR rbp ! # define REG_INS_PTR rip ! # define REG_STACK_PTR rsp ! # define REG_STACK_PTR0 rsp0 ! # endif #elif defined(CONFIG_X86) # if LINUX_VERSION_CODE >= KERNEL_VERSION (2,6,25) # define REG_FRAME_PTR bp