1 perf-util-$(CONFIG_AUXTRACE) += intel-pt-pkt-d !! 1 perf-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o 2 2 3 inat_tables_script = $(srctree)/tools/arch/x86 !! 3 inat_tables_script = util/intel-pt-decoder/gen-insn-attr-x86.awk 4 inat_tables_maps = $(srctree)/tools/arch/x86/l !! 4 inat_tables_maps = util/intel-pt-decoder/x86-opcode-map.txt 5 5 6 $(OUTPUT)util/intel-pt-decoder/inat-tables.c: 6 $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) 7 $(call rule_mkdir) 7 $(call rule_mkdir) 8 @$(call echo-cmd,gen)$(AWK) -f $(inat_ 8 @$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@ 9 9 10 # Busybox's diff doesn't have -I, avoid warnin 10 # Busybox's diff doesn't have -I, avoid warning in the case 11 11 12 $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-d !! 12 $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder.c util/intel-pt-decoder/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c >> 13 @(diff -I 2>&1 | grep -q 'option requires an argument' && \ >> 14 test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ >> 15 ((diff -B -I'^#include' util/intel-pt-decoder/insn.c ../../arch/x86/lib/insn.c >/dev/null) || \ >> 16 (echo "Warning: Intel PT: x86 instruction decoder C file at 'tools/perf/util/intel-pt-decoder/insn.c' differs from latest version at 'arch/x86/lib/insn.c'" >&2)) && \ >> 17 ((diff -B -I'^#include' util/intel-pt-decoder/inat.c ../../arch/x86/lib/inat.c >/dev/null) || \ >> 18 (echo "Warning: Intel PT: x86 instruction decoder C file at 'tools/perf/util/intel-pt-decoder/inat.c' differs from latest version at 'arch/x86/lib/inat.c'" >&2)) && \ >> 19 ((diff -B util/intel-pt-decoder/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null) || \ >> 20 (echo "Warning: Intel PT: x86 instruction decoder map file at 'tools/perf/util/intel-pt-decoder/x86-opcode-map.txt' differs from latest version at 'arch/x86/lib/x86-opcode-map.txt'" >&2)) && \ >> 21 ((diff -B util/intel-pt-decoder/gen-insn-attr-x86.awk ../../arch/x86/tools/gen-insn-attr-x86.awk >/dev/null) || \ >> 22 (echo "Warning: Intel PT: x86 instruction decoder script at 'tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk' differs from latest version at 'arch/x86/tools/gen-insn-attr-x86.awk'" >&2)) && \ >> 23 ((diff -B -I'^#include' util/intel-pt-decoder/insn.h ../../arch/x86/include/asm/insn.h >/dev/null) || \ >> 24 (echo "Warning: Intel PT: x86 instruction decoder header at 'tools/perf/util/intel-pt-decoder/insn.h' differs from latest version at 'arch/x86/include/asm/insn.h'" >&2)) && \ >> 25 ((diff -B -I'^#include' util/intel-pt-decoder/inat.h ../../arch/x86/include/asm/inat.h >/dev/null) || \ >> 26 (echo "Warning: Intel PT: x86 instruction decoder header at 'tools/perf/util/intel-pt-decoder/inat.h' differs from latest version at 'arch/x86/include/asm/inat.h'" >&2)) && \ >> 27 ((diff -B -I'^#include' util/intel-pt-decoder/inat_types.h ../../arch/x86/include/asm/inat_types.h >/dev/null) || \ >> 28 (echo "Warning: Intel PT: x86 instruction decoder header at 'tools/perf/util/intel-pt-decoder/inat_types.h' differs from latest version at 'arch/x86/include/asm/inat_types.h'" >&2)))) || true 13 $(call rule_mkdir) 29 $(call rule_mkdir) 14 $(call if_changed_dep,cc_o_c) 30 $(call if_changed_dep,cc_o_c) 15 31 16 CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)u 32 CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder 17 33 18 ifeq ($(CC_NO_CLANG), 1) 34 ifeq ($(CC_NO_CLANG), 1) 19 CFLAGS_intel-pt-insn-decoder.o += -Wno-overr 35 CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init 20 endif 36 endif 21 << 22 CFLAGS_intel-pt-insn-decoder.o += -Wno-packed <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.