Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689582

Re: Help with trace-cmd/ftrace recording process ID information

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: Help with trace-cmd/ftrace recording process ID information
Date 2017-07-18 02:50 +0200
Message-ID <u4oS6-3KB-13@gated-at.bofh.it> (permalink)
References <u4jIK-Dg-23@gated-at.bofh.it> <u4kls-SQ-19@gated-at.bofh.it> <u4kv7-1bl-15@gated-at.bofh.it> <u4kEO-1f3-19@gated-at.bofh.it> <u4mQi-2yQ-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 17 Jul 2017 18:31:14 -0400
Will Hawkins <hawkinsw@borlaugic.com> wrote:


> > It may be that it stopped and never started again, so you will only
> > have a stale file.  
> 
> This appears to have been the problem! I did a reboot and everything
> is back to normal.
> 
> Is there a way to poke at the tracing infrastructure in the kernel to
> get it to restart process recording? I would feel more comfortable
> with a solution like that instead of rebooting, obviously. The 'ol
> Windows "solution" makes me queazy :-)

Well, that's what happens when you run older kernels ;-)

The best I can do is to find the commit that fixed the issue and have
it back ported. Or you can try that. Start with the code that reads and
writes to saved_cmdlines and that will lead you to the map table. You
also need to look where the sched_switch tracepoint gets enabled and
disabled. It uses a ref count to know to enable and disable it, and the
ref count probably got out of sync. Need to find the place that
disabled it twice or something.

One way is to read the commits that affect all that since your kernel.

-- Steve


> 
> Thanks again for your quick responses. I hope that I can repay you at
> some point by contributing code to the great tools you've built!
> 
> Will
> 
> >
> > -- Steve  

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Help with trace-cmd/ftrace recording process ID information Will Hawkins <hawkinsw@borlaugic.com> - 2017-07-17 21:20 +0200
  Re: Help with trace-cmd/ftrace recording process ID information Steven Rostedt <rostedt@goodmis.org> - 2017-07-17 22:00 +0200
    Re: Help with trace-cmd/ftrace recording process ID information Will Hawkins <hawkinsw@borlaugic.com> - 2017-07-17 22:10 +0200
      Re: Help with trace-cmd/ftrace recording process ID information Will Hawkins <hawkinsw@borlaugic.com> - 2017-07-17 22:10 +0200
      Re: Help with trace-cmd/ftrace recording process ID information Steven Rostedt <rostedt@goodmis.org> - 2017-07-17 22:20 +0200
        Re: Help with trace-cmd/ftrace recording process ID information Will Hawkins <hawkinsw@borlaugic.com> - 2017-07-18 00:40 +0200
          Re: Help with trace-cmd/ftrace recording process ID information Steven Rostedt <rostedt@goodmis.org> - 2017-07-18 02:50 +0200

csiph-web