]> git.baikalelectronics.ru Git - kernel.git/commitdiff
libbpf: Clean up bpf_helper_defs.h generation output
authorAndrii Nakryiko <andriin@fb.com>
Mon, 13 Jan 2020 07:31:39 +0000 (23:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 14 Jan 2020 01:48:13 +0000 (17:48 -0800)
bpf_helpers_doc.py script, used to generate bpf_helper_defs.h, unconditionally
emits one informational message to stderr. Remove it and preserve stderr to
contain only relevant errors. Also make sure script invocations command is
muted by default in libbpf's Makefile.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200113073143.1779940-3-andriin@fb.com
scripts/bpf_helpers_doc.py
tools/lib/bpf/Makefile

index 7548569e8076f1b3caff45df7d32ef8fe4ceaaec..90baf7d70911a6a96bc349aff2881717a7ca6c82 100755 (executable)
@@ -158,8 +158,6 @@ class HeaderParser(object):
                 break
 
         self.reader.close()
-        print('Parsed description of %d helper function(s)' % len(self.helpers),
-              file=sys.stderr)
 
 ###############################################################################
 
index db2afccde757348fa0aefd95a503ef46d9806200..aee7f1a83c7755cfd4966cd190350b035bb789e4 100644 (file)
@@ -183,7 +183,7 @@ $(BPF_IN_STATIC): force elfdep zdep bpfdep $(BPF_HELPER_DEFS)
        $(Q)$(MAKE) $(build)=libbpf OUTPUT=$(STATIC_OBJDIR)
 
 $(BPF_HELPER_DEFS): $(srctree)/tools/include/uapi/linux/bpf.h
-       $(Q)$(srctree)/scripts/bpf_helpers_doc.py --header              \
+       $(QUIET_GEN)$(srctree)/scripts/bpf_helpers_doc.py --header \
                --file $(srctree)/tools/include/uapi/linux/bpf.h > $(BPF_HELPER_DEFS)
 
 $(OUTPUT)libbpf.so: $(OUTPUT)libbpf.so.$(LIBBPF_VERSION)