Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp562283ybi; Tue, 16 Jul 2019 01:47:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6Z9j7nCfIeQBkIkdHkWwx5L49ttRyYaBsnaAeuU/ChtgILQcnWx290uBUTFhgvY2Ea9h3 X-Received: by 2002:a65:6281:: with SMTP id f1mr30257761pgv.400.1563266858348; Tue, 16 Jul 2019 01:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563266858; cv=none; d=google.com; s=arc-20160816; b=VTPIJG2cdfVbUz7vZ6hwno7srZR9ktTPPWel/KU6pOXrXjPL3RKJ2kVNqh6YpOSPOI tzEBrMkIKys4zsXfgYTMg0leNdJ1FTfILTfkV07Uo7W76L3ZanLFUsomzOYdepEW8eBX D1cbMvPj3Vh0p7CACRqUcoTdI0MSdWe1FyxvH3l17/8tMnLY4WKk4Zo+a7PGc0Cp3Ghm z5dViRHIzt5Fem+rE8Xl0lEJxhf4RZVE1YwpIuNRVnRgxnnZpPwMuAEncYAPHLZC4/4f 0prTUY5odbU1L2CWPU2TK0RlW69VmFlU3GKZdH65jzpU4A3M8+CMjkiMCA8Q+Ac4woLQ Km/w== 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:from:date; bh=AeZnjh/4RSlm4w/Wrc6Wgb+8qs8Ei8KT2IvhEgV53lE=; b=FhbtaWZOOGZECRNgi1yu3S7McC0cL75LhVG4J6vR4EKej7Omk0kGB/+h0f7pcFdS8G 8Lptcmi0aDBPIH0R3I1B+ZmOW2w3Hts/X1WpknkbTpEBM/hTj2S/9FZQLngz6xWl2DbH HsY/ClriWkZJvOALgNYrAaL5bZe1uDUksJY2VKLKEbfGbfqrN/NFtKC5egLeJoP+lN5o C8HrbIIrAQYZMPYkZwBshfmQb56+EVQ/ZdxYDGpwEaFMgWQhO8tRth5dNKI64Uc/5fzW 4jRvuYfshd+NcLGfV4kEL5GGCAiwrsF7akKXJB8UmN8M38QwsvMZNLPw7U9YyZy5hscX Ce4Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u38si4138936pgl.507.2019.07.16.01.47.22; Tue, 16 Jul 2019 01:47:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731768AbfGPIqs (ORCPT + 99 others); Tue, 16 Jul 2019 04:46:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46744 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfGPIqr (ORCPT ); Tue, 16 Jul 2019 04:46:47 -0400 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 Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , 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: <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-Type: text/plain; charset=us-ascii 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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