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 <[email protected]> > > --- > > 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

