public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR
@ 2014-03-26 22:44 Ramkumar Ramachandra
  2014-04-03 21:51 ` Ramkumar Ramachandra
  2014-04-14 14:52 ` [tip:perf/urgent] " tip-bot for Ramkumar Ramachandra
  0 siblings, 2 replies; 5+ messages in thread
From: Ramkumar Ramachandra @ 2014-03-26 22:44 UTC (permalink / raw)
  To: LKML; +Cc: Jiri Olsa, Arnaldo Carvalho de Melo

The Makefile logic sets FEATURE_CHECKS_CFLAGS-libdw-dwarf-unwind and
FEATURE_CHECKS_LDFLAGS-libdw-dwarf-unwind only if LIBDW_DIR is
defined. This means that under a normal setup,

  $ make NO_LIBUNWIND=1

won't automatically pick up libdw. Fix this.

Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 tools/perf/config/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index c234182..0c043b0 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -65,10 +65,9 @@ ifndef NO_LIBELF
   ifdef LIBDW_DIR
     LIBDW_CFLAGS  := -I$(LIBDW_DIR)/include
     LIBDW_LDFLAGS := -L$(LIBDW_DIR)/lib
-
-    FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS)
-    FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) -ldw
   endif
+  FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS)
+  FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) -ldw
 endif
 
 # include ARCH specific config
-- 
1.9.0.431.g014438b


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR
  2014-03-26 22:44 [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR Ramkumar Ramachandra
@ 2014-04-03 21:51 ` Ramkumar Ramachandra
  2014-04-04  7:46   ` Jean Pihet
  2014-04-14 14:52 ` [tip:perf/urgent] " tip-bot for Ramkumar Ramachandra
  1 sibling, 1 reply; 5+ messages in thread
From: Ramkumar Ramachandra @ 2014-04-03 21:51 UTC (permalink / raw)
  To: LKML; +Cc: Jiri Olsa, Arnaldo Carvalho de Melo

Ramkumar Ramachandra wrote:
>  tools/perf/config/Makefile | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Jiri, any comments?

Ram

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR
  2014-04-03 21:51 ` Ramkumar Ramachandra
@ 2014-04-04  7:46   ` Jean Pihet
  2014-04-06 12:28     ` Jiri Olsa
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Pihet @ 2014-04-04  7:46 UTC (permalink / raw)
  To: Ramkumar Ramachandra, Jiri Olsa, jwboyer; +Cc: LKML, Arnaldo Carvalho de Melo

On 3 April 2014 23:51, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> Ramkumar Ramachandra wrote:
>>  tools/perf/config/Makefile | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> Jiri, any comments?
Note: this patch is equivalent to '[PATCH] perf tools: Fix feature
check for libdw dwarf unwind' [1] from Josh Boyer. Jiri, your pick ;-)

[1] http://www.spinics.net/lists/kernel/msg1716729.html

FWIW:
Acked-by: Jean Pihet <jean.pihet@linaro.org>

>
> Ram
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR
  2014-04-04  7:46   ` Jean Pihet
@ 2014-04-06 12:28     ` Jiri Olsa
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Olsa @ 2014-04-06 12:28 UTC (permalink / raw)
  To: Jean Pihet; +Cc: Ramkumar Ramachandra, jwboyer, LKML, Arnaldo Carvalho de Melo

On Fri, Apr 04, 2014 at 09:46:28AM +0200, Jean Pihet wrote:
> On 3 April 2014 23:51, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> > Ramkumar Ramachandra wrote:
> >>  tools/perf/config/Makefile | 5 ++---
> >>  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > Jiri, any comments?

hi,
sorry for late reply, I was out last week

> Note: this patch is equivalent to '[PATCH] perf tools: Fix feature
> check for libdw dwarf unwind' [1] from Josh Boyer. Jiri, your pick ;-)
> 
> [1] http://www.spinics.net/lists/kernel/msg1716729.html
> 
> FWIW:
> Acked-by: Jean Pihet <jean.pihet@linaro.org>

I'll take Ramkumar's change, because he sent it out first ;-)

thanks,
jirka

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [tip:perf/urgent] perf tools: Pick up libdw without explicit LIBDW_DIR
  2014-03-26 22:44 [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR Ramkumar Ramachandra
  2014-04-03 21:51 ` Ramkumar Ramachandra
@ 2014-04-14 14:52 ` tip-bot for Ramkumar Ramachandra
  1 sibling, 0 replies; 5+ messages in thread
From: tip-bot for Ramkumar Ramachandra @ 2014-04-14 14:52 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, acme, hpa, mingo, jean.pihet, jolsa, tglx, artagnon

Commit-ID:  2c529e4e6aab405aa52e8627cbd691ed28b56a0b
Gitweb:     http://git.kernel.org/tip/2c529e4e6aab405aa52e8627cbd691ed28b56a0b
Author:     Ramkumar Ramachandra <artagnon@gmail.com>
AuthorDate: Wed, 26 Mar 2014 18:44:05 -0400
Committer:  Jiri Olsa <jolsa@redhat.com>
CommitDate: Mon, 14 Apr 2014 12:55:17 +0200

perf tools: Pick up libdw without explicit LIBDW_DIR

The Makefile logic sets FEATURE_CHECKS_CFLAGS-libdw-dwarf-unwind and
FEATURE_CHECKS_LDFLAGS-libdw-dwarf-unwind only if LIBDW_DIR is
defined. This means that under a normal setup,

  $ make NO_LIBUNWIND=1

won't automatically pick up libdw. Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Acked-by: Jean Pihet <jean.pihet@linaro.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1395873845-466-1-git-send-email-artagnon@gmail.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
---
 tools/perf/config/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 5a3c452..ee21fa9 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -65,10 +65,9 @@ ifndef NO_LIBELF
   ifdef LIBDW_DIR
     LIBDW_CFLAGS  := -I$(LIBDW_DIR)/include
     LIBDW_LDFLAGS := -L$(LIBDW_DIR)/lib
-
-    FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS)
-    FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) -ldw
   endif
+  FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS)
+  FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) -ldw
 endif
 
 # include ARCH specific config

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-14 14:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 22:44 [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR Ramkumar Ramachandra
2014-04-03 21:51 ` Ramkumar Ramachandra
2014-04-04  7:46   ` Jean Pihet
2014-04-06 12:28     ` Jiri Olsa
2014-04-14 14:52 ` [tip:perf/urgent] " tip-bot for Ramkumar Ramachandra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox