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.2 required=3.0 tests=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 AF2F3C76188 for ; Tue, 16 Jul 2019 08:46:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8D9FF2173B for ; Tue, 16 Jul 2019 08:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731810AbfGPIqs (ORCPT ); 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