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


Groups > linux.kernel > #1234395

Re: [PATCH v3 4/4] perf tools: Enable event_config terms to tracepoint events

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 4/4] perf tools: Enable event_config terms to tracepoint events
Date 2015-09-28 21:50 +0200
Message-ID <qdMAW-Dy-21@gated-at.bofh.it> (permalink)
References <qdxLz-2vE-1@gated-at.bofh.it> <qdxLz-2vE-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH v3 1/4] perf tools: Adds the config_term callback for different type events He Kuang <hekuang@huawei.com> - 2015-09-28 06:00 +0200
  [PATCH v3 2/4] perf tools: Prompt proper error message for wrong terms of hw/sw events He Kuang <hekuang@huawei.com> - 2015-09-28 06:00 +0200
    Re: [PATCH v3 2/4] perf tools: Prompt proper error message for wrong  terms of hw/sw events Jiri Olsa <jolsa@redhat.com> - 2015-09-28 21:40 +0200
    [tip:perf/core] perf tools:   Show proper error message for wrong terms of hw/sw events tip-bot for He Kuang <tipbot@zytor.com> - 2015-09-29 11:00 +0200
  [PATCH v3 3/4] perf tools: Adds the tracepoint name parsing support He Kuang <hekuang@huawei.com> - 2015-09-28 06:00 +0200
    Re: [PATCH v3 3/4] perf tools: Adds the tracepoint name parsing  support Jiri Olsa <jolsa@redhat.com> - 2015-09-28 21:50 +0200
    [tip:perf/core] perf tools:   Adds the tracepoint name parsing support tip-bot for He Kuang <tipbot@zytor.com> - 2015-09-29 11:00 +0200
  [PATCH v3 4/4] perf tools: Enable event_config terms to tracepoint events He Kuang <hekuang@huawei.com> - 2015-09-28 06:00 +0200
    Re: [PATCH v3 4/4] perf tools: Enable event_config terms to  tracepoint events Jiri Olsa <jolsa@redhat.com> - 2015-09-28 21:50 +0200
    [tip:perf/core] perf tools:   Enable event_config terms to tracepoint events tip-bot for He Kuang <tipbot@zytor.com> - 2015-09-29 11:00 +0200
  Re: [PATCH v3 1/4] perf tools: Adds the config_term callback for  different type events Jiri Olsa <jolsa@redhat.com> - 2015-09-28 21:40 +0200
  Re: [PATCH v3 1/4] perf tools: Adds the config_term callback for  different type events Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-09-28 22:40 +0200
  [tip:perf/core] perf tools:   Adds the config_term callback for different type events tip-bot for He Kuang <tipbot@zytor.com> - 2015-09-29 11:00 +0200

csiph-web