Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp446166ybm; Mon, 20 May 2019 20:04:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqykeqUhaPbObDJSQX7Gh5x9G6UkZsv2QBq3mm9+uHL0vfmZtVbTIBCGS1p9LzoMp2XovpL2 X-Received: by 2002:a17:902:63:: with SMTP id 90mr25617203pla.342.1558407888719; Mon, 20 May 2019 20:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558407888; cv=none; d=google.com; s=arc-20160816; b=E8K7Sn9vsE5TIad36bUvt52s7AZWbRcdIRFr5y5Cj9RMWKGlzdJpINgTClXVjyP8A9 jQ4PCHf9pgcHN0aDf8K6QByZj8pUX4QZvAbc1ZyQu2KzBbir4G1tnrrbAQruywzkZrMJ 1pyP2Q4HcdA9qbDcAoczNzSY8wqLKeQaFcje0MjTujv2o9fDMQxTlW1Z5aLetqdRxLTX d2zxuKrXlGhPL11Q17SyAuxo9ZA0ksvpY6n34vKupta4+qP5zbzXGVl5TM0DXrkWCJgZ ZOpkCz6qU5zIJYAyzedsLRd2akRYe10RnYVuIFU4+/DVI8t+G3QFARyZyKhTHxQcvUqC 7GaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2gRxuAOjVg0OZSUzCDY47j7MRzMjqyHhI7j9OSTrDkE=; b=NKo9iJ20CHk6QCFJsEvkl2U/zj15eEFnctRBpzAZrmeWIKREjSMfhjDTLwrb8IU3Pf yfL6z423cnj+BRJ+D1VLUreA/3qAOCXO4MFv9ZFYNPbZhKuTnXceF5NNVxxwIQQZeoCE JWSiH5oDgFF/v8+ZEOA60Cl9bF2rhnJSogcAkcoJ322yZOUG/PC4XZ+kKC0jceADt7Fd tRl1z1w1fRfBwAYUmOGMsBmSscJOWSvzICd4hap1WvPxgHJstA/wp3hRir2OwomljhPt Atb4KqdZMPj6ZPd0J7l4jtHUTtAPx8iqbbv41507PTvaNBg++q+n98RkwYp8bHWJbizE DNoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si12273157pli.379.2019.05.20.20.04.33; Mon, 20 May 2019 20:04:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727231AbfEUDCt (ORCPT + 99 others); Mon, 20 May 2019 23:02:49 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:36870 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbfEUDCs (ORCPT ); Mon, 20 May 2019 23:02:48 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 9101E72CCD5; Tue, 21 May 2019 06:02:45 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id 6210E4A4A14; Tue, 21 May 2019 06:02:45 +0300 (MSK) From: Vitaly Chikunov To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Cc: Alexander Shishkin , Hendrik Brueckner , Jiri Olsa , Kim Phillips , Namhyung Kim , Ravi Bangoria Subject: [PATCH] perf arm64: Fix mksyscalltbl when system kernel headers are ahead of the kernel Date: Tue, 21 May 2019 06:02:03 +0300 Message-Id: <20190521030203.1447-1-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When a host system has kernel headers that are newer than a compiling kernel, mksyscalltbl fails with errors such as: : In function 'main': :271:44: error: '__NR_kexec_file_load' undeclared (first use in this function) :271:44: note: each undeclared identifier is reported only once for each function it appears in :272:46: error: '__NR_pidfd_send_signal' undeclared (first use in this function) :273:43: error: '__NR_io_uring_setup' undeclared (first use in this function) :274:43: error: '__NR_io_uring_enter' undeclared (first use in this function) :275:46: error: '__NR_io_uring_register' undeclared (first use in this function) tools/perf/arch/arm64/entry/syscalls//mksyscalltbl: line 48: /tmp/create-table-xvUQdD: Permission denied mksyscalltbl is compiled with default host includes, but run with compiling kernel tree includes, causing some syscall numbers being undeclared. Signed-off-by: Vitaly Chikunov Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Hendrik Brueckner Cc: Ingo Molnar Cc: Jiri Olsa Cc: Kim Phillips Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Ravi Bangoria --- tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl index c88fd32563eb..459469b7222c 100755 --- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl +++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl @@ -56,7 +56,7 @@ create_table() echo "};" } -$gcc -E -dM -x c $input \ +$gcc -E -dM -x c -I $incpath/include/uapi $input \ |sed -ne 's/^#define __NR_//p' \ |sort -t' ' -k2 -nu \ |create_table -- 2.11.0