Re: [PATCH 1/8] perf tools: Add feature check for libbabeltrace
From: Namhyung Kim
Date: Mon Dec 08 2014 - 03:07:54 EST
Hi Jiri,
On Thu, Dec 4, 2014 at 1:23 AM, Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> +ifndef NO_LIBBABELTRACE
> + # for linking with debug library, run like:
> + # make DEBUG=1 LIBBABELTRACE_DIR=/opt/libdw/
s/libdw/libbabeltrace/
> + ifdef LIBBABELTRACE_DIR
> + LIBBABELTRACE_CFLAGS := -I$(LIBBABELTRACE_DIR)/include
> + LIBBABELTRACE_LDFLAGS := -L$(LIBBABELTRACE_DIR)/lib
> + endif
> + FEATURE_CHECK_CFLAGS-libbabeltrace := $(LIBBABELTRACE_CFLAGS)
> + FEATURE_CHECK_LDFLAGS-libbabeltrace := $(LIBBABELTRACE_LDFLAGS) -lbabeltrace-ctf
> +endif
> +
> # include ARCH specific config
> -include $(src-perf)/arch/$(ARCH)/Makefile
>
> @@ -201,6 +212,7 @@ CORE_FEATURE_TESTS = \
> stackprotector-all \
> timerfd \
> libdw-dwarf-unwind \
> + libbabeltrace \
> zlib
>
> LIB_FEATURE_TESTS = \
> @@ -216,6 +228,7 @@ LIB_FEATURE_TESTS = \
> libslang \
> libunwind \
> libdw-dwarf-unwind \
> + libbabeltrace \
> zlib
>
> VF_FEATURE_TESTS = \
> @@ -661,6 +674,17 @@ else
> NO_PERF_READ_VDSOX32 := 1
> endif
>
> +ifndef NO_LIBBABELTRACE
> + ifeq ($(feature-libbabeltrace), 0)
> + msg := $(warning No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-devel/libbabeltrace-dev);
It seems that Ubuntu has libbabeltrace-ctf-dev package.
Thanks,
Namhyung
> + NO_LIBBABELTRACE := 1
> + else
> + CFLAGS += -DHAVE_LIBBABELTRACE_SUPPORT $(LIBBABELTRACE_CFLAGS)
> + LDFLAGS += $(LIBBABELTRACE_LDFLAGS)
> + EXTLIBS += -lbabeltrace-ctf
> + endif
> +endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/