Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8180272ybn; Tue, 1 Oct 2019 04:33:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfjKhNpwBSVFEKJwdWdeL2Ij6Gq7Kz8faV3TkNONVcwIWCcSf3eoueG3NUkWlo+oSlteA2 X-Received: by 2002:a17:906:3108:: with SMTP id 8mr23404290ejx.11.1569929632995; Tue, 01 Oct 2019 04:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569929632; cv=none; d=google.com; s=arc-20160816; b=gVMt46/wb1D+/l27apHmeyG3bn/lah8QnyxmB6lBRqjLAf9Fi3FnxHE5gopvKe2dIM EJl7qZr5eRPwYGbNMEv2rjfdlFtn3INQNNsh7Stf06Bt2pqf7ZyymWgvZCeXYgJGuQHO HKjRhYYcbrPR1dHcMaG0JYXcJyMgKruB2dYxZFZxClnNdE5lUZNN1Xh0n5nAmJFckXDz OYsrdKEyhT7vGoMm2gLMxrcYv12avKj8SWGt/WNXEUjwBmby/hVETW/Uw2eg69NABSc0 QOd+NndyspqvGVfYYdizVw7YJyFfcycTX659h+jNL0sFwCluar63NoYVL9gS3G6VdqH2 qdfw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=NedOdxduYE192+j0L9U6oJB7serWu3kUApAmq9EK7s0=; b=z/mmj82fP/wiVVpxC+JWD17t68ZS4k7KUsUodOlXoxZHeuixMvbnOTdd+8g+7ePFw9 SdfUV9lPjM5gIVH5HqiQNBhOz6Leaoq3Bi2qfuvAOZQ72UMvn26AYcgWsnVxhbkywcDA TbLZ/BCwQOHnD0iFaNKP9k2q3UeNs56qOeOSB9ZjsVLn0u0N8NA5OZ6x+CvZydz8chCC 23Z5qIDo4N38Dz6gewadbmPFY95/mehsgUgrRJ7oLQiE4xhYlPgRzNHLcgVCH22+7W+j lPV5ARktLPShlWtDcS3zXoGPqyfEZCbJAvWcgIfRM5uImO9a1E4ZO1Kl9pp5BB0sxBEV e3Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/daXUUo"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si8684258edm.349.2019.10.01.04.33.28; Tue, 01 Oct 2019 04:33:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/daXUUo"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731856AbfJALdT (ORCPT + 99 others); Tue, 1 Oct 2019 07:33:19 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36585 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfJALdS (ORCPT ); Tue, 1 Oct 2019 07:33:18 -0400 Received: by mail-pf1-f195.google.com with SMTP id y22so7754842pfr.3; Tue, 01 Oct 2019 04:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NedOdxduYE192+j0L9U6oJB7serWu3kUApAmq9EK7s0=; b=a/daXUUo3gjQK5srp4pfd1YsXfM2FYJ/SeSXm/K2wqAzgLsI9A22Cx4QVUXEUJGgNU RXYzxEaVdT8uZrAbGe+FmV7RbeAHd3PV1uWdmSa+O6uHZ1b49Vr9/MCPMJnR/GAJPLh0 e8R6rENDW2vC5GJcyL+x6f0R2jbS0Mer5ikTdY2rCseYeOII+I2qgTz5L+fbvtdhlGPZ 8uhbD7rFFHTTeAHpTOXP1Ourma6dHQ6oWXd9dm0FZo75AIy69VThTVgPA8s/xw5BVTud fQkemzWD2kwDQ647v/sH8Er1BtLJ1QX3AiiY0PJ3o4D2t5huxSy4KlrbHG65sk5hDxnV /SMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NedOdxduYE192+j0L9U6oJB7serWu3kUApAmq9EK7s0=; b=HapWnr1Z7LD9XOMZSlA6BSSTOQaUe+E6r0nYZ00KRKI8P+Z8O1zk8GsKGmNq7ZRIGJ iVXHuhIPt03PYsrJSB8bBeg6tyLJiid4dGOFRlBBI++n9U9TkV6ZqP/tqZJPTMZb7Rlz FotO5SgOaxl9u95xyMPgbBttD7nROzFd9e4zCrGMPYTp4kAWbGK+Dk0GmXO7/uvqmStT S/1mh6cAnZ+Lsf421di05O8wOCfdEYd/j8DozRowagW8jS0C2EVvM5Qo+z6pTFQ+tMHD 7p5rlQ7gnoLVDYNq2wfqP9SwgWUzYsVdA6Cuy6j/0whIY7XTqOEirs9YROkMVuZ4Un5A kRTQ== X-Gm-Message-State: APjAAAVoEisYodzR8MZdoxu+eYsLsEb2ArCfA1LSXqzTZBVPYX2D3kHi agkZvPpNw638wbpPId5PnW7RvoeIzdMBdg== X-Received: by 2002:a65:6659:: with SMTP id z25mr30064683pgv.23.1569929597494; Tue, 01 Oct 2019 04:33:17 -0700 (PDT) Received: from btopel-mobl.ger.intel.com ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id a29sm16238634pfr.152.2019.10.01.04.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 04:33:16 -0700 (PDT) From: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= To: linux-kernel@vger.kernel.org, acme@kernel.org Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , netdev@vger.kernel.org, bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, adrian.hunter@intel.com, jolsa@kernel.org, namhyung@kernel.org Subject: [PATCH 0/2] perf tools: optional compile time test_attr__* depenency for perf-sys.h Date: Tue, 1 Oct 2019 13:33:05 +0200 Message-Id: <20191001113307.27796-1-bjorn.topel@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This mini series makes it possible to disable the use of test_attr__* for perf-sys.h users outside perf. E.g., samples/bpf/ uses perf-sys.h as a syscall wrapper. Now a user can define HAVE_ATTR_TEST to zero to avoid this, and as a nice side-effect it also fixes the samples/bpf/ build. ;-) Björn Töpel (2): perf tools: Make usage of test_attr__* optional for perf-sys.h samples/bpf: fix build by setting HAVE_ATTR_TEST to zero samples/bpf/Makefile | 1 + tools/perf/perf-sys.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) -- 2.20.1