Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1351755ybn; Wed, 2 Oct 2019 14:53:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDTuZrLXm8K+xZB9NVNYgRwEMWK8aU+Yp9pw4rMqyas3c8bXxdPZoCUv8DMslL6kjihhyr X-Received: by 2002:a05:6402:383:: with SMTP id o3mr6243114edv.205.1570053222314; Wed, 02 Oct 2019 14:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570053222; cv=none; d=google.com; s=arc-20160816; b=VTSJC95/uaSWxKS0F1aPExPTR+wCxqkgc6Q3DlfS8Ez8q2ahduILhpT7sitQH8unKn WhvuJwQddk+hgDNKtbK0i017HtXME1ZQ5M7+kA+xZ4UvbMazHw5W/UwBNsd0VKScQE/Y xJaFb5x2ua3grIQEOZ4WxzEqVoj/FyPAxl+vvg480XUuR/q8qiXzqLSJ6nxMTsFwlNjE 1O/qIUxoDkGM8f757xG1AWzaOdsNVnylIHWBzfWVIk1WK3Syv0VNddBhZeKZzRm+DenZ qvyGtqyukEDsJCBNYS+xPl3FdATQjsJUvdnZqJWFPdSTouMvJA2Yyuu1NWAgi9AFA0pt peqA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8xUoba94hqt21S7poDp6aPO/G0u9HsT4zgQ8TPghFjs=; b=ZMoq1PZ+o+0G2zoJSknZwGu2+zQGiBMJmif9SEnvlUPY9ytkjzaZvRm9lPip+3NIlO CyxSpd2oDUSDpG9KPtBb+3BMU3grx/9f8g6t/OL7hYoWgvleD8VV1T89mMOyLoHmtcnh 0OSmHA4quvDJ2PpsjS2ZGFXzg4PIh+Ng6I5uECr9TcpsQPWUQ+vRJCbMMJV5Si9Q777C eI3c3pOuVB5L0r0Pfv8WPZMAjdf0UlsLul5oP7s05QHzQCbzI7xO/xECLGslE9qU6VNO +O5t6a+rHVg+1a2k9Gzzzwa0LEtxLGbkWNctjBM/PDqWc1DOfEhOk3siarPvSAQ0/U9Q iw0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cTT625y5; 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 a3si290254edc.75.2019.10.02.14.53.18; Wed, 02 Oct 2019 14:53:42 -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=cTT625y5; 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 S1729235AbfJBVAb (ORCPT + 99 others); Wed, 2 Oct 2019 17:00:31 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45314 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729030AbfJBVAa (ORCPT ); Wed, 2 Oct 2019 17:00:30 -0400 Received: by mail-qt1-f196.google.com with SMTP id c21so512144qtj.12; Wed, 02 Oct 2019 14:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8xUoba94hqt21S7poDp6aPO/G0u9HsT4zgQ8TPghFjs=; b=cTT625y51C5KdBmq66gcT5Bb7p9nDEZn3xjeYGYmnw0YlqIi6pL8v4gTBwrSYYHG3g zjZYhcoZQijyMOVQrl4LO/2bPXNWwJIefffiOlqoppEiF22JOe/KQXWTLAn5fP/ZDt6R /ELtSy2/tz55ePuY/d2csV60vxY7z/fCUgyMKoLamU6tKYzz2QPdamcGcqFU7IGkuazR gin0GD/7KW+rpSWrT8VSlpdKy576y9+E+tn+pyEbDAAGFyE9l+AaURTDJf+fYw2AhtWD v6ijPkFmYaGjfno945YRRIJP6ss2jsLWpJp6arg7IEJy/UafC1SgKeNM+19D9hp0aWSZ PCqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8xUoba94hqt21S7poDp6aPO/G0u9HsT4zgQ8TPghFjs=; b=uRWEMyNUl4qLQ/c9tq7VQlPmwXMlAWlw//DklBJOBbhoQof8fXtrgS5hAPS/1zY75L Yn8m6hbrqDs8a+EiVAczWEFPRvD3N3eCgvejir6LDnnOmAUlT5dQUMDuE5I+HdhAADVJ Ntt9FMS+JbgSUBbqovulhgJ6GvfQvmTpTso+JUvp1Hd9fQtwlgsyYj/GEHVS7smDSzOb u1DG4gJeeLavrTobpLW/YrqNLmDD4F8uZWpbX13/BI7StN4cuQ9iENKR2hUZMHvBaZSn Tc6gh5ZFnyLzh5iQWhLx6p3iVuehH/ZRdMLfgA5Ggkcx87FBXWq7Kt4Ze41+edt9yGz6 aaNA== X-Gm-Message-State: APjAAAUzdCBZgE7qB0L4toQ04twjn1dUDHCPj2Fx4vXd+R16Y7aCsmrs CqNsPLu4cLjmTsSzpKN1UnSFNQMFezqGcpOrVwzxIMTw X-Received: by 2002:ac8:1099:: with SMTP id a25mr6323923qtj.308.1570050029658; Wed, 02 Oct 2019 14:00:29 -0700 (PDT) MIME-Version: 1.0 References: <20191001113307.27796-1-bjorn.topel@gmail.com> <20191001113307.27796-2-bjorn.topel@gmail.com> In-Reply-To: <20191001113307.27796-2-bjorn.topel@gmail.com> From: Song Liu Date: Wed, 2 Oct 2019 14:00:18 -0700 Message-ID: Subject: Re: [PATCH 1/2] perf tools: Make usage of test_attr__* optional for perf-sys.h To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: open list , Arnaldo Carvalho de Melo , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Networking , bpf , Alexei Starovoitov , Daniel Borkmann , adrian.hunter@intel.com, Jiri Olsa , Namhyung Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 1, 2019 at 4:35 AM Bj=C3=B6rn T=C3=B6pel wrote: > > From: Bj=C3=B6rn T=C3=B6pel > > For users of perf-sys.h outside perf, e.g. samples/bpf/bpf_load.c, > it's convenient not to depend on test_attr__*. > > After commit 91854f9a077e ("perf tools: Move everything related to > sys_perf_event_open() to perf-sys.h"), all users of perf-sys.h will > depend on test_attr__enabled and test_attr__open. > > This commit enables a user to define HAVE_ATTR_TEST to zero in order > to omit the test dependency. > > Fixes: 91854f9a077e ("perf tools: Move everything related to sys_perf_eve= nt_open() to perf-sys.h") > Signed-off-by: Bj=C3=B6rn T=C3=B6pel Acked-by: Song Liu