From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>,
linux-kernel@vger.kernel.org,
Corey Ashford <cjashfor@linux.vnet.ibm.com>,
David Ahern <david.ahern@oracle.com>,
Ingo Molnar <mingo@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH 01/15] perf build: Disable default check for libbabeltrace
Date: Fri, 13 Mar 2015 17:19:35 -0300 [thread overview]
Message-ID: <20150313201935.GA4419@redhat.com> (raw)
In-Reply-To: <20150313162011.GA21865@krava.brq.redhat.com>
Em Fri, Mar 13, 2015 at 05:20:11PM +0100, Jiri Olsa escreveu:
> On Fri, Mar 13, 2015 at 12:36:21PM -0300, Arnaldo Carvalho de Melo wrote:
>
> SNIP
>
> >
> > Auto-detecting system features:
> > ... dwarf: [ on ]
> > ... glibc: [ on ]
> > ... gtk2: [ on ]
> > ... libaudit: [ on ]
> > ... libbfd: [ on ]
> > ... libelf: [ on ]
> > ... libnuma: [ on ]
> > ... libperl: [ on ]
> > ... libpython: [ on ]
> > ... libslang: [ on ]
> > ... libunwind: [ OFF ]
> > ... libdw-dwarf-unwind: [ on ]
> > ... zlib: [ on ]
> > ... DWARF post unwind library: libdw
> >
> > GEN common-cmds.h
> >
> > It continues trying to find babeltrace, does not find it, emits the warning and
> > just doesn't show the OFF message :-\
> >
> > Can you explain _why_ this is needed? I.e. is it to speed up feature checking?
> > In what way, etc. For casual readers the intent of this patch may be difficult
> > to grasp, no?
> >
> > What am I missing?
>
> this patch removes babeltrace from:
> - detected features display -> so user's not curious where to get the latest babeltrace version ;-)
> - test-all optimization -> so we could use features build speed up, missing babeltrace was stoping this
>
> but we still check for babeltrace (out of the default list code)
> in order to enable the ctf convert code if it's in the system
>
> I admit the extra warning about missing babeltrace support
> might be confusing, I can remove it.. ;-)
>
> I think we could add new class of features that are enabled
> just on demand and not checked by default at all, like:
> 'make BABELTRACE=1' or via .config,
> but we need to add support for that first
Thanks for explaining, that covers one of my peeves, i.e. the cset
comment wasn't clear, now it is a bit better, thanks!
The other is for someone not interested in how the feature detection
works but then sees a warning about a feature not being available but
that feature doesn't appear on the followup summary of features that are
ON or OFF the build...
So I think that when we think that some feature is experimental, for any
reason, for instance, because it is based on some feature that is not on
a released version of the library one needs to link against, to only
bother with trying to check if it is available and link against it if so
if it is _explicitely_ asked for.
I.e. documentation should state that perf can have support for that
feature, but only if the user does:
1. installs the precisely described version that has what is needed.
2. Explicitely asks, in the make command line, for that feature.
In the case at hand that would not even be a library release, but a
specific git commit on babeltrace's repo.
That would be a speedup! ;-)
- Arnaldo
P.S. After all, we're not short on features, look at the ldd output...
Ok, I need to keep on merging the .config stuff, but even then, I guess
we need to have more of a dlopen approach to all those features, so that
one can install a package without dragging hell and its kitchen sink.
next prev parent reply other threads:[~2015-03-13 20:19 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 8:58 [PATCHv2 00/15] tools build: Move features framework into tools/build Jiri Olsa
2015-03-11 8:58 ` [PATCH 01/15] perf build: Disable default check for libbabeltrace Jiri Olsa
2015-03-13 15:36 ` Arnaldo Carvalho de Melo
2015-03-13 16:20 ` Jiri Olsa
2015-03-13 20:19 ` Arnaldo Carvalho de Melo [this message]
2015-03-15 17:32 ` Jiri Olsa
2015-03-11 8:58 ` [PATCH 02/15] perf build: Add dump of features build Jiri Olsa
2015-03-11 8:58 ` [PATCH 03/15] perf build: Fix pthread-attr-setaffinity-np include in test-all Jiri Olsa
2015-03-11 8:58 ` [PATCH 04/15] perf build: Get rid of LIB_INCLUDE variable Jiri Olsa
2015-03-11 8:58 ` [PATCH 05/15] perf build: Rename CORE_FEATURE_TESTS to FEATURE_TESTS Jiri Olsa
2015-03-11 8:58 ` [PATCH 06/15] perf build: Get rid of VF_FEATURE_TESTS Jiri Olsa
2015-03-11 8:58 ` [PATCH 07/15] perf build: Rename display_lib into feature_display Jiri Olsa
2015-03-11 8:58 ` [PATCH 08/15] perf build: Rename display_vf to feature_verbose Jiri Olsa
2015-03-11 8:58 ` [PATCH 09/15] perf build: Rename PERF-FEATURES into FEATURE-DUMP Jiri Olsa
2015-03-11 8:58 ` [PATCH 10/15] perf build: Rename feature_print_var_code to print_var_code Jiri Olsa
2015-03-11 8:59 ` [PATCH 11/15] perf build: Separate feature make support into config/Makefile.feature Jiri Olsa
2015-03-11 8:59 ` [PATCH 12/15] perf build: Make features checks directory configurable Jiri Olsa
2015-03-11 8:59 ` [PATCH 13/15] tools build: Move feature checks code under tools/build Jiri Olsa
2015-03-11 8:59 ` [PATCH 14/15] tools build: Allow to override feature checks setup Jiri Olsa
2015-03-11 8:59 ` [PATCH 15/15] tools build: Fix feature_check name clash Jiri Olsa
2015-03-18 18:50 ` [PATCHv2 00/15] tools build: Move features framework into tools/build Arnaldo Carvalho de Melo
2015-03-18 18:59 ` Jiri Olsa
2015-03-18 19:53 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150313201935.GA4419@redhat.com \
--to=acme@redhat.com \
--cc=cjashfor@linux.vnet.ibm.com \
--cc=david.ahern@oracle.com \
--cc=jolsa@kernel.org \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).