linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xin Long <lucien.xin@gmail.com>
To: Jiri Olsa <jolsa@redhat.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-perf-users@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Namhyung Kim <namhyung@kernel.org>
Subject: Re: perf script doesn't dump a normal call trace
Date: Tue, 6 Nov 2018 17:22:13 +0900	[thread overview]
Message-ID: <CADvbK_fTk=kFwOG9QucE9yDdp6+BD9wAvphZtifZ5UPJL8NK8g@mail.gmail.com> (raw)
In-Reply-To: <20181105084906.GA30951@krava>

On Mon, Nov 5, 2018 at 5:49 PM Jiri Olsa <jolsa@redhat.com> wrote:
>
> On Mon, Nov 05, 2018 at 03:20:15PM +0900, Xin Long wrote:
>
> SNIP
>
> > > > > [root@ibm-x3650m4-02 perf]# ./perf probe 'consume_skb'
> > > > > [root@ibm-x3650m4-02 perf]# ./perf record -g -e probe:consume_skb* -aR ^C
> > > > >
> > > > Thanks Jiri,
> > > >
> > > > My debugging script is using tracepoint with some filters which I
> > > > don't think probe can support.
> > > > Any one have fixes for this tracepoint issue?
> > >
> > > trying to bisect that.. looks like orc code issue,
> > > it works for me when you switch to fp unwind:
> > >   CONFIG_UNWINDER_FRAME_POINTER
> > >
> >
> > That's a good workaround, thanks.
> >
> > Another problem is when I'm using perf built manually from upstream kernel tree,
> > I couldn't see the function's names.
> > # perf --version
> > perf version 4.19.g26f1de
> >
> > # perf report -T
> > # To display the perf.data header info, please use
> > --header/--header-only options.
> > #
> > #
> > # Total Lost Samples: 0
> > #
> > # Samples: 97  of event 'probe:consume_skb'
> > # Event count (approx.): 97
> > #
> > # Children      Self  Trace output
> > # ........  ........  ..................
> > #
> >    100.00%   100.00%  (ffffffff86f090f0)
> >             |
> >             |--93.81%--0xffffffff868000e6
> >             |          0xffffffff8684ed7f
> >             |          0xffffffff868e97ad
> >             |          0xffffffff868e953a
> >             |          0xffffffff87087623
> >             |          0xffffffff8682a06f
> >             |          0xffffffff870872ad
> >             |          |
> >             |          |--89.69%--0xffffffff8720098f
> >             |          |          0xffffffff87201b69
> >             |          |          0xffffffff868b9c2e
> >
> >
> > The below is with rhel7's perf
> > # perf --version
> > perf version 3.10.0-957.el7.x86_64.debug
> > # perf report -T
> > # To display the perf.data header info, please use
> > --header/--header-only options.
> > #
> > #
> > # Total Lost Samples: 0
> > #
> > # Samples: 97  of event 'probe:consume_skb'
> > # Event count (approx.): 97
> > #
> > # Children      Self  Trace output
> > # ........  ........  ..................
> > #
> >    100.00%   100.00%  (ffffffff86f090f0)
> >             |
> >             |--93.81%--0x2000e6
> >             |          start_secondary
> >             |          cpu_startup_entry
> >             |          do_idle
> >             |          default_idle_call
> >             |          arch_cpu_idle
> >             |          default_idle
> >             |          |
> >             |          |--89.69%--ret_from_intr
> >             |          |          do_IRQ
> >             |          |          irq_exit
>
> I think that's already fixed on Arnaldo's perf/urgent branch,
>   git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
>
> but perhaps this post as well:
>   https://lore.kernel.org/lkml/20181031091043.23465-1-adrian.hunter@intel.com/
>
> please give it a try.. it should be merged in soon
I will try it later, I have another question?
# perf report -T

# Samples: 97  of event 'probe:consume_skb'
# Event count (approx.): 97
#
# Children      Self  Trace output
# ........  ........  ..................
#
   100.00%   100.00%  (ffffffff86f090f0)
            |
            |--93.81%--0x2000e6
            |          start_secondary
            |          cpu_startup_entry
            |          do_idle
            |          default_idle_call
            |          arch_cpu_idle
          [...]
            |          |                     |
            |          |                      --2.06%--arp_process
            |          |                                neigh_update
            |          |                                __neigh_notify
            |          |                                rtnl_notify
            |          |                                nlmsg_notify
            |          |                                consume_skb  <-----[1]


This command can show a nice tree, and it has the total samples number 97.
But I couldn't see how many of them are from [1]?
Do you know how to count each path's numbers?
Is there an option for "perf report" to do these statistics?
Thanks.

      reply	other threads:[~2018-11-06  8:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02  6:36 perf script doesn't dump a normal call trace Xin Long
2018-11-02 10:26 ` Jiri Olsa
2018-11-03  9:36   ` Xin Long
2018-11-04 19:17     ` Jiri Olsa
2018-11-05  6:20       ` Xin Long
2018-11-05  8:49         ` Jiri Olsa
2018-11-06  8:22           ` Xin Long [this message]

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='CADvbK_fTk=kFwOG9QucE9yDdp6+BD9wAvphZtifZ5UPJL8NK8g@mail.gmail.com' \
    --to=lucien.xin@gmail.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.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;
as well as URLs for NNTP newsgroup(s).