Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2647657ybt; Tue, 16 Jun 2020 11:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5h82e+0bzNzy8R5C1bhtI+rny1ybCq6WUFE4nDt8ypwhs/yZSQiw2ieRv56EVvFa+UyVs X-Received: by 2002:a17:906:3590:: with SMTP id o16mr3840857ejb.506.1592331243646; Tue, 16 Jun 2020 11:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592331243; cv=none; d=google.com; s=arc-20160816; b=ApgJ39TrLcPlAdX9gca2m28id7gMbSyTuAD5Pp0qHpLWL2ZMR81gjZybJ90YL/rOch ygh+LHDGlkSWkYbmNHxXtXqg8qveYaFMQ6BnkGpX+5jQVFS7ijCmq6WNw+XMd4BAdmFl RfyXDx/5RwEkPoWaQrZN34AaguCnhfFvidTYXhuACxK5YB61z77q/FdxYB6TGelrxtCF TYsP8PwtUzKhXGRJgYTFn8kS2sCm1ASurGUPLl/fHu2nHKZLkiq0kbjN8u5sMnRmjmi2 kLXUYoQ4QQaCvfJ1m/V1rdyj/ZxWJEb2df27CbeKtyfaEYDv+A02AhWaRviJCBJ8oeds S9Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=V8krypQYvLLdoGkdoWAmqL4AijiFXVU+JMq1HqUDiLE=; b=ysQ5ueq+lBExqC51TEHrv5g08gvAnTMi6E5l13ERaJRXdBc9Knr5wL1DhpcSHpIa+J ZebCZhZieG5YrbZfu8LXQbn20tEkrgedoPY6zGgZoEhU2NTEurzcU4/MPanY6QKj72Lr OXRwGPeezp4hJZb3oo78FbErRm+KM0wmrsY7ZPJQwjp8Fw6K+6XHm/a4aDmcOlLmweO6 t0fEjQP+IfizBsHiuuLeqNzyfo5pJUZ5DMcnz5/xU1s5oZlZkkb36FjMDBqqCzecWeV3 7mavLpmC3jqSmqHq4p5FBGMnButhjMkcym5c3fmq8z3AfIBSIoLltg21gdO0HHTTsVqM PMMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DPoTPmVq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si10991607edq.435.2020.06.16.11.13.40; Tue, 16 Jun 2020 11:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DPoTPmVq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731463AbgFPSLx (ORCPT + 99 others); Tue, 16 Jun 2020 14:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731378AbgFPSLw (ORCPT ); Tue, 16 Jun 2020 14:11:52 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72DFBC061573 for ; Tue, 16 Jun 2020 11:11:52 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 64so9871202pfv.11 for ; Tue, 16 Jun 2020 11:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=V8krypQYvLLdoGkdoWAmqL4AijiFXVU+JMq1HqUDiLE=; b=DPoTPmVq8LnQ8E46Fms7EJqK2SCs0dbHEwdpcZB8xUde2Ie3gU9CCHATQ+JDgkiflb l1mY+O3zFozAf5/wiKJIT2zuvtEsAq/ADYa/3oQKbSedxk2+P6sd1Mvc78vPLB7GiRYx 9nHe/GW3QWOfbPS7JComESZiQ9KEtVI+AfvR4MmEVpQHpP6yR4JHh1Px8qqcA3KE7xXY 9DqhNwLiBmoIyazx0eDxbysFSlhzWhcXXZCdLB1CJ4TIOUhFA1pjdnzmBG4oyry1XXQF 32duI8CY14pUR61Ii310aSvAFPP1XPf71Rho0grRTe3RJIY7iCE+q27RZANAwoukgM60 HGPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=V8krypQYvLLdoGkdoWAmqL4AijiFXVU+JMq1HqUDiLE=; b=ccV4954/IKv0E4Y8Z/rbNj/Ikr5jWmLC9crhrLA8hF0UDjhe7evI8xwbIXWqS7DBHl ihDDpQGrbYwqky2EHzFCg22RraKy0iGABEahWaufFXTbXNWTx0mLxFAj6uRPKWpyB6TQ QsN9JLv7fOfRJnZ71ME3trpYgmfcx1JhZSzPz+tKRhXpA6rZQdZmepjFD698cOnQO8Ei fsHY7EwmKn+U6snQv+KQhK+x9HU01T/x5h3BTj4MI58R1Va/FlI0LyOWKvAqj5JI+JHo uJ+ObPAiM7KTx0waZEtk/C7gi4PXty/sSv7X4hsZ81FPFZMoNT8HwwPHmXFwn2YQa9Cx KU/Q== X-Gm-Message-State: AOAM531TKgQAgogHGzZlLED7usLuto7BGBAbUebOoGwNESm7WQ/Bjkjy TW/kh484fYrOA7ef5fvRXfc= X-Received: by 2002:a63:690:: with SMTP id 138mr1947500pgg.122.1592331111761; Tue, 16 Jun 2020 11:11:51 -0700 (PDT) Received: from localhost (g228.115-65-196.ppp.wakwak.ne.jp. [115.65.196.228]) by smtp.gmail.com with ESMTPSA id u128sm17377967pfu.148.2020.06.16.11.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 11:11:51 -0700 (PDT) Date: Wed, 17 Jun 2020 03:11:48 +0900 From: Stafford Horne To: Peter Xu Cc: linux-kernel@vger.kernel.org, Gerald Schaefer , Andrew Morton , Linus Torvalds , Andrea Arcangeli , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH 15/25] mm/openrisc: Use mm_fault_accounting() Message-ID: <20200616181148.GQ75760@lianli.shorne-pla.net> References: <20200615221607.7764-1-peterx@redhat.com> <20200615221607.7764-16-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615221607.7764-16-peterx@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 06:15:57PM -0400, Peter Xu wrote: > Use the new mm_fault_accounting() helper for page fault accounting. > > Avoid doing page fault accounting multiple times if the page fault is retried. > Also, the perf events for page faults will be accounted too when the config has > CONFIG_PERF_EVENTS defined. > > CC: Jonas Bonn > CC: Stefan Kristiansson > CC: Stafford Horne > CC: openrisc@lists.librecores.org > Signed-off-by: Peter Xu Acked-by: Stafford Horne