lkml.org 
[lkml]   [2019]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 45/47] perf build: Ignore intentional differences for the x86 insn decoder
    Date
    From: Arnaldo Carvalho de Melo <acme@redhat.com>

    Since we need to build this in !x86, we need to explicitely use the x86
    files, not things like asm/insn.h, so we intentionally differ from the
    master copy in the kernel sources, add -I diff directives to ignore just
    these differences when checking for drift.

    Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
    Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/n/tip-9qziqjjt120mmz6kyepka9p7@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    tools/perf/check-headers.sh | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh
    index cbcc3590098c..e2e0f06c97d0 100755
    --- a/tools/perf/check-headers.sh
    +++ b/tools/perf/check-headers.sh
    @@ -26,12 +26,8 @@ include/uapi/linux/hw_breakpoint.h
    arch/x86/include/asm/disabled-features.h
    arch/x86/include/asm/required-features.h
    arch/x86/include/asm/cpufeatures.h
    -arch/x86/include/asm/inat.h
    arch/x86/include/asm/inat_types.h
    -arch/x86/include/asm/insn.h
    arch/x86/include/uapi/asm/prctl.h
    -arch/x86/lib/inat.c
    -arch/x86/lib/insn.c
    arch/x86/lib/x86-opcode-map.txt
    arch/x86/tools/gen-insn-attr-x86.awk
    arch/arm/include/uapi/asm/perf_regs.h
    @@ -116,6 +112,10 @@ check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman
    check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"'
    check include/linux/ctype.h '-I "isdigit("'
    check lib/ctype.c '-I "^EXPORT_SYMBOL" -I "^#include <linux/export.h>" -B'
    +check arch/x86/include/asm/inat.h '-I "^#include [\"<]\(asm/\)*inat_types.h[\">]"'
    +check arch/x86/include/asm/insn.h '-I "^#include [\"<]\(asm/\)*inat.h[\">]"'
    +check arch/x86/lib/inat.c '-I "^#include [\"<]\(../include/\)*asm/insn.h[\">]"'
    +check arch/x86/lib/insn.c '-I "^#include [\"<]\(../include/\)*asm/in\(at\|sn\).h[\">]"'

    # diff non-symmetric files
    check_2 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
    --
    2.21.0
    \
     
     \ /
      Last update: 2019-09-01 14:26    [W:5.106 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site