Compile problem 2.6.37

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems like 2.6.27 kernel have some issues when compiling for avr32. Fist the definition of asmlinkage int sys_execve( ... ); was wrong. Anf then I get this error:

  CC      arch/avr32/kernel/kprobes.o
In file included from arch/avr32/kernel/kprobes.c:14:
include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
include/linux/kprobes.h:318: error: dereferencing pointer to incomplete type
make[1]: *** [arch/avr32/kernel/kprobes.o] Error 1
make: *** [arch/avr32/kernel] Error 2

Is there no one who follows up on the avr32 branch of the kernel? Or am I missing something here?

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After adding this to arch/avr32/include/asm/kprobes.h it compiled:

#define MAX_STACK_SIZE			64	/* 32 would probably be OK */

struct prev_kprobe {
	struct kprobe *kp;
	unsigned int status;
};
/* per-cpu kprobe control block */
struct kprobe_ctlblk {
	unsigned int kprobe_status;
	struct prev_kprobe prev_kprobe;
	struct pt_regs jprobe_saved_regs;
	char jprobes_stack[MAX_STACK_SIZE];
};

Anyone know why this is not hadeled/updated in the avr32 spesific code?

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Anyone know why this is not hadeled/updated in the avr32 spesific code?

Because nobody has sent a patch for it ;) Care to wrap it up as a patch and send it to the AVR32 kernel mailing list? The merge window is open now for the next release.

Per-CPU kprobe doesn't make all that much of a sense, since AP7 is single core only. Ideally kprobe should be configurable for single cores.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Added here:

Attachment(s): 

Life's to short for waiting on slow CPU's