Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp909251imm; Wed, 15 Aug 2018 08:10:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyv5zPABU+NPukCMncmFDnblE4biiNIPMDLHuT0NASHoswgAXj9boLnF3qD173HzBANUbVs X-Received: by 2002:a63:375b:: with SMTP id g27-v6mr25695086pgn.59.1534345806861; Wed, 15 Aug 2018 08:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534345806; cv=none; d=google.com; s=arc-20160816; b=zRi01bKdvji7ZA6ZqliDqMgPCYlRZewPJELimgYhfaI3Czi2q4OCdMGMI2ohLTzVzq n9fNafcLiI9LuRMmWW+Wt1Izh1mXS4B1CyDe40gTZbD+IpLWzQBy1u2HxXR5vwQM+/9U b8pkuTrLiCHj8igZej6qTqP5GCHnJuV/HJD43MRDlXugepDUdvCwrPfpV9VlgSEXBpGb /jifgSFlFup6wV5CM0Td3U45fj8JKXs+MEHx3XXSC1EbvhFHVACkTSCDbf7WSORJWAN7 XYsTKoPbVKib2OArk+9x7ls090NUQgG0+P1ydlTnROo/3gBE9U/j/hN/TDzmsVyogpqe iUfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=scAOhVglOSqvLbcubtUwaegBfKx56XkY0Gedvf2zf2k=; b=qKl8arSQOoKUeCIrJMERIQSDpEDNc2GjmtyRHFdDxm7B3dIVW+mxpEmoQD0xFTL3B6 s/KMeolNzpmcxiZGLXbT25qRnrr3neHKgxa4B65sd7lYfptL6HRANmuJWlg7bNi9P/BI Fo1M5mW0QhQRbM46emXf+fa3xonZy8yK9XlqEBVQg5aR4r6qy+8auiR1Z30N5QWkHDmA N2/hzU+PuydOKZXLctwKYv05bXhnOQYjvIOMlYfM5bVYW5/ZJmhvQ5vekRgEHieCQtKJ LQXm3Vt0YiBjxCMywF1gLbnQmpHN93IxD0Iucdm9ZV9414C75rRSjzFSYLIl/suPV0ul Nzyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uq5BuM8f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d32-v6si18853599pla.93.2018.08.15.08.09.51; Wed, 15 Aug 2018 08:10:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uq5BuM8f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730690AbeHOSBF (ORCPT + 99 others); Wed, 15 Aug 2018 14:01:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:50956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729528AbeHOSBF (ORCPT ); Wed, 15 Aug 2018 14:01:05 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C682621534; Wed, 15 Aug 2018 15:08:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534345712; bh=r9D02uUdRiVJcYoMVSW3NB8SlJ5Id+j93S5emAqIaRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uq5BuM8fmvl46J/S906QlO1zO7MXK5F5PF55xEiX3PStmm+DKOuo95+b3w3gv2txR rQ3sv+0OQ1NkoPZWeBdvDdLETeMN4wNAU0sE8/6W27C/s8SW5u29d8k4MrqLDeFKai Lo2VBCRawtJe9acgGQ14hxHFHiIHF4/8hklXosrI= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Alexander Kapshuk , Alexander Shishkin , David Ahern , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 29/35] perf tools: Move syscall_64.tbl check into check-headers.sh Date: Wed, 15 Aug 2018 12:06:05 -0300 Message-Id: <20180815150611.32080-30-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180815150611.32080-1-acme@kernel.org> References: <20180815150611.32080-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa Probably leftover from the time we introducd the check-headers.sh script. Committer testing: Remove the 'rseq' syscall from tools/perf/arch/x86/entry/syscalls/syscall_64.tbl to fake a diff: make: Entering directory '/home/acme/git/perf/tools/perf' BUILD: Doing 'make -j4' parallel build Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl' diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl CC /tmp/build/perf/util/syscalltbl.o INSTALL trace_plugins $ diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl --- tools/perf/arch/x86/entry/syscalls/syscall_64.tbl 2018-08-13 15:49:50.896585176 -0300 +++ arch/x86/entry/syscalls/syscall_64.tbl 2018-07-20 12:04:04.536858304 -0300 @@ -342,6 +342,7 @@ 331 common pkey_free __x64_sys_pkey_free 332 common statx __x64_sys_statx 333 common io_pgetevents __x64_sys_io_pgetevents +334 common rseq __x64_sys_rseq # # x32-specific system call numbers start at 512 to avoid cache impact $ Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Kapshuk Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180813111504.3568-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/x86/Makefile | 3 --- tools/perf/check-headers.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/arch/x86/Makefile b/tools/perf/arch/x86/Makefile index 1a38e78117ce..8cc6642fce7a 100644 --- a/tools/perf/arch/x86/Makefile +++ b/tools/perf/arch/x86/Makefile @@ -19,9 +19,6 @@ systbl := $(sys)/syscalltbl.sh _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') $(header): $(sys)/syscall_64.tbl $(systbl) - @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ - (diff -B arch/x86/entry/syscalls/syscall_64.tbl ../../arch/x86/entry/syscalls/syscall_64.tbl >/dev/null) \ - || echo "Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'" >&2 )) || true $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@ clean:: diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh index b61f8a4dfca3..466540ee8ea7 100755 --- a/tools/perf/check-headers.sh +++ b/tools/perf/check-headers.sh @@ -101,4 +101,7 @@ check arch/x86/lib/memset_64.S '-I "^EXPORT_SYMBOL" -I "^#include "' check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"' +# diff non-symmetric files +check_2 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl + cd tools/perf -- 2.14.4