All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Hollmann <hollmann@in.tum.de>
To: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>,
	Jiri Olsa <jolsa@kernel.org>,
	"linux-perf-use." <linux-perf-users@vger.kernel.org>
Subject: Re: User defined metrics for perf stat?
Date: Tue, 2 Feb 2016 17:24:16 +0100	[thread overview]
Message-ID: <CAGz0_-0HtuVf9XV1NZduHEtwz4nKJb8+Jib6_AksgAdG=pL=TA@mail.gmail.com> (raw)
In-Reply-To: <20160202085802.GA4257@krava.brq.redhat.com>

Jiri, how do you handle raw counters with this python stat__*
callback? What is the name of the callback?

Is there any documentation on that? Thanks!

./perf stat -e cycles,"cpu/config=0x6530160/" record kill
kill: not enough arguments

 Performance counter stats for 'kill':

         1,016,510      cycles
             3,445      cpu/config=0x6530160/

       0.001278590 seconds time elapsed

./perf script
CPU   THREAD             VAL             ENA             RUN
 TIME EVENT
 -1    18827         1016510          747877          747877
1278590 cycles
 -1    18827            3445          747877          747877
1278590 cpu/config=0x6530160/

2016-02-02 9:58 GMT+01:00 Jiri Olsa <jolsa@redhat.com>:
> On Tue, Feb 02, 2016 at 12:33:51AM +0100, Andreas Hollmann wrote:
>> Thanks, this is what I was looking for!
>>
>> Why was the formula language abandoned? To restricted?
>> It would be still useful for interval prints.
>
> yea the python script interface is way more powerful
> then whatever we would come with
>
>>
>> perf stat record und perf stat report work,
>> but I get with perf script the following output/error. (Kernel 4.4,
>> perf 4.5-rc2)
>>
>> $ perf script -s scripts/python/stat-cpi.py
>> Display of symbols requested but neither sample IP nor sample address
>> is selected. Hence, no addresses to convert to symbols.
>
> hum, what was the record command? so I could recreate..
>
> thanks,
> jirka

  parent reply	other threads:[~2016-02-02 16:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31 16:53 User defined metrics for perf stat? Andreas Hollmann
2016-02-01 17:15 ` Arnaldo Carvalho de Melo
2016-02-01 17:27   ` Jiri Olsa
2016-02-01 23:33     ` Andreas Hollmann
2016-02-02  8:58       ` Jiri Olsa
2016-02-02  9:42         ` Andreas Hollmann
2016-02-02 16:24         ` Andreas Hollmann [this message]
2016-02-03  7:48           ` Jiri Olsa
2016-02-03 11:43             ` Andreas Hollmann
2016-02-03 14:09               ` Jiri Olsa
2016-02-03 15:25                 ` Andreas Hollmann
2016-02-05 14:12             ` Andreas Hollmann
2016-02-06 21:54               ` Jiri Olsa
2016-02-03 12:39         ` Milian Wolff
2016-02-03 14:11           ` Jiri Olsa
2016-02-03 14:18             ` eBPF counters for 'perf stat' e.g.: " Arnaldo Carvalho de Melo
2016-02-04  9:46               ` Wangnan (F)
2016-02-03 14:43             ` Milian Wolff

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='CAGz0_-0HtuVf9XV1NZduHEtwz4nKJb8+Jib6_AksgAdG=pL=TA@mail.gmail.com' \
    --to=hollmann@in.tum.de \
    --cc=acme@kernel.org \
    --cc=jolsa@kernel.org \
    --cc=jolsa@redhat.com \
    --cc=linux-perf-users@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 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.