From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87AC4C76188 for ; Tue, 16 Jul 2019 08:48:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BBFA2173B for ; Tue, 16 Jul 2019 08:48:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hxGFXlI+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BBFA2173B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vinAreuGDw6yakOHT6d676W/iAdjQI9H9MMID2KMlTk=; b=hxGFXlI+XCXSGB 36AGse3IR3e7XpSs2C5XUnPcI/OwQenxR+gJdWxgmCSlM2iHhex+NPkwFpMUonM/LWJdPi1QA7G+W m3gbvBUQ33cE5DAjQ6ECFJqaI4mK7j9ACUuRcHro+5FaofFpZgO7B/G2GxAgntlVzdLob3tg7AVrC I7E7aEQWRLRKMLxMhdHpiDodGS2lSCq4yb9PggxkvgypwV+EdQVnh0/V/Mji1xQAjZKd76nJAX1kl 3hvTtdSpQG00pIO1syt2TuVjV709l1e7BCGe4xxVwy8+8o26Koi6k/CpU9WaGzWn2vL+ROXdQ2iqK sE/QByFjNsGhJU2OLqsw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hnJ7z-0000kp-8X; Tue, 16 Jul 2019 08:48:03 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hnJ6n-0000DT-M4 for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2019 08:46:51 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3DA1A308FBAF; Tue, 16 Jul 2019 08:46:47 +0000 (UTC) Received: from krava (unknown [10.43.17.77]) by smtp.corp.redhat.com (Postfix) with SMTP id A007A611DC; Tue, 16 Jul 2019 08:46:44 +0000 (UTC) Date: Tue, 16 Jul 2019 10:46:43 +0200 From: Jiri Olsa To: Igor Lubashev Subject: Re: [PATCH 1/3] perf: Add capability-related utilities Message-ID: <20190716084643.GA22317@krava> References: <1562112605-6235-1-git-send-email-ilubashe@akamai.com> <1562112605-6235-2-git-send-email-ilubashe@akamai.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1562112605-6235-2-git-send-email-ilubashe@akamai.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 16 Jul 2019 08:46:47 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190716_014649_944614_953EB9C4 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Poirier , Suzuki K Poulose , Peter Zijlstra , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , James Morris , Alexander Shishkin , Ingo Molnar , Namhyung Kim , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 02, 2019 at 08:10:03PM -0400, Igor Lubashev wrote: > Add utilities to help checking capabilities of the running process. > Make perf link with libcap. > > Signed-off-by: Igor Lubashev > --- > tools/perf/Makefile.config | 2 +- > tools/perf/util/Build | 1 + > tools/perf/util/cap.c | 24 ++++++++++++++++++++++++ > tools/perf/util/cap.h | 10 ++++++++++ > tools/perf/util/event.h | 1 + > tools/perf/util/python-ext-sources | 1 + > tools/perf/util/util.c | 9 +++++++++ > 7 files changed, 47 insertions(+), 1 deletion(-) > create mode 100644 tools/perf/util/cap.c > create mode 100644 tools/perf/util/cap.h > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 85fbcd265351..21470a50ed39 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -259,7 +259,7 @@ CXXFLAGS += -Wno-strict-aliasing > # adding assembler files missing the .GNU-stack linker note. > LDFLAGS += -Wl,-z,noexecstack > > -EXTLIBS = -lpthread -lrt -lm -ldl > +EXTLIBS = -lpthread -lrt -lm -ldl -lcap I wonder we should detect libcap or it's everywhere.. Arnaldo's compile test suite might tell jirka _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel