Re: [PATCH 5/9] perf tools: Introduce 'P' modifier

Jiri Olsa
2015-10-06T07:01:52Z

On Mon, Oct 05, 2015 at 04:20:40PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Mon, Oct 05, 2015 at 08:06:05PM +0200, Jiri Olsa escreveu:
> > The 'P' will cause the event to get maximum possible
> > detected precise level.
> >
> > Following record:
> > $ perf record -e cycles:P ...
> >
> > will detect maximum precise level for 'cycles' event
> > and use it.
>
> I had to do a 'make -C tools/perf clean' to get this to work, i.e. it is
> not noticing that the parser files were changed and thus need to run
> again, can you please take a look?

can't see that:

[jolsa@krava perf]$ make
BUILD: Doing 'make -j4' parallel build
CC util/parse-events.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
[jolsa@krava perf]$ touch util/parse-events.l
[jolsa@krava perf]$ make
BUILD: Doing 'make -j4' parallel build
FLEX util/parse-events-flex.c
CC util/parse-events-flex.o
CC util/parse-events.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
[jolsa@krava perf]$ touch util/parse-events.y
[jolsa@krava perf]$ make
BUILD: Doing 'make -j4' parallel build
BISON util/parse-events-bison.c
FLEX util/parse-events-flex.c
CC util/parse-events-bison.o
CC util/parse-events.o
CC util/parse-events-flex.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
[jolsa@krava linux-perf]$ make -C tools/perf
make: Entering directory '/home/jolsa/kernel/linux-perf/tools/perf'
BUILD: Doing 'make -j4' parallel build
CC util/parse-events.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
make: Leaving directory '/home/jolsa/kernel/linux-perf/tools/perf'
[jolsa@krava linux-perf]$ make -C tools/perf
make: Entering directory '/home/jolsa/kernel/linux-perf/tools/perf'
BUILD: Doing 'make -j4' parallel build
BISON util/parse-events-bison.c
FLEX util/parse-events-flex.c
CC util/parse-events-bison.o
CC util/parse-events.o
CC util/parse-events-flex.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
make: Leaving directory '/home/jolsa/kernel/linux-perf/tools/perf'
[jolsa@krava linux-perf]$ make -C tools/perf
make: Entering directory '/home/jolsa/kernel/linux-perf/tools/perf'
BUILD: Doing 'make -j4' parallel build
FLEX util/parse-events-flex.c
CC util/parse-events-flex.o
CC util/parse-events.o
LD util/libperf-in.o
LD libperf-in.o
AR libperf.a
LINK perf
LINK libperf-gtk.so
make: Leaving directory '/home/jolsa/kernel/linux-perf/tools/perf'

jirka