Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5876542ybi; Sun, 21 Jul 2019 04:29:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc5tpWqKyzLw0aWMIqUH+HEv9d1KpApDxUzVoB4jEA1IOCcWarUbznT+0zTz0XqBcFubfB X-Received: by 2002:a17:902:16f:: with SMTP id 102mr66925806plb.94.1563708581237; Sun, 21 Jul 2019 04:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563708581; cv=none; d=google.com; s=arc-20160816; b=weeZxRDeev90hoZPC7hshCI5km5FTXSLUNsqazWChnNYtYV/VJrJJJUCTwwrRd5iFu RqHxCbgrRGAo+O4tL6zefkP12q/pts6P2QGi9dLO1aXib2sCv9ORxS3prKJ+ST1k7Jvz QoK7+vz3u8DOa6AjC6NvVNF9CHtc96O7wePsvAfOEgAZ4MtytiNbNGk+gRqMV8QlArio 5pFegfiTI6GTlniHzOsdnC30x9cgPu+XMUStsoDV9AmTgxa+w63aVeMkbrBeimJKToXz 6yj+K/vucs2vgphRmaIGWM+AC51jg7sPqZKdnsi5Y7aXggB0608zH1MhfYFuQB7/3nFl Inow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6L7iVDnU7NFg6pxNrWXcfLPyR9lZYWqg1E+3LR1RLc8=; b=OFFUTtVlIZhyx7EZRe6mJz2Ge9amanndZFXr/Qn7o4G/NblqyDK2jRjdVRHKCMTFUW a0HjbrpSpekpmDivMFx/sU7vf0qFnQBUDJ+xefU7xhly0QIhYjJJwUcuxrErAOn6gt/X RjzCqLlsKjIERKMc2Bt0oSTok7IbwvdWZ+yqp5/BnL0BnjLtfWcgcBl+mspI1i3dlhH2 5Bi381iuaV+dtyu9hopyeQK2ui1/AA7adwsQjdiHZQB0b2tB+oXS3gpPbzPereWlJCmO doQS/GpceJiS3xrN+ghJv0F9Rj7VU34EhZ7CbCSXqHx+bV51DKCtlr4KNDQjHjAuEk97 OJ1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si6645800pgm.473.2019.07.21.04.29.25; Sun, 21 Jul 2019 04:29:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbfGUL2U (ORCPT + 99 others); Sun, 21 Jul 2019 07:28:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbfGUL2U (ORCPT ); Sun, 21 Jul 2019 07:28:20 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E49C78535D; Sun, 21 Jul 2019 11:28:19 +0000 (UTC) Received: from krava.redhat.com (ovpn-204-23.brq.redhat.com [10.40.204.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 60D545D9D3; Sun, 21 Jul 2019 11:28:15 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Andi Kleen , Alexey Budankov , Michael Petlan Subject: [PATCH 25/79] libperf: Add libperf in python.so compilation Date: Sun, 21 Jul 2019 13:24:12 +0200 Message-Id: <20190721112506.12306-26-jolsa@kernel.org> In-Reply-To: <20190721112506.12306-1-jolsa@kernel.org> References: <20190721112506.12306-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sun, 21 Jul 2019 11:28:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Link libperf.a with python.so. Link: http://lkml.kernel.org/n/tip-kxsfxvj7e2noz2kzhyf2ifck@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Makefile.perf | 1 + tools/perf/util/setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 6e7e7d44ffac..67512a12276b 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -307,6 +307,7 @@ LIBBPF = $(BPF_PATH)libbpf.a LIBSUBCMD = $(SUBCMD_PATH)libsubcmd.a LIBPERF = $(LIBPERF_PATH)libperf.a +export LIBPERF # python extension build directories PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/ diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py index a1a68a2fa917..d48f9cd58964 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -48,6 +48,7 @@ build_lib = getenv('PYTHON_EXTBUILD_LIB') build_tmp = getenv('PYTHON_EXTBUILD_TMP') libtraceevent = getenv('LIBTRACEEVENT') libapikfs = getenv('LIBAPI') +libperf = getenv('LIBPERF') ext_sources = [f.strip() for f in open('util/python-ext-sources') if len(f.strip()) > 0 and f[0] != '#'] @@ -64,7 +65,7 @@ perf = Extension('perf', include_dirs = ['util/include'], libraries = extra_libraries, extra_compile_args = cflags, - extra_objects = [libtraceevent, libapikfs], + extra_objects = [libtraceevent, libapikfs, libperf], ) setup(name='perf', -- 2.21.0