[PATCH 02/10] jevents: Program to convert JSON file to C style file

Jiri Olsa jolsa at redhat.com
Thu May 28 22:06:33 AEST 2015

On Wed, May 27, 2015 at 02:23:21PM -0700, Sukadev Bhattiprolu wrote:


> diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build
> new file mode 100644
> index 0000000..7e0c85c
> --- /dev/null
> +++ b/tools/perf/pmu-events/Build
> @@ -0,0 +1,10 @@
> +jevents-y	+= json.o jsmn.o jevents.o
> +pmu-events-y	+= pmu-events.o
> +JSON		=  $(shell find pmu-events/arch/$(ARCH) -name '*.json')

you might want to check if there's the directory first,
or if there's a way to tell find to be quiet or ignore that

find: ‘pmu-events/arch/x86’: No such file or directory
  CC       pmu-events/json.o
  CC       pmu-events/jsmn.o
  CC       pmu-events/jevents.o
  LD       pmu-events/jevents-in.o
  LINK     pmu-events/jevents
find: ‘pmu-events/arch/x86’: No such file or directory
pmu-events/jevents: Error walking file tree pmu-events/arch/x86
Creating empty pmu_events_map[] table
  CC       pmu-events/pmu-events.o


More information about the Linuxppc-dev mailing list