From: Steven Rostedt <rostedt@goodmis.org>
To: harryxiyou <harryxiyou@gmail.com>
Cc: linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org,
Chen Lijun <cljcore@126.com>
Subject: Re: [RFC]Read kernel stack with trace-cmd
Date: Tue, 08 May 2012 11:06:06 -0400 [thread overview]
Message-ID: <1336489566.14207.180.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <CAD+1EGOKJWLLjXam2TA+iksbvwx47n6u1aHir7_SNfO9ECqRGg@mail.gmail.com>
On Tue, 2012-05-08 at 22:34 +0800, harryxiyou wrote:
> >
> > Have you tried it with -O stacktrace ?
> >
> > trace-cmd record -e all -O stacktrace
> >
>
> After this cmd, i get following ones.
>
> [...]
> => handle_IRQ_event (c019fc34)
> => handle_edge_irq (c01a1b84)
> => handle_irq (c01059ed)
> => do_IRQ (c058fa1c)
> => common_interrupt (c0103a30)
> => mod_timer (c015bd42)
> => i915_add_request (f850cef4)
> => i915_gem_do_execbuffer (f8510adc)
> Xorg-1104 [001] 3106.003258: irq_handler_exit:
Isn't this what you asked for?
> irq=29 return=handled
> Xorg-1104 [001] 3106.003259: kernel_stack: <stack trace>
> => handle_edge_irq (c01a1b84)
> => handle_irq (c01059ed)
> => do_IRQ (c058fa1c)
> => common_interrupt (c0103a30)
> => mod_timer (c015bd42)
> => i915_add_request (f850cef4)
> => i915_gem_do_execbuffer (f8510adc)
> => i915_gem_execbuffer (f851123b)
> Xorg-1104 [001] 3106.003272: kfree:
> call_site=f8510958 ptr=0xf5ab9380
> Xorg-1104 [001] 3106.003273: kernel_stack: <stack trace>
> => i915_gem_do_execbuffer (f8510958)
> => i915_gem_execbuffer (f851123b)
> => drm_ioctl (f81d57cd)
> => vfs_ioctl (c0216231)
> => do_vfs_ioctl (c0216519)
> => sys_ioctl (c0216817)
> [...]
> Xorg-1104 [001] 3106.003348: sched_wakeup: task
> trace-cmd:3028 [120] success=1 [001]
> Xorg-1104 [001] 3106.003348: kernel_stack: <stack trace>
> => wake_up_process (c0142bd4)
> => hrtimer_wakeup (c016acad)
> => __run_hrtimer (c016b14a)^Ctrace-cmd: Received SIGINT
> Xorg-1104 [001] 3106.003348: kernel_stack: <stack trace>
> => wake_up_process (c0142bd4)
> => hrtimer_wakeup (c016acad)
> => __run_hrtimer (c016b14a)
> => hrtimer_interrupt (c016b4e0)
> => smp_apic_timer_interrupt (c058fae7)
> => apic_timer_interrupt (c0103df1)
> => __module_text_address (c017cdf0)
> [...]
> => wake_up_process (c0142bd4)
> => hrtimer_wakeup (c016acad)
> => __run_hrtimer (c016b14a)^Ctrace-cmd: Received SIGINT
> Xorg-1104 [001] 3106.003348: kernel_stack: <stack trace>
> [...]
>
>
> Note: i can't stop the cmd './trace-cmd report' after
> './trace-cmd record -e all -O stacktrace' but enter 'CTRC+C'.
>
> If it is a bug here? Any comments?
It should stop, but perhaps not immediately. Best to pipe it through
less:
trace-cmd report |less
I may, in the future, make trace-cmd report do its own paging, like git
does. But for now, I just use less.
The reason for the special ctrl-c is because of the python plugin. It
has some strange side effects. One is that it overrides ctrl-c, so I add
a handler to explicitly kill trace-cmd. But that still causes a delay
before the kill happens.
-- Steve
next prev parent reply other threads:[~2012-05-08 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAD+1EGN=QjPkkqNNybqRHkMs7a-qR_gWL7-dMxrcE92qrX0X2w@mail.gmail.com>
[not found] ` <1336399968.14207.141.camel@gandalf.stny.rr.com>
2012-05-08 14:34 ` harryxiyou
2012-05-08 15:06 ` Steven Rostedt [this message]
2012-05-09 9:00 ` harryxiyou
2012-05-09 13:58 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336489566.14207.180.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=cljcore@126.com \
--cc=harryxiyou@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®