Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1897592pxu; Fri, 18 Dec 2020 00:05:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoaD4fzi2iSBby9SxdgodG33XgKP5QLPBW7QYyzVZQSh4o9w4n+TUVet+xMJzbNaUqoZkk X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr3149151edv.100.1608278745556; Fri, 18 Dec 2020 00:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608278745; cv=none; d=google.com; s=arc-20160816; b=pvrBv6F9C7t9add5AL6Mx6V1SHhHGGHEsEO1RdsncHQDdy8l28toVD73ireuwSa3bG lKg98k/fmSjF4ngo7YwPY3VZ5g7jAfH0YKfeqEEGtnDa8MplhyrxdFlP2qf0pUyC48U2 i18Qo0+WUEWE9V9c+7e2kDbCtvwarWyyuTOek4noRJqQtULvhkA2P8RQ+XxawwPvH9XE INkNY/pM6wpffjMbZb9BH2fTJfozaQu1eiU3oqekcTXBOrabh8AmES3V1UtVvT5knnQY BO8ewkm+c4jfSUImFNbuCsnqLSHmcWBTe42cDRGKg/Tb2oEX9vb4OuG5/kG8W+3UEJ2m v/FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=j64glB8ngXIUtKPs/R5TK7YJ52rmAXigRxGl1VqSAjI=; b=rDnPGZ1Gi0l2BK62DsCZN7f1+gRHlW0XdNowRizioAZYwWwXOZ51qMSYqLxI4RtJu2 996k6ZEh6rrlcLgMYRLqchavIlkeDslrvsKueFrTK+BpsnDXmLAoZJ5bKFjIKGayUvq0 4nJtNPlz77+a7XRXGovLBqllQz8zXGumwjooECN03kejG9MrgWx/do18gZI20BYJ0UD2 BgIzAfna2TP1v42DDcbQKpOXsORrR7eVdIsR6vxPpiXdOYi/NcA1h93PsnpVK8GvM+0G ophUmoKB5UJEMyMMHdONQWeI+nnVkSnPEyGJX+z844t8MJlH4BmBPeFP724NLcmHeaLs ew0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si6624448edp.516.2020.12.18.00.05.19; Fri, 18 Dec 2020 00:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732807AbgLRIAY (ORCPT + 99 others); Fri, 18 Dec 2020 03:00:24 -0500 Received: from mail.loongson.cn ([114.242.206.163]:54376 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732367AbgLRIAX (ORCPT ); Fri, 18 Dec 2020 03:00:23 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxX8teYdxf_t8BAA--.5208S3; Fri, 18 Dec 2020 15:59:27 +0800 (CST) From: Tiezhu Yang To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH 1/4] perf tools: Move syscall.tbl check into check-headers.sh for powerpc Date: Fri, 18 Dec 2020 15:59:21 +0800 Message-Id: <1608278364-6733-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1608278364-6733-1-git-send-email-yangtiezhu@loongson.cn> References: <1608278364-6733-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQ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v6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfU8a9aDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is better to check syscall.tbl for powerpc in check-headers.sh, it is similar with commit c9b51a017065 ("perf tools: Move syscall_64.tbl check into check-headers.sh"). Signed-off-by: Tiezhu Yang --- tools/perf/arch/powerpc/Makefile | 7 ------- tools/perf/check-headers.sh | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/perf/arch/powerpc/Makefile b/tools/perf/arch/powerpc/Makefile index e58d00d..840ea0e 100644 --- a/tools/perf/arch/powerpc/Makefile +++ b/tools/perf/arch/powerpc/Makefile @@ -14,7 +14,6 @@ PERF_HAVE_JITDUMP := 1 out := $(OUTPUT)arch/powerpc/include/generated/asm header32 := $(out)/syscalls_32.c header64 := $(out)/syscalls_64.c -syskrn := $(srctree)/arch/powerpc/kernel/syscalls/syscall.tbl sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls sysdef := $(sysprf)/syscall.tbl systbl := $(sysprf)/mksyscalltbl @@ -23,15 +22,9 @@ systbl := $(sysprf)/mksyscalltbl _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') $(header64): $(sysdef) $(systbl) - @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ - (diff -B $(sysdef) $(syskrn) >/dev/null) \ - || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true $(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@ $(header32): $(sysdef) $(systbl) - @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ - (diff -B $(sysdef) $(syskrn) >/dev/null) \ - || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true $(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@ clean:: diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh index 15ecb18..3c96fd3 100755 --- a/tools/perf/check-headers.sh +++ b/tools/perf/check-headers.sh @@ -144,6 +144,7 @@ check arch/x86/lib/insn.c '-I "^#include [\"<]\(../include/\)*asm/in # diff non-symmetric files check_2 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl +check_2 tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl for i in $BEAUTY_FILES; do beauty_check $i -B -- 2.1.0