Skip to contentSkip to conversation

missing kretprobes support on avr32 and sparc64

DISCUSSION Christoph Hellwig 3 participants 3 messages Mar 31, 2007 – Apr 1, 2007 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

Currently all avr32 and sparc64 don't support kretprobes unlike all other kprobes supporting architectures. This is not nice from the user interface point of view and from the ugly ifdefs point of view. Is there a reason these ports can't support kretprobes or was this simply an oversight / lazyness?

#1 lore raw

From: Christoph Hellwig <[email protected]>
Date: Sat, 31 Mar 2007 15:15:22 +0200

Quoted 5 lines

Currently all avr32 and sparc64 don't support kretprobes unlike all other kprobes supporting architectures. This is not nice from the user interface point of view and from the ugly ifdefs point of view. Is there a reason these ports can't support kretprobes or was this simply an oversight / lazyness?

I just haven't gotten around to it yet.

Don't worry I'm aware of it. :-)

#2 lore raw
In reply to Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

Currently all avr32 and sparc64 don't support kretprobes unlike all other kprobes supporting architectures. This is not nice from the user interface point of view and from the ugly ifdefs point of view. Is there a reason these ports can't support kretprobes or was this simply an oversight / lazyness?

Lazyness on my part, I guess. It shouldn't be too hard to implement on avr32; It looks like the generic code sets a breakpoint on function entry, so all I have to do is to set a breakpoint on the return address. And handle the breakpoint somehow. I'll try to implement it when I get back to work in about a week.

Haavard