perf script: Use HAVE_LIBXXX_SUPPORT to replace NO_LIBXXX
authorJin Yao <yao.jin@linux.intel.com>
Mon, 9 Apr 2018 10:26:47 +0000 (18:26 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Apr 2018 13:33:29 +0000 (10:33 -0300)
commit90ce61b91903f9c357cbceced45d41642f2aa812
tree04e222d8a65824f238e6a1a3081eccecfd605a4f
parentfd97d39b0aa49a4beb429aec344604c1b689f089
perf script: Use HAVE_LIBXXX_SUPPORT to replace NO_LIBXXX

In Makefile.config, we define the conditional compilation variables
HAVE_LIBPERL_SUPPORT and HAVE_LIBPYTHON_SUPPORT.

To make the C code more consistent, this patch replaces
NO_LIBPERL/NO_LIBPYTHON in C code with HAVE_LIBPERL_SUPPORT/
HAVE_LIBPYTHON_SUPPORT.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1523269609-28824-2-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
tools/perf/util/trace-event-scripting.c