Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1369322ybi; Wed, 17 Jul 2019 14:06:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9GBZKLSFPz7ru8BEv4K53HUxc0LVQF9zIg7GINSKDPBUieZU3u6/VaSVjgL0T41sfTDTy X-Received: by 2002:a17:90a:30cf:: with SMTP id h73mr47334281pjb.42.1563397604125; Wed, 17 Jul 2019 14:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563397604; cv=none; d=google.com; s=arc-20160816; b=M7S0t6EJdyRFJoVPZZdEnGTDSwp1HN6kcgm2qMEJAN8NSRSnJz+096dN5WCcD6qmrP 48E2vWiBbYOFWDkZuipVasHdom++CRX+X6q7bLjTpptMvrsbcUjmFBq++tnEu3c9rmaL qqzsjiAXAwdedjQXAtbMOYlGnxmVUfumhpv8wnsCS2J9uK8AYEj/YZ+HBOxcPV8W7pU4 bkTYaoEtUywblltsewaTDFWGIk/NrJ/V7GhL+i7Z9kX/nZoW6gVoFWzdKEz9c2YTD7W7 PC+axRmQUJvDhIkVf32CE9moaY7jzZ2VRhsSIuYSX3syonnDZb6z815lN4fGhIvL/saO vQYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=TdNCjtIZoEvzk7CFQvtZTCtYl6pPEGqJ5p+G7wRu/MI=; b=gjQ0DplNskBrumXn+B0oIfKc+8ouGttvcEqS7P2j8rrnA93EVVROGCkPCuGhmP8l12 AaeyZuAemMLj+P80bKzlRSdOFp2hPsNz08dOUWt/Yrf/SFDiZINkzlGrWbpCi5LGVoT6 0KnZviVtlsNCz5NWXJp5rLfPHVJJM85X7+Qh7cgtHpBSNkn5E34YFk7DNsd95KaC/cF7 Ju+9fymX4z6gnDEB141RrKAnank8mbSdhi/hOn23CcUilsPaFQLnVP0dTRHKzdI6pRBC pjkrCl2iGDfI5Pi6kxtAlEA7AUNGLQ8sdPy+GWCcS4cfC8aX9byF6GAlg1zDBig4e+a6 uQlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jze2cgdc; 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 c21si387740pjs.3.2019.07.17.14.06.27; Wed, 17 Jul 2019 14:06:44 -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=Jze2cgdc; 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 S1727385AbfGQVF5 (ORCPT + 99 others); Wed, 17 Jul 2019 17:05:57 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:42348 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbfGQVF5 (ORCPT ); Wed, 17 Jul 2019 17:05:57 -0400 Received: by mail-qt1-f196.google.com with SMTP id h18so24887691qtm.9 for ; Wed, 17 Jul 2019 14:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TdNCjtIZoEvzk7CFQvtZTCtYl6pPEGqJ5p+G7wRu/MI=; b=Jze2cgdcy5662fomC3fE57fj/VYZwcaxgnH9hmOhncVx4UAjEyZZPiPq34XrND4P7K 4qhjOibmnZmFm5bExhEYi4xo7rRaTLEloEx6ypQX6+1WZdl9zIzPW85zVQ/96cNqXtBE niPQ1iHeX8AvFQFPhf46FslMxz3OdM/YjSpczde0WTZJNHuK+NxOCyjRX+/r4E3H5JxE 4eU+C4RXHTaSlgkerXKGq3e4VDlEsstFTyFz391mLzcTHA3/Um0pskGJM9xlBW1dPnNW 1Fql4Lwi8aiFGl9Wh7zqh7U7qJERcnGfoYZ12M5uQ9NfR4aD1IBUKFfsnkk5e5/zkrNp rK6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TdNCjtIZoEvzk7CFQvtZTCtYl6pPEGqJ5p+G7wRu/MI=; b=IhiN3ySORf33k756zD75cgotO3ZlLmkmT8Mo2WMufTruMaj/HjD9FeGTuIYf51tRGY /qp4Jf96p6QUHvI8U2ulC5csbfs75WPx0eARdveghU3nUe+p+ksjmlStEs+E56TGVa6N ITPV0KmaLo2qT5A4qzHy0sYPdDzL+NpT/Xz1LwqXIwpP+UMdzjH+AwSh5PM3Tsncr5VT s9siCub/IXbMaH2kr7fJg2ic8G4bIR1f7uHS4ugHFtb3MmNRHIGWF17oJA2kV5fsCx76 Xw26iTZTpvV4V5O3Rvg4dRs36Sv1hNb8Yrya1UOqWu9N7/4EbAwKHLnhxMEXP0NZ5Ek0 rP5g== X-Gm-Message-State: APjAAAVOQOBdFBXGomJ45uwwYygLT+gFTdOUCr8I4z5LegTGLfNG7i4f Y+g9tddKEif2EHiV4vibV6E= X-Received: by 2002:aed:3667:: with SMTP id e94mr24038666qtb.382.1563397556262; Wed, 17 Jul 2019 14:05:56 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.182.6.211]) by smtp.gmail.com with ESMTPSA id o18sm15127109qtb.53.2019.07.17.14.05.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 14:05:55 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 10C2240340; Wed, 17 Jul 2019 18:05:51 -0300 (-03) Date: Wed, 17 Jul 2019 18:05:51 -0300 To: Jiri Olsa Cc: Igor Lubashev , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mathieu Poirier , Alexander Shishkin , Namhyung Kim , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, James Morris Subject: Re: [PATCH 1/3] perf: Add capability-related utilities Message-ID: <20190717210551.GI3624@kernel.org> References: <1562112605-6235-1-git-send-email-ilubashe@akamai.com> <1562112605-6235-2-git-send-email-ilubashe@akamai.com> <20190716084643.GA22317@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190716084643.GA22317@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jul 16, 2019 at 10:46:43AM +0200, Jiri Olsa escreveu: > 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 I'll add this tentatively and try to build it in my test suite. - Arnaldo