Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2704501pxv; Sun, 27 Jun 2021 06:20:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF7c9SXoEfcnaMWJNzVZ3qzOCri0poVqDJRQAoD1E17JT5VgTFdYS2hbcRsYZiYW4ImF3t X-Received: by 2002:a92:c80a:: with SMTP id v10mr956346iln.251.1624800027524; Sun, 27 Jun 2021 06:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624800027; cv=none; d=google.com; s=arc-20160816; b=hvBxTLM/TI518+5n0sBCoNHJlUNqb6t/mBm7SQIEEYx+1IZxo9X37xdDmNJTOvhLhH IPQwgwViVjmJJgyDvKDJOcWk1Y2JFXG8nFc90unD6Hpk1VABoiIArnKNEddh+uVSZdrp gr/GkRn3/L+2f/Gtf4xtv30RPvPhmo4hHOTAcHlOJYciYLhTqFav47RWb9FXA4HE+qBy JqgAMskmCiu7D2WgVLrUni0wzoSb8TygsSiAed7y0hfvP1U0V9gHZNmYD8HZHUXMgUpV pLuVGEZ/i+C08w/FDoxXtGD/p0YfEUcAj60G5Jk8XF7AbbEH/o2B3TPm8Rycg0LL2zbP vI4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lIId6uYPdTa51dbD2Ecj/NtnxcZJrAyhMw0tAvkb+VU=; b=Ic8MnQeBziawhTBVlsLBTy3MxtoG7BCdrw8h+tYHgy27AClRH4JLu3M09Mg/rvRdK/ zJqHlJiotoA3gNRQdidR/xyAMnKxXF3htSGueMXAgk1sc/h6JownETlB3QmbrWPFouLk TdPdy+5ARM3MuZFgQl5+Tqx3JTzWOGzaBRKgGp4RPlM9cpj6E+GGv8S9DgExW7pNKXoJ Nw7+yOVTfyXu2wP7OLJq85OjLblfs5RCdZ4TYVH2iOz1KLSyxQvm1dmqqdcwjsUXaWK2 MfAG2UBz/lt5IgVneZcr/Pq7fvdFDU2Qz5VDtyO1F3lxa4T4M4XCw2OS/Ww/q46mFKJE 5eLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si8072075jas.62.2021.06.27.06.20.15; Sun, 27 Jun 2021 06:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhF0NUm (ORCPT + 99 others); Sun, 27 Jun 2021 09:20:42 -0400 Received: from mga18.intel.com ([134.134.136.126]:60751 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbhF0NUl (ORCPT ); Sun, 27 Jun 2021 09:20:41 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10027"; a="195137056" X-IronPort-AV: E=Sophos;i="5.83,302,1616482800"; d="scan'208";a="195137056" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2021 06:18:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,302,1616482800"; d="scan'208";a="640589046" Received: from ahunter-desktop.fi.intel.com ([10.237.72.79]) by fmsmga006.fm.intel.com with ESMTP; 27 Jun 2021 06:18:14 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Andi Kleen , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Leo Yan , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 05/10] perf build: Install perf_dlfilter.h Date: Sun, 27 Jun 2021 16:18:13 +0300 Message-Id: <20210627131818.810-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210627131818.810-1-adrian.hunter@intel.com> References: <20210627131818.810-1-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Users of the --dlfilter option need to include perf_dlfilter.h in their filters. Install it to the include path. Signed-off-by: Adrian Hunter --- tools/perf/Makefile.config | 3 +++ tools/perf/Makefile.perf | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 8dc7cef684dc..eb8e487ef90b 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -1117,6 +1117,8 @@ prefix ?= $(HOME) endif bindir_relative = bin bindir = $(abspath $(prefix)/$(bindir_relative)) +includedir_relative = include +includedir = $(abspath $(prefix)/$(includedir_relative)) mandir = share/man infodir = share/info perfexecdir = libexec/perf-core @@ -1149,6 +1151,7 @@ ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) STRACE_GROUPS_DIR_SQ = $(subst ','\'',$(STRACE_GROUPS_DIR)) DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) bindir_SQ = $(subst ','\'',$(bindir)) +includedir_SQ = $(subst ','\'',$(includedir)) mandir_SQ = $(subst ','\'',$(mandir)) infodir_SQ = $(subst ','\'',$(infodir)) perfexecdir_SQ = $(subst ','\'',$(perfexecdir)) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index e47f04e5b51e..c9e0de5b00c1 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -923,7 +923,9 @@ install-tools: all install-gtk $(call QUIET_INSTALL, binaries) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \ $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \ - $(LN) '$(DESTDIR_SQ)$(bindir_SQ)/perf' '$(DESTDIR_SQ)$(bindir_SQ)/trace' + $(LN) '$(DESTDIR_SQ)$(bindir_SQ)/perf' '$(DESTDIR_SQ)$(dir_SQ)/trace'; \ + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(includedir_SQ)/perf'; \ + $(INSTALL) util/perf_dlfilter.h -t '$(DESTDIR_SQ)$(includedir_SQ)/perf' ifndef NO_PERF_READ_VDSO32 $(call QUIET_INSTALL, perf-read-vdso32) \ $(INSTALL) $(OUTPUT)perf-read-vdso32 '$(DESTDIR_SQ)$(bindir_SQ)'; -- 2.17.1