Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp721730rdf; Tue, 21 Nov 2023 14:58:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHzC/5kLeV1si45/xZQVnCLzGOZVjSWCLy7bVg+CW9E2U46NapqL25ITyZkRcFiggkujXo X-Received: by 2002:a17:902:82c1:b0:1cc:9215:497f with SMTP id u1-20020a17090282c100b001cc9215497fmr530281plz.69.1700607506329; Tue, 21 Nov 2023 14:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700607506; cv=none; d=google.com; s=arc-20160816; b=eaOpFKNPiMGDnVu6NKulgBVM4BRAryyzQvQdbhGlr46MNTaGHzIMujr4NN9PaiJugl 2ooS1PQrOqkkkzVSVtopy+XXgceFSJLu1/iTsx9wiaxsX8gq6fbYUjCteDFIo7MtZISi KZ9nw4bAtDJl7OI2U4liaP7ml1jDb6e1zC8kCxuxWOfsGJJYwHWJ11BCRNREtHVgO88x XTsunc5N0H1ZLZvwvYBs1vNNmQvXT8aSo/7D4o5lwqA45B/p9h/LqVTANr3SBTm2EQj5 uRNvNOx2RlcYvi1QUrXy3ZL3lHVXZ72mqTORkdFjP913l8AZjfSUpQlm2fxR9Vi1iA8K tXXw== 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=8cHNQWLeaX3Eaeqr4KDeKVPWKASKTSj+iTYazvJzg+8=; fh=l9kJVLk4WyFgUEv9OXiz7Xi87pR6718TOC48dH41Ceo=; b=xZFlmHX4s188hY4t3YTYEXrvyJ5OeUovi3dLjlnSlzkImt6i+UKhxXaoKzGnXKjZLY A1otyPfEOIxd80vzQy7bTSBaubqHVtZDrVZ3wfxTGnXGVwaFtnfleSB0pyRnLftrqwkE 5YcXT6hQXeQRsxur3RCtvvnFPlCioE6UTUAEzzxHEdY0v72liK9amQLQKl72n4Q5djkH Gb7BfNzRqBO1ov0jEkH3AKCXVkkD67Ov7zRzj26uA2OBqnwbtvzV3RFCD5swiFQde7wh 0P7sJMOulctmMmJGnDJPZ6JT37AP+1Z6RmDWYvPbSUO7JAd8FJsmjOSkosrEZSPZB8az mjUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C1tKX3Hf; 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 k4-20020a170902c40400b001bb3bcd05bbsi11978836plk.471.2023.11.21.14.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:58:26 -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=C1tKX3Hf; 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 784AF80E9EA5; Tue, 21 Nov 2023 14:58:14 -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 S234828AbjKUW5k (ORCPT + 99 others); Tue, 21 Nov 2023 17:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234900AbjKUW5V (ORCPT ); Tue, 21 Nov 2023 17:57:21 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA6DD7F; Tue, 21 Nov 2023 14:57:07 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cc938f9612so40362495ad.1; Tue, 21 Nov 2023 14:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700607427; x=1701212227; 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=8cHNQWLeaX3Eaeqr4KDeKVPWKASKTSj+iTYazvJzg+8=; b=C1tKX3HfiozZ9T8Nlb5pgQB7+Ek4qzbmxiUg4WsZNy6giyRpzhMCTgM5E/TJ2cxHor Y+nweJUKS9zEIXEUU/iL+SWhbuYUyglXfy2PmgWfofJV+zlcyKUqNsqERGQvpNzbGSXc hWZRgtuh4ZRrzW7rJVi1EtD/A0IxrFll+PdScUTksVp/HmDp4FQmjbQk6Z+nQM6Ko1Rr opWK6pVrD6Jrnkb68okaRkbUaMmuzT7GAozmiHan1FYpljxQgTRzXZAoP+acxdBaaCEL qRg92B1ylE8cWkeIm9bDWoAzd5XhK9ZM37z8czWf1crlr3TkElLeZJgw2M436k1GC/mo K51Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700607427; x=1701212227; 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=8cHNQWLeaX3Eaeqr4KDeKVPWKASKTSj+iTYazvJzg+8=; b=TWC6Vt72/5lXAApJM57Ak/otyP6bPlsow7ZWw/LAR/1dl2CWkCx/CGsblzEVyNnTLP obPQVSERc6tjF3dL9VOGEu4o61yKyp3U1fcGgDQpNV2Mfu77Kcfqb2el33XcPTKhIF8V kixSsvecSDYZ3hJ7aLrcw8Tm5Q4bC7FsjER8rf8zMLwHdYl2MteDtrbRNo1CyNs3B3+4 NfQh/6X6Ko9MOC14VvI9l1ttxT6xKC3Kt+l+uHWhlNi4EHx7F9ALM2DVZcKtO8ciGoln yeXXckSBnCKi4UiHce56C2y0LGC2ICUDB/nw0IG3u33DGcl4KvOnrADhhHueMSQX3mec 0yMw== X-Gm-Message-State: AOJu0Yykf9ULKAm5LmV5NoR5i0MVIFTq9zZVFzhYrfj7LlLe+4GdFMPz kbyrUevuYbl5Eb1EjsWsmfc= X-Received: by 2002:a17:903:188:b0:1cf:5782:7c74 with SMTP id z8-20020a170903018800b001cf57827c74mr805479plg.7.1700607427036; Tue, 21 Nov 2023 14:57:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:57:06 -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, Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 12/14] tools/perf: Update tools's copy of powerpc syscall table Date: Tue, 21 Nov 2023 14:56:47 -0800 Message-ID: <20231121225650.390246-12-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:14 -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: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Namhyung Kim --- tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl b/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl index e1412519b4ad..7fab411378f2 100644 --- a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +++ b/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl @@ -539,3 +539,7 @@ 450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node 451 common cachestat sys_cachestat 452 common fchmodat2 sys_fchmodat2 +453 common map_shadow_stack sys_ni_syscall +454 common futex_wake sys_futex_wake +455 common futex_wait sys_futex_wait +456 common futex_requeue sys_futex_requeue -- 2.43.0.rc1.413.gea7ed67945-goog