Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp721838rdf; Tue, 21 Nov 2023 14:58:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvIk4i/T408ddbaNPU/1hPt3uezcIuvFwGgdFS+nEsUsW0DO23OkRaw4EGy4C/ISGF1Qz6 X-Received: by 2002:a05:6808:428e:b0:3ac:4ee2:337b with SMTP id dq14-20020a056808428e00b003ac4ee2337bmr630793oib.51.1700607522304; Tue, 21 Nov 2023 14:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700607522; cv=none; d=google.com; s=arc-20160816; b=liLVEmLyqsxg5Xey0Bucx185ZQ9vLfa8a9REmJ5/3tFB7BPcLXDZSWlPbkXwNjHjBq YKih/o0lr2i+DtK11Yj8HDfjvQL+HNC3YW/72wFOUMiCwZp2x891bgvSRC/lpv7Ak9/+ joXx/TOxHybysKvI+GE2h0eqKRDGJ87zW32X6mGeJXr9UnDKfcCzYhhe1GOj7n+FgrEF p4q0KRtdIkJGZOlsS+bQPqWcFpBe9a3scw3iBK1IcoqGib8hIWZAy0ynHAk56ik7pVLh lPhANtZvzl4VI8u75WXNXlfED9+ZRdDHzrcMvYSzOiSlmM3LdFZhDcbZC/xVjohVRgQn XdRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=pUB8aiMyKPdcNoGbVDTIzMhhz2GFj5TGi/+7tX7WmTs=; fh=WzTP9ACCkvIKh+P5weDUTg9elL4nAzu/kg+UEE3EdSc=; b=MbmoMNrArEoFC981uqUimn3+3+iT5ctRB8OMBERF4d9ekLfbpn3/r6RFJNHY6jA/GL Hy+qRBHOqfARSjvez1eFUX/82jcZQZ3pb6Or/SbyuUFbuFk4QNA1GQtM1kqS5J7qpfYw h0dVNmc8ZEOY8t3zssb87shSICSPEaGAps4KXR3tgmQTtQ6USQoUziVhe+tp8loeVpbl M5W8FhNPeI9gUNPIZe5cYAe4RTLZ8niT2kY6th/yPDmszTdWRfyMYpLkXdXyNXBsuIId igPmodARugWP/qAoTIIHStW3lHN5LVbyzlg6CFRzc/lB8FrWh939sTOhneNq07HtnoP0 CW4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gMtgFjnd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p6-20020a63f446000000b005c219360d9csi9521863pgk.50.2023.11.21.14.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:58:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gMtgFjnd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CBCE5801B995; Tue, 21 Nov 2023 14:58:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234947AbjKUW5h (ORCPT + 99 others); Tue, 21 Nov 2023 17:57:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbjKUW5U (ORCPT ); Tue, 21 Nov 2023 17:57:20 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF5FD79; Tue, 21 Nov 2023 14:57:06 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5c19a328797so4134139a12.3; Tue, 21 Nov 2023 14:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700607426; x=1701212226; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=pUB8aiMyKPdcNoGbVDTIzMhhz2GFj5TGi/+7tX7WmTs=; b=gMtgFjndQKrbuWk+cdt612u0wgegfbby+5+WhsNvo2LUFQwnOp0lUQPs2JAUPe2iSm i8oq2Vi+sslnQlabivkhKO12kZ2a2WkmotbsuV5wBoMZTr9sSn/d1Js4w6oQDiSYIngo eqbqUonWPMGNs3+b4WJolNR/DPEsG3eZm9qY6N739TKISHz0DLo+0jVTcPjY81+EKsZu dX8H7nykmIXB0MRz97Jk6oGgNNBan/rWmYsTCEoaIDA1HU78lSQLvOyHIwoaAWTNblh6 ERlhbsAKjybI/TQcDyfZh5Xo+BkjIjucOuFWeSNQx+nPEduXqZZeSqXV84NcVG7fYqgS OYWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700607426; x=1701212226; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=pUB8aiMyKPdcNoGbVDTIzMhhz2GFj5TGi/+7tX7WmTs=; b=LKaLBphJ0Ow+6rLaliJfxNL4yq3/i5YRQ8Bt/AqqrnkszN/q6dm9gPOfZzlUWrHrpJ K/Ct+VNpKrx4RHqg8KrynlRrgqeJ/HF/H82O7Dj/m6FKnccOFMXSst2HTuc+9vpbh1Ak WywP3axm87c3dOz+oG5/5C3tQzmGaBkfq3fszXRSBmaH4kFUB0juXSjclyvN/UXk3Ijy 7oXGosUTdviIuVOlbcUuLwlKC+BLbv6WK64fOnF6+7HYdmVWQjXUEArGkcNhlXvzJSNL kJ/7wDVhwOIisz/klvbbxreiXjDGV08YhtBXjEWhKGsL3GaqyYQMCKQCPp+1PKv2Q3rw AGfA== X-Gm-Message-State: AOJu0YwElfQDwWlMmKasSlbHRyvjSScC14WefRaGSGSB7IoryweaACKG 8uH0ZqL9LQ4ihX6YX+3aH1w= X-Received: by 2002:a05:6a20:a129:b0:18a:e262:d15 with SMTP id q41-20020a056a20a12900b0018ae2620d15mr579453pzk.54.1700607425835; Tue, 21 Nov 2023 14:57:05 -0800 (PST) Received: from bangji.hsd1.ca.comcast.net ([2601:647:6780:42e0:7377:923f:1ff3:266d]) by smtp.gmail.com with ESMTPSA id m12-20020a1709026bcc00b001cc47c1c29csm8413189plt.84.2023.11.21.14.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:57:05 -0800 (PST) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Subject: [PATCH 11/14] tools/perf: Update tools's copy of x86 syscall table Date: Tue, 21 Nov 2023 14:56:46 -0800 Message-ID: <20231121225650.390246-11-namhyung@kernel.org> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog In-Reply-To: <20231121225650.390246-1-namhyung@kernel.org> References: <20231121225650.390246-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 14:58:38 -0800 (PST) tldr; Just FYI, I'm carrying this on the perf tools tree. Full explanation: There used to be no copies, with tools/ code using kernel headers directly. From time to time tools/perf/ broke due to legitimate kernel hacking. At some point Linus complained about such direct usage. Then we adopted the current model. The way these headers are used in perf are not restricted to just including them to compile something. There are sometimes used in scripts that convert defines into string tables, etc, so some change may break one of these scripts, or new MSRs may use some different #define pattern, etc. E.g.: $ ls -1 tools/perf/trace/beauty/*.sh | head -5 tools/perf/trace/beauty/arch_errno_names.sh tools/perf/trace/beauty/drm_ioctl.sh tools/perf/trace/beauty/fadvise.sh tools/perf/trace/beauty/fsconfig.sh tools/perf/trace/beauty/fsmount.sh $ $ tools/perf/trace/beauty/fadvise.sh static const char *fadvise_advices[] = { [0] = "NORMAL", [1] = "RANDOM", [2] = "SEQUENTIAL", [3] = "WILLNEED", [4] = "DONTNEED", [5] = "NOREUSE", }; $ The tools/perf/check-headers.sh script, part of the tools/ build process, points out changes in the original files. So its important not to touch the copies in tools/ when doing changes in the original kernel headers, that will be done later, when check-headers.sh inform about the change to the perf tools hackers. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Namhyung Kim --- tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl b/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl index 2a62eaf30d69..8cb8bf68721c 100644 --- a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl +++ b/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl @@ -375,6 +375,9 @@ 451 common cachestat sys_cachestat 452 common fchmodat2 sys_fchmodat2 453 64 map_shadow_stack sys_map_shadow_stack +454 common futex_wake sys_futex_wake +455 common futex_wait sys_futex_wait +456 common futex_requeue sys_futex_requeue # # Due to a historical design error, certain syscalls are numbered differently -- 2.43.0.rc1.413.gea7ed67945-goog