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


Groups > linux.kernel > #1415272

Re: [PATCH] perf test: Ignore .scale and other special files

From Andi Kleen <ak@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] perf test: Ignore .scale and other special files
Date 2016-06-06 18:40 +0200
Message-ID <rH5Jf-7nV-13@gated-at.bofh.it> (permalink)
References <rH3R9-68Z-71@gated-at.bofh.it> <rH4au-6he-3@gated-at.bofh.it> <rH4au-6he-1@gated-at.bofh.it> <rH4tQ-6DT-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> [root@jouet ~]# perf stat -e topdown-total-slots:u,cpu/event=topdown-total-slots/u usleep 1
> event syntax error: 'topdown-total-slots:u,cpu/event=topdown-total-slots/u'
>                             \___ parser error
> Run 'perf list' for a list of valid events
> 
>  Usage: perf stat [<options>] [<command>]
> 
>     -e, --event <event>   event selector. use 'perf list' to list available events
> [root@jouet ~]#
> 
> that it fails, Jiri, probably something obvious to you? :-)

Works for me here

./perf stat -e topdown-total-slots:u,cpu/event=topdown-total-slots/u sleep 1

 Performance counter stats for 'sleep 1':

           515,204      topdown-total-slots:u                                       
           514,712      cpu/event=topdown-total-slots/u                                   

       1.001438114 seconds time elapsed


Did you perhaps miss this hunk?

--- a/tools/perf/util/parse-events.l
+++ b/tools/perf/util/parse-events.l
@@ -259,6 +259,7 @@ cycles-ct                                   { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
 cycles-t                                       { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
 mem-loads                                      { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
 mem-stores                                     { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
+topdown-[a-z-]+                                        { return str(yyscanner, PE_KERN

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only

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


Thread

[PATCH] perf test: Ignore .scale and other special files Andi Kleen <andi@firstfloor.org> - 2016-06-06 16:40 +0200
  Re: [PATCH] perf test: Ignore .scale and other special files Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-06-06 17:00 +0200
    Re: [PATCH] perf test: Ignore .scale and other special files Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-06-06 17:20 +0200
      Re: [PATCH] perf test: Ignore .scale and other special files Andi Kleen <ak@linux.intel.com> - 2016-06-06 18:40 +0200
        Re: [PATCH] perf test: Ignore .scale and other special files Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-06-06 22:00 +0200
  Re: [PATCH] perf test: Ignore .scale and other special files Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-06-06 17:00 +0200
  [tip:perf/core] perf test: Ignore .scale and other special files tip-bot for Andi Kleen <tipbot@zytor.com> - 2016-06-08 10:40 +0200

csiph-web