Messages in this thread | | | Date | Wed, 14 Jan 2015 08:49:30 -0500 | From | Steven Rostedt <> | Subject | Re: Bug with jprobes and function graph tracer |
| |
On Tue, 13 Jan 2015 21:46:33 +0900 Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> wrote:
> > > > I worked on this for the last few days and have a patch that fixes the > > problem. I'll be posting it later today. It also uncovered another > > unrelated bug that I worked on yesterday, otherwise I would have posted > > these fixes already. > > Great! I look forward that! :)
I was all set to send the patches but during testing found that this isn't just affected by the fentry code, but also happens when jprobes and kprobes uses the breakpoint method (old mcount and i386).
I guess this has always been broken from when jprobes and function graph tracing were together.
Anyway, I think I have a simpler solution which simulates making the jprobes "notrace". At least this solution will allow us to have jprobe callbacks traced in the future. But for now, instead of crashing, we'll just disable function graph tracing while its in a jprobe.
I'll see if I can get that patch working today (I should stop saying that).
But all is not lost. I found two bugs in the current implementation of the function graph tracer because of this :-)
-- Steve
| |