All of lore.kernel.org
 help / color / mirror / Atom feed
From: andi.platschek@gmail.com (Andreas Platschek)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Need help in printing call stacks for all CPU's
Date: Thu, 21 Nov 2013 11:43:46 +0100	[thread overview]
Message-ID: <528DE3E2.4080807@gmail.com> (raw)
In-Reply-To: <CAB6A5-C3ZFUfYnpSxPVeHTOKLxy5Fqy=h5oZ+e8CzoeByRqB=w@mail.gmail.com>

Hi Sandeep,

This should be possible using ftrace without touching the code. I am not
sure how to trigger on a specific function but I think it should be
possible. Have a look at Documentation/trace/ftrace.txt

andi

On 11/21/2013 11:22 AM, manty kuma wrote:
> I wish to print the call stacks of all the cpus. at a given time. How
> can i do it?
>
> for_each_cpu{
> dump_stack() -> Some function like this available? or i should write
> my own code?
> ...
> }
>
> Any pointers would help.
>
> Thank you,
> Sandeep
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131121/d1ddc341/attachment.html 

  reply	other threads:[~2013-11-21 10:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 10:22 Need help in printing call stacks for all CPU's manty kuma
2013-11-21 10:43 ` Andreas Platschek [this message]
2013-11-21 10:53 ` Fan Du
2013-11-21 11:22 ` Fan Du

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=528DE3E2.4080807@gmail.com \
    --to=andi.platschek@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.