lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 19 Feb 2016 12:08:47 -0300
From:	Arnaldo Carvalho de Melo <acme@...nel.org>
To:	Wang Nan <wangnan0@...wei.com>
Cc:	Alexei Starovoitov <ast@...nel.org>,
	Brendan Gregg <brendan.d.gregg@...il.com>,
	Adrian Hunter <adrian.hunter@...el.com>,
	Cody P Schafer <dev@...yps.com>,
	"David S. Miller" <davem@...emloft.net>,
	He Kuang <hekuang@...wei.com>,
	Jérémie Galarneau 
	<jeremie.galarneau@...icios.com>, Jiri Olsa <jolsa@...nel.org>,
	Kirill Smelkov <kirr@...edi.com>,
	Li Zefan <lizefan@...wei.com>,
	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>,
	Namhyung Kim <namhyung@...nel.org>,
	Peter Zijlstra <peterz@...radead.org>, pi3orama@....com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 12/55] perf tools: Enable config raw and numeric events

Em Fri, Feb 19, 2016 at 11:44:00AM +0000, Wang Nan escreveu:
> This patch allows setting config terms for raw and numeric events.
> For example:
> 
>  # perf stat -e cycles/name=cyc/ ls
>  ...
>  1821108      cyc
>  ...
> 
>  # perf stat -e r6530160/name=event/ ls
>  ...
>  1103195      event
>  ...
> 
>  # perf record -e cycles -e 4:0x6530160/name=evtx,call-graph=fp/ -a sleep 1
>  ...
>  # perf report --stdio

Nice stuff, but I'm investigating now why I'm getting this:

  [acme@...et linux]$ make O=/tmp/build/perf -C tools/perf install-bin
  make: Entering directory '/home/acme/git/linux/tools/perf'
    BUILD:   Doing 'make -j4' parallel build
    BISON    /tmp/build/perf/util/parse-events-bison.c
  util/parse-events.y:436.23-38: error: symbol opt_event_config is used, but is not defined as a token and has no rules
   PE_VALUE ':' PE_VALUE opt_event_config
                         ^^^^^^^^^^^^^^^^
  util/parse-events.y:442.68-69: error: $4 of ‘event_legacy_numeric’ has no declared type
   	ABORT_ON(parse_events_add_numeric(data, list, (u32)$1, $3, $4));
                                                                      ^^
  util/parse-events.y:443.36-37: error: $4 of ‘event_legacy_numeric’ has no declared type
   	parse_events_terms__delete($4);
                                      ^^
  util/parse-events.y:454.74-75: error: $2 of ‘event_legacy_raw’ has no declared type
   	ABORT_ON(parse_events_add_numeric(data, list, PERF_TYPE_RAW, $1, $2));
                                                                            ^^
  util/parse-events.y:455.36-37: error: $2 of ‘event_legacy_raw’ has no declared type
   	parse_events_terms__delete($2);
                                    ^^
  util/Build:122: recipe for target '/tmp/build/perf/util/parse-events-bison.c' failed
  make[3]: *** [/tmp/build/perf/util/parse-events-bison.c] Error 1
  /home/acme/git/linux/tools/build/Makefile.build:116: recipe for target 'util' failed
  make[2]: *** [util] Error 2
  Makefile.perf:434: recipe for target '/tmp/build/perf/libperf-in.o' failed
  make[1]: *** [/tmp/build/perf/libperf-in.o] Error 2
  make[1]: *** Waiting for unfinished jobs....
  Makefile:108: recipe for target 'install-bin' failed
  make: *** [install-bin] Error 2
  make: Leaving directory '/home/acme/git/linux/tools/perf'
  [acme@...et linux]$ 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ