I am using PI on RHEL6, kernel details : 2.6.32-220.17.1.el6.x86_64
I meet the compile error on pi_hook.c, as:
/opt/Software/JProf/Dpiperf/src/driver/pi_hooks.c:1129: error: too many arguments to function dump_trace
In pi_hoos.c, around 1129 line, it\'s to judge the kernle version to make the appropriate invoke of dump_trace.
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
//bp = frame_pointer(regs);
dump_trace(NULL, regs, (unsigned long *)stack, bp, &backtrace_ops, (void *)r0s);
#else
dump_trace(NULL, regs, (unsigned long *)stack, &backtrace_ops, (void *)r0s);
It\'s obivious, on this kernel, it invoke the wrong one. This is the interface declare in kernel header, asm/stacktrace.h:
void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long *stack, const struct stacktrace_ops *ops, void *data);
Please kindly take a look at this bug.