public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: He Kuang <hekuang@huawei.com>
Cc: a.p.zijlstra@chello.nl, mingo@redhat.com, acme@kernel.org,
	jolsa@kernel.org, kan.liang@intel.com, adrian.hunter@intel.com,
	wangnan0@huawei.com, pi3orama@163.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/4] perf tools: Enable event_config terms to tracepoint events
Date: Mon, 28 Sep 2015 21:40:16 +0200	[thread overview]
Message-ID: <20150928194016.GD18363@krava.redhat.com> (raw)
In-Reply-To: <1443412336-120050-4-git-send-email-hekuang@huawei.com>

On Mon, Sep 28, 2015 at 03:52:16AM +0000, He Kuang wrote:
> This patch enable config terms for tracepoint perf events. Valid terms
> for tracepoint events are call-graph and stack-size, so we can use
> different callgraph settings for each event and eliminate unnecessary
> overhead.
> 
> Here is an example for using different call-graph config for each
> tracepoint.
> 
>   $ perf record -e syscalls:sys_enter_write/call-graph=fp/
>                 -e syscalls:sys_exit_write/call-graph=no/
>                 dd if=/dev/zero of=test bs=4k count=10
> 
>   $ perf report --stdio
> 
>   #
>   # Total Lost Samples: 0
>   #
>   # Samples: 13  of event 'syscalls:sys_enter_write'
>   # Event count (approx.): 13
>   #
>   # Children      Self  Command  Shared Object       Symbol
>   # ........  ........  .......  ..................  ......................
>   #
>       76.92%    76.92%  dd       libpthread-2.20.so  [.] __write_nocancel
>                    |
>                    ---__write_nocancel
> 
>       23.08%    23.08%  dd       libc-2.20.so        [.] write
>                    |
>                    ---write
>                       |
>                       |--33.33%-- 0x2031342820736574
>                       |
>                       |--33.33%-- 0xa6e69207364726f
>                       |
>                        --33.33%-- 0x34202c7320393039
>   ...
> 
>   # Samples: 13  of event 'syscalls:sys_exit_write'
>   # Event count (approx.): 13
>   #
>   # Children      Self  Command  Shared Object       Symbol
>   # ........  ........  .......  ..................  ......................
>   #
>       76.92%    76.92%  dd       libpthread-2.20.so  [.] __write_nocancel
>       23.08%    23.08%  dd       libc-2.20.so        [.] write
>        7.69%     0.00%  dd       [unknown]           [.] 0x0a6e69207364726f
>        7.69%     0.00%  dd       [unknown]           [.] 0x2031342820736574
>        7.69%     0.00%  dd       [unknown]           [.] 0x34202c7320393039
> 
> Signed-off-by: He Kuang <hekuang@huawei.com>

Acked-by: Jiri Olsa <jolsa@kernel.org>

thanks,
jirka

  reply	other threads:[~2015-09-28 19:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28  3:52 [PATCH v3 1/4] perf tools: Adds the config_term callback for different type events He Kuang
2015-09-28  3:52 ` [PATCH v3 2/4] perf tools: Prompt proper error message for wrong terms of hw/sw events He Kuang
2015-09-28 19:39   ` Jiri Olsa
2015-09-29  8:50   ` [tip:perf/core] perf tools: Show " tip-bot for He Kuang
2015-09-28  3:52 ` [PATCH v3 3/4] perf tools: Adds the tracepoint name parsing support He Kuang
2015-09-28 19:39   ` Jiri Olsa
2015-09-29  8:50   ` [tip:perf/core] " tip-bot for He Kuang
2015-09-28  3:52 ` [PATCH v3 4/4] perf tools: Enable event_config terms to tracepoint events He Kuang
2015-09-28 19:40   ` Jiri Olsa [this message]
2015-09-29  8:50   ` [tip:perf/core] " tip-bot for He Kuang
2015-09-28 19:39 ` [PATCH v3 1/4] perf tools: Adds the config_term callback for different type events Jiri Olsa
2015-09-28 20:32 ` Arnaldo Carvalho de Melo
2015-09-29  8:49 ` [tip:perf/core] " tip-bot for He Kuang

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=20150928194016.GD18363@krava.redhat.com \
    --to=jolsa@redhat.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=hekuang@huawei.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pi3orama@163.com \
    --cc=wangnan0@huawei.com \
    /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