From patchwork Tue Dec 10 20:31:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 22231 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A6D1423908 for ; Tue, 10 Dec 2013 20:31:42 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf10769504qcx.0 for ; Tue, 10 Dec 2013 12:31:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8preeXzT8zlFuks650le9O3mzBlZ3tPMye2iyLNGjCQ=; b=Jsl9w5wGueGLTB3sEICCB6FjGCACBzc1iiPxnDaR1PlA8jYTi54nwgSu9pru/Z0uUr 7xMRGfM0jZonQsCoF+XSSJn6qOVNtB/VVBhwrtd6DZ0vM07V3tkBJIXLoBR/PCeI0F9+ C53uTD5gJ2McW7UwKEkJK52wd4C0V9i8mITshg/mOZg2PBZ7FhLfbMkeCwBU0n1fUjPI xDo42qZSg1FAcN0aHiHvKybaF1AmvWMmZuVNLxOtw7K5Na1XX5mhooo0uTR2XKjeo4nz eIed9QGKc+RSCoXJrpGNm52ZIXQS3+7/gRL6nuWwOO9Iq7IksHzULZh3dOy/bhFeMBdB BsoQ== X-Gm-Message-State: ALoCoQmodxwuinEd/0MZsL0Y/s8W8l3TItcKiG9Bc5Bw3ieo5lYHdIJB+Lp494TvRu4Sdy/uCXpP X-Received: by 10.236.130.84 with SMTP id j60mr1181692yhi.48.1386707502273; Tue, 10 Dec 2013 12:31:42 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.182.80.230 with SMTP id u6ls1324940obx.86.gmail; Tue, 10 Dec 2013 12:31:42 -0800 (PST) X-Received: by 10.182.230.135 with SMTP id sy7mr18292909obc.24.1386707502166; Tue, 10 Dec 2013 12:31:42 -0800 (PST) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx.google.com with ESMTPS id x6si11403760obl.62.2013.12.10.12.31.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 12:31:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.214.173; Received: by mail-ob0-f173.google.com with SMTP id gq1so5956383obb.32 for ; Tue, 10 Dec 2013 12:31:42 -0800 (PST) X-Received: by 10.60.74.37 with SMTP id q5mr18339694oev.3.1386707501994; Tue, 10 Dec 2013 12:31:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp217183vcz; Tue, 10 Dec 2013 12:31:41 -0800 (PST) X-Received: by 10.49.19.40 with SMTP id b8mr36088109qee.8.1386707501290; Tue, 10 Dec 2013 12:31:41 -0800 (PST) Received: from merlin.infradead.org (merlin.infradead.org. [2001:4978:20e::2]) by mx.google.com with ESMTPS id b3si13085266qab.109.2013.12.10.12.31.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2013 12:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of BATV+79f72d30f8d77a238ec3+3761+infradead.org+acme@merlin.srs.infradead.org designates 2001:4978:20e::2 as permitted sender) client-ip=2001:4978:20e::2; Received: from [177.158.141.108] (helo=zoo.ghostprotocols.net) by merlin.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1VqTxp-0005I1-Kl; Tue, 10 Dec 2013 20:31:29 +0000 Received: by zoo.ghostprotocols.net (Postfix, from userid 1000) id C124C1E1B76; Tue, 10 Dec 2013 17:31:20 -0300 (BRT) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Jean Pihet , Jiri Olsa , Will Deacon , linaro-kernel@lists.linaro.org, patches@linaro.org, Arnaldo Carvalho de Melo Subject: [PATCH 33/34] perf tools: Add per-feature check flags Date: Tue, 10 Dec 2013 17:31:15 -0300 Message-Id: <1386707476-12370-14-git-send-email-acme@infradead.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1386707476-12370-1-git-send-email-acme@infradead.org> References: <1386707476-12370-1-git-send-email-acme@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by merlin.infradead.org See http://www.infradead.org/rpr.html X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: acme@infradead.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jean Pihet Add CFLAGS and LDFLAGS for each feature to be checked. This allows to pass flags and parameters to the feature checks compilation. Also simplifies the feature check makefile, to come in a subsequent patch. Signed-off-by: Jean Pihet Acked-by: Ingo Molnar Acked-by: Jiri Olsa Cc: Ingo Molnar Cc: Jiri Olsa Cc: Will Deacon Cc: linaro-kernel@lists.linaro.org Cc: patches@linaro.org Link: http://lkml.kernel.org/r/1386678244-13535-2-git-send-email-jean.pihet@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/config/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index bae10720a136..2afb132db51a 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -102,7 +102,7 @@ endif feature_check = $(eval $(feature_check_code)) define feature_check_code - feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBUNWIND_LIBS="$(LIBUNWIND_LIBS)" -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0) + feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" LIBUNWIND_LIBS="$(LIBUNWIND_LIBS)" -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0) endef feature_set = $(eval $(feature_set_code))