Skip to content

Commit fdb071f

Browse files
olsajiriacmel
authored andcommitted
perf tools: Do not display extra info when there is nothing to build
Even with fully built tree, we still display extra output when make is invoked, like: $ make BUILD: Doing 'make -j8' parallel build DESCEND plugins make[3]: Nothing to be done for 'plugins/libtraceevent-dynamic-list'. Changing the make descend directly to plugins directory, which quiets those messages down. Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Khuong <pvk@pvk.ca> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20200507095024.2789147-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent f41ebe9 commit fdb071f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tools/perf/Makefile.perf‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ strip-libs = $(filter-out -l%,$(1))
278278

279279
ifneq ($(OUTPUT),)
280280
TE_PATH=$(OUTPUT)
281+
PLUGINS_PATH=$(OUTPUT)
281282
BPF_PATH=$(OUTPUT)
282283
SUBCMD_PATH=$(OUTPUT)
283284
LIBPERF_PATH=$(OUTPUT)
@@ -288,6 +289,7 @@ else
288289
endif
289290
else
290291
TE_PATH=$(TRACE_EVENT_DIR)
292+
PLUGINS_PATH=$(TRACE_EVENT_DIR)plugins/
291293
API_PATH=$(LIB_DIR)
292294
BPF_PATH=$(BPF_DIR)
293295
SUBCMD_PATH=$(SUBCMD_DIR)
@@ -297,7 +299,7 @@ endif
297299
LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
298300
export LIBTRACEEVENT
299301

300-
LIBTRACEEVENT_DYNAMIC_LIST = $(TE_PATH)plugins/libtraceevent-dynamic-list
302+
LIBTRACEEVENT_DYNAMIC_LIST = $(PLUGINS_PATH)libtraceevent-dynamic-list
301303

302304
#
303305
# The static build has no dynsym table, so this does not work for
@@ -756,10 +758,10 @@ $(LIBTRACEEVENT): FORCE
756758
$(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)libtraceevent.a
757759

758760
libtraceevent_plugins: FORCE
759-
$(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) plugins
761+
$(Q)$(MAKE) -C $(TRACE_EVENT_DIR)plugins $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) plugins
760762

761763
$(LIBTRACEEVENT_DYNAMIC_LIST): libtraceevent_plugins
762-
$(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)plugins/libtraceevent-dynamic-list
764+
$(Q)$(MAKE) -C $(TRACE_EVENT_DIR)plugins $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)libtraceevent-dynamic-list
763765

764766
$(LIBTRACEEVENT)-clean:
765767
$(call QUIET_CLEAN, libtraceevent)

0 commit comments

Comments
 (0)