mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
Merge branch 'bpf-tools-build-improvements'
Jakub Kicinski says: ==================== As promised this series addresses nits and minor issues in tools/bpf build infra. One GCC-7 warning which is nice to get rid of. Dependencies when built with OUTPUT are fixed. make clean will now remove the FEATURE-DUMP.* files. PHONY target is also updated to match reality. ==================== Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
commit
318df9f01c
3 changed files with 7 additions and 3 deletions
tools/bpf
|
@ -81,6 +81,8 @@ clean: bpftool_clean
|
||||||
$(call QUIET_CLEAN, bpf-progs)
|
$(call QUIET_CLEAN, bpf-progs)
|
||||||
$(Q)rm -rf $(OUTPUT)*.o $(OUTPUT)bpf_jit_disasm $(OUTPUT)bpf_dbg \
|
$(Q)rm -rf $(OUTPUT)*.o $(OUTPUT)bpf_jit_disasm $(OUTPUT)bpf_dbg \
|
||||||
$(OUTPUT)bpf_asm $(OUTPUT)bpf_exp.yacc.* $(OUTPUT)bpf_exp.lex.*
|
$(OUTPUT)bpf_asm $(OUTPUT)bpf_exp.yacc.* $(OUTPUT)bpf_exp.lex.*
|
||||||
|
$(call QUIET_CLEAN, core-gen)
|
||||||
|
$(Q)rm -f $(OUTPUT)FEATURE-DUMP.bpf
|
||||||
|
|
||||||
install: $(PROGS) bpftool_install
|
install: $(PROGS) bpftool_install
|
||||||
$(call QUIET_INSTALL, bpf_jit_disasm)
|
$(call QUIET_INSTALL, bpf_jit_disasm)
|
||||||
|
@ -100,4 +102,4 @@ bpftool_install:
|
||||||
bpftool_clean:
|
bpftool_clean:
|
||||||
$(call descend,bpftool,clean)
|
$(call descend,bpftool,clean)
|
||||||
|
|
||||||
.PHONY: bpftool FORCE
|
.PHONY: all install clean bpftool bpftool_install bpftool_clean
|
||||||
|
|
|
@ -70,7 +70,7 @@ ifeq ($(feature-disassembler-four-args), 1)
|
||||||
CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
|
CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(wildcard *.d)
|
include $(wildcard $(OUTPUT)*.d)
|
||||||
|
|
||||||
all: $(OUTPUT)bpftool
|
all: $(OUTPUT)bpftool
|
||||||
|
|
||||||
|
@ -89,6 +89,8 @@ $(OUTPUT)%.o: %.c
|
||||||
clean: $(LIBBPF)-clean
|
clean: $(LIBBPF)-clean
|
||||||
$(call QUIET_CLEAN, bpftool)
|
$(call QUIET_CLEAN, bpftool)
|
||||||
$(Q)$(RM) $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d
|
$(Q)$(RM) $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d
|
||||||
|
$(call QUIET_CLEAN, core-gen)
|
||||||
|
$(Q)$(RM) $(OUTPUT)FEATURE-DUMP.bpftool
|
||||||
|
|
||||||
install: $(OUTPUT)bpftool
|
install: $(OUTPUT)bpftool
|
||||||
$(call QUIET_INSTALL, bpftool)
|
$(call QUIET_INSTALL, bpftool)
|
||||||
|
|
|
@ -49,7 +49,7 @@ struct dump_data {
|
||||||
unsigned long address_call_base;
|
unsigned long address_call_base;
|
||||||
struct kernel_sym *sym_mapping;
|
struct kernel_sym *sym_mapping;
|
||||||
__u32 sym_count;
|
__u32 sym_count;
|
||||||
char scratch_buff[SYM_MAX_NAME];
|
char scratch_buff[SYM_MAX_NAME + 8];
|
||||||
};
|
};
|
||||||
|
|
||||||
void kernel_syms_load(struct dump_data *dd);
|
void kernel_syms_load(struct dump_data *dd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue