linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf
@ 2015-11-05  6:56 Yunlong Song
  2015-11-05 13:23 ` Arnaldo Carvalho de Melo
  2015-11-08  7:30 ` [tip:perf/urgent] tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf tip-bot for Yunlong Song
  0 siblings, 2 replies; 4+ messages in thread
From: Yunlong Song @ 2015-11-05  6:56 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme
  Cc: linux-kernel, wangnan0, namhyung, ast, masami.hiramatsu.pt,
	kan.liang, adrian.hunter, jolsa, dsahern

Commit ed63f34c026e9a60d17fa750ecdfe3f600d49393 ("perf tools: Make perf
depend on libbpf") dynamically creates FEATURE-DUMP.libbpf during the
perf building, but the .gitignore under tools/lib/bpf/ mistakes
FEATURE-DUMP.libbpf for FEATURE-DUMP. Besides, the Makefile under
tools/lib/bpf/ also mistakes FEATURE-DUMP.libbpf for FEATURE-DUMP, which
causes that "make clean" will leave (or say create) FEATURE-DUMP.libbpf
rather than remove FEATURE-DUMP.libbpf file.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
---
 tools/lib/bpf/.gitignore | 2 +-
 tools/lib/bpf/Makefile   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lib/bpf/.gitignore b/tools/lib/bpf/.gitignore
index 812aeed..f81e549 100644
--- a/tools/lib/bpf/.gitignore
+++ b/tools/lib/bpf/.gitignore
@@ -1,2 +1,2 @@
 libbpf_version.h
-FEATURE-DUMP
+FEATURE-DUMP.libbpf
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index fc9af57..a3caaf3 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -180,7 +180,7 @@ config-clean:
 clean:
 	$(call QUIET_CLEAN, libbpf) $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d \
 		$(RM) LIBBPF-CFLAGS
-	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP
+	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP.libbpf
 
 
 
-- 
1.8.5.2


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

* Re: [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf
  2015-11-05  6:56 [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf Yunlong Song
@ 2015-11-05 13:23 ` Arnaldo Carvalho de Melo
  2015-11-06  2:08   ` Yunlong Song
  2015-11-08  7:30 ` [tip:perf/urgent] tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf tip-bot for Yunlong Song
  1 sibling, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-11-05 13:23 UTC (permalink / raw)
  To: Yunlong Song
  Cc: a.p.zijlstra, paulus, mingo, linux-kernel, wangnan0, namhyung,
	ast, masami.hiramatsu.pt, kan.liang, adrian.hunter, jolsa,
	dsahern

Em Thu, Nov 05, 2015 at 02:56:34PM +0800, Yunlong Song escreveu:
> Commit ed63f34c026e9a60d17fa750ecdfe3f600d49393 ("perf tools: Make perf
> depend on libbpf") dynamically creates FEATURE-DUMP.libbpf during the
> perf building, but the .gitignore under tools/lib/bpf/ mistakes
> FEATURE-DUMP.libbpf for FEATURE-DUMP. Besides, the Makefile under
> tools/lib/bpf/ also mistakes FEATURE-DUMP.libbpf for FEATURE-DUMP, which
> causes that "make clean" will leave (or say create) FEATURE-DUMP.libbpf
> rather than remove FEATURE-DUMP.libbpf file.

Ok, so the cset that created files with a .libbpf suffix was this one:

  commit 65f041bee783
  Author: Arnaldo Carvalho de Melo <acme@redhat.com>
  Date:   Mon Sep 21 17:25:27 2015 -0300

    tools lib bpf: Use FEATURE_USER to allow building in the same dir as perf

-------

That has this tag:

    Fixes: 1b76c13e4b36 ("bpf tools: Introduce 'bpf' library and add bpf feature check")

---

The cset you mention, ed63f34c026e9a60d17fa750ecdfe3f600d49393, just
makes perf call the code introduced by 1b76c13e4b36 and fixed by
65f041bee783, i.e. you start noticing, when building perf, that those
files are created.

Anyway, fixing it up, thanks for the patch!

- Arnaldo
 
> Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
> ---
>  tools/lib/bpf/.gitignore | 2 +-
>  tools/lib/bpf/Makefile   | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/lib/bpf/.gitignore b/tools/lib/bpf/.gitignore
> index 812aeed..f81e549 100644
> --- a/tools/lib/bpf/.gitignore
> +++ b/tools/lib/bpf/.gitignore
> @@ -1,2 +1,2 @@
>  libbpf_version.h
> -FEATURE-DUMP
> +FEATURE-DUMP.libbpf
> diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
> index fc9af57..a3caaf3 100644
> --- a/tools/lib/bpf/Makefile
> +++ b/tools/lib/bpf/Makefile
> @@ -180,7 +180,7 @@ config-clean:
>  clean:
>  	$(call QUIET_CLEAN, libbpf) $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d \
>  		$(RM) LIBBPF-CFLAGS
> -	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP
> +	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP.libbpf
>  
>  
>  
> -- 
> 1.8.5.2

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

* Re: [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf
  2015-11-05 13:23 ` Arnaldo Carvalho de Melo
@ 2015-11-06  2:08   ` Yunlong Song
  0 siblings, 0 replies; 4+ messages in thread
From: Yunlong Song @ 2015-11-06  2:08 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: a.p.zijlstra, paulus, mingo, linux-kernel, wangnan0, namhyung,
	ast, masami.hiramatsu.pt, kan.liang, adrian.hunter, jolsa,
	dsahern

On 2015/11/5 21:23, Arnaldo Carvalho de Melo wrote:
> The cset you mention, ed63f34c026e9a60d17fa750ecdfe3f600d49393, just
> makes perf call the code introduced by 1b76c13e4b36 and fixed by
> 65f041bee783, i.e. you start noticing, when building perf, that those
> files are created.
> 
> Anyway, fixing it up, thanks for the patch!
> 
> - Arnaldo

Yes, right. Thanks for your detailed explanation.

-- 
Thanks,
Yunlong Song


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

* [tip:perf/urgent] tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf
  2015-11-05  6:56 [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf Yunlong Song
  2015-11-05 13:23 ` Arnaldo Carvalho de Melo
@ 2015-11-08  7:30 ` tip-bot for Yunlong Song
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Yunlong Song @ 2015-11-08  7:30 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: adrian.hunter, yunlong.song, a.p.zijlstra, tglx, paulus,
	kan.liang, mingo, dsahern, wangnan0, hpa, acme, namhyung,
	masami.hiramatsu.pt, ast, linux-kernel, jolsa

Commit-ID:  0c77c04aa9c2b3a154f5cb0559feaee3fb7a6935
Gitweb:     http://git.kernel.org/tip/0c77c04aa9c2b3a154f5cb0559feaee3fb7a6935
Author:     Yunlong Song <yunlong.song@huawei.com>
AuthorDate: Thu, 5 Nov 2015 14:56:34 +0800
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Thu, 5 Nov 2015 12:47:51 -0300

tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf

Commit ed63f34c026e9a60d17fa750ecdfe3f600d49393 ("perf tools: Make perf
depend on libbpf") triggers the build of libbpf when building the perf
tools, dynamically creating FEATURE-DUMP.libbpf.

It failed to update the tools/lib/bpf/.gitignore file to have that
prefix, fix it.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: 65f041bee783 ("tools lib bpf: Use FEATURE_USER to allow building in the same dir as perf")
Link: http://lkml.kernel.org/r/1446706594-4142-1-git-send-email-yunlong.song@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/lib/bpf/.gitignore | 2 +-
 tools/lib/bpf/Makefile   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lib/bpf/.gitignore b/tools/lib/bpf/.gitignore
index 812aeed..f81e549 100644
--- a/tools/lib/bpf/.gitignore
+++ b/tools/lib/bpf/.gitignore
@@ -1,2 +1,2 @@
 libbpf_version.h
-FEATURE-DUMP
+FEATURE-DUMP.libbpf
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index fc9af57..a3caaf3 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -180,7 +180,7 @@ config-clean:
 clean:
 	$(call QUIET_CLEAN, libbpf) $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d \
 		$(RM) LIBBPF-CFLAGS
-	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP
+	$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP.libbpf
 
 
 

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

end of thread, other threads:[~2015-11-08  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05  6:56 [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf Yunlong Song
2015-11-05 13:23 ` Arnaldo Carvalho de Melo
2015-11-06  2:08   ` Yunlong Song
2015-11-08  7:30 ` [tip:perf/urgent] tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf tip-bot for Yunlong Song

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).