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.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 4DDBDC76192 for ; Wed, 17 Jul 2019 21:06:16 +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 196B62173E for ; Wed, 17 Jul 2019 21:06:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j4CxSlsK"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DlbEkG8U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 196B62173E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=/IEddRzJQvO7duOvmGY3W3A4HoaLeRnkf1g+EWq3nFE=; b=j4CxSlsK6hVv3G ErfBFJPwRpQIsNdx0dZoW9qoTccCJqT1zvUFXHeqkvY1kA7GWjxLhU2UGSHrvbb26+1AMizZEpISb /BGJgJtWII3h5WEzm/igZlXFqVPGYaaL7bJRfN513HNr/sN1i9cLm5VvVGZGJTkQi0OluvPlD5LvI OaygX41hHJhfM7EUbwi2R0Y2jJ5kwrZRbD55h/t5ldSiyveX4Yfy8v0hLt179n5lD2vizZcje81Ch yCpQSKXINMgCWxkkXcT76cd8gLe+5+6Sw2n7s85nMSUrWpUuTa1eQZPiqJ3RpoqAMOJMb5kFFVe9C UNVfMlpPXtDpFMX4vyfQ==; 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 1hnr7o-00062i-Ny; Wed, 17 Jul 2019 21:06:08 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hnr7n-00061q-51 for linux-arm-kernel@bombadil.infradead.org; Wed, 17 Jul 2019 21:06:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TdNCjtIZoEvzk7CFQvtZTCtYl6pPEGqJ5p+G7wRu/MI=; b=DlbEkG8UBhmSbvAfURGDbp6Tc 0Z36jiQhMHqRPtwxk99xVdLYPbrE4JsYXsqdskQb7H+hL9w5dXZMgVeMWoas2bPVGb2kpPSqBA8UJ ieNBpcpvGqcUk2R9gVR2A0lR4gR9sn8hwRLnmzmM/ZHu5SPVm2rYQxv247i1ETOkq4FzL0MN63ji9 KoEEf6PSO9i5O7zM8c1EdEZf9aG58tW855XUoK5VqvLdPIf1/cgsE0Xz83VHn2sMdGYih0R47I3Cx AM6/nOQ4zG70kXNi4pNePpJdXKNTzrF8d8g82YN4/2bhpbRZKs/KNACHu69E77oRuw4Uk9UXKpqCs 9w+p3lHyA==; Received: from [179.182.6.211] (helo=quaco.ghostprotocols.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hnr7l-0005ze-8v; Wed, 17 Jul 2019 21:06:05 +0000 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 From: Arnaldo Carvalho de Melo To: Jiri Olsa 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-Disposition: inline In-Reply-To: <20190716084643.GA22317@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.12.0 (2019-05-25) 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 , Igor Lubashev , linux-kernel@vger.kernel.org, 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 49066C7618F for ; Wed, 17 Jul 2019 21:05:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B9C22173E for ; Wed, 17 Jul 2019 21:05:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jze2cgdc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbfGQVF5 (ORCPT ); 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-Google-Smtp-Source: APXvYqwmPFj36H1UaqpWKrAjunpVi5dB8uju+jNSB77TCPoSq0HlMtFYx1VXFSiSw6WxfxozBf+9TQ== 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