Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8218243rwr; Wed, 10 May 2023 20:41:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PtZ1OsR/oYfsaufDgrCm5e8NQmgGY6agSUvgWGIdGWD022fq5pP4NMjtRcuA0KXw6LTO6 X-Received: by 2002:a05:6a21:9999:b0:100:c8ed:c207 with SMTP id ve25-20020a056a21999900b00100c8edc207mr15612595pzb.39.1683776486537; Wed, 10 May 2023 20:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683776486; cv=none; d=google.com; s=arc-20160816; b=HX2ar+IfpB1o8DnadvspslB/H96PpLeM8JF+pTTsBktSvJVUhAP2g0PwEFWaW8vwD7 1jobhgVRP9dv6KMBGKwF7dJUWsGnIGNGqzHRxInWyHZ+7NS/SceFfffyEYy9fz/OJhk9 nsD4kx+24pBhFJLr4HTU6nOBwrLxqy9ScPLtzToOAVVFw3g3UVgiOMzQiLd16BWDe9a9 h9IL3D4Itj3kLoePsxpNJYLXZivkqacD5RY3/5vdeGEfSVrwNJPK+Ra3qioU06dMJ6a8 rCCLr2X/StRwUsCz9Q6sZYEx+M4wGdTKsYcy0XRHetcqq9R2v8LUzIMubOHJgv6a/0Lj Z9kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=segvorBuGekPc5jSCLXtWJe7pAKDaM/2mPQxUa2lvTw=; b=cxieuTLeARcmWYeWQ7cOfVBrFX0p91z+bvD0WKCV/wZbmu8FyI2XMTqXE1Dpvze9nJ DLXsyI/6ac6KlPocfgMb28wP8p1lqxtUwsRV6mG5S4o1KDGaQhB37w3tH11Jy3bSaiTk LdHC4fKoCeJgB2yd2OsVqmMCMrRphoawFbtH+133p7Bk7f9CqRyNC0Hz4RQ97DfmyonD PvCsSi3yAZKh6eGWPUZfcaBkkinxEXFZ3d7vLiXDjUkl4CM93gA6cPBb+mlURVWoY+d+ vu1rarhuzMvr/nFzhPTklwccdZABh5nuw9tRVxjrLKE721f8LkzaT1zn9aQ9pK7va81N SF2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=mpN6WZbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i69-20020a639d48000000b00524d4b572dfsi5484673pgd.275.2023.05.10.20.41.09; Wed, 10 May 2023 20:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=mpN6WZbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236300AbjEKDX3 (ORCPT + 99 others); Wed, 10 May 2023 23:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjEKDX0 (ORCPT ); Wed, 10 May 2023 23:23:26 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB8CFF4; Wed, 10 May 2023 20:23:24 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QGy012TVHz4x4X; Thu, 11 May 2023 13:23:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1683775400; bh=segvorBuGekPc5jSCLXtWJe7pAKDaM/2mPQxUa2lvTw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=mpN6WZbs8ze5YaIng5ERyTBY3chApO1uFrN1U1lTsRVA9HI18/rgyaG/eZmexoGi4 xyNRjwovMhVVlZljbfexsALAQ/VC7SXFkLQXhGs4Bb0CKdQ9ZE7uWK8mAGQpR/wXnj Wj/Kq9bEbYeNfiJORTh/qbHavius2OrvxO8nKOQelnsk3QR4A3TJ4hsLhIW2fK+19D 90D5YoD3X1p3CFTX+0ixP4wpazzRWLy7HTHBpgR9OBJW3WUEJ01CMuFyOW/rNQ/1o1 jq40YmakA31zDnqwNmvC6KPPEIJRM2z/UjkLs2qgYubScN3CGu05cVDjwVg/DFcNT6 LL1PDlPViTPUQ== From: Michael Ellerman To: Nhat Pham , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-api@vger.kernel.org, kernel-team@meta.com, linux-arch@vger.kernel.org, hannes@cmpxchg.org, richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, linux@armlinux.org.uk, geert@linux-m68k.org, monstr@monstr.eu, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, npiggin@gmail.com, christophe.leroy@csgroup.eu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, chris@zankel.net, jcmvbkbc@gmail.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH] cachestat: wire up cachestat for other architectures In-Reply-To: <20230510195806.2902878-1-nphamcs@gmail.com> References: <20230510195806.2902878-1-nphamcs@gmail.com> Date: Thu, 11 May 2023 13:23:12 +1000 Message-ID: <874joja6vz.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nhat Pham writes: > cachestat is previously only wired in for x86 (and architectures using > the generic unistd.h table): > > https://lore.kernel.org/lkml/20230503013608.2431726-1-nphamcs@gmail.com/ > > This patch wires cachestat in for all the other architectures. > > Signed-off-by: Nhat Pham > --- > arch/alpha/kernel/syscalls/syscall.tbl | 1 + > arch/arm/tools/syscall.tbl | 1 + > arch/ia64/kernel/syscalls/syscall.tbl | 1 + > arch/m68k/kernel/syscalls/syscall.tbl | 1 + > arch/microblaze/kernel/syscalls/syscall.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n32.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n64.tbl | 1 + > arch/mips/kernel/syscalls/syscall_o32.tbl | 1 + > arch/parisc/kernel/syscalls/syscall.tbl | 1 + > arch/powerpc/kernel/syscalls/syscall.tbl | 1 + With the change to the selftest (see my other mail), I tested this on powerpc and all tests pass. Tested-by: Michael Ellerman (powerpc) cheers