From patchwork Thu May 17 11:06:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Dufour X-Patchwork-Id: 10406419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B1FDE60247 for ; Thu, 17 May 2018 11:08:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0BF128859 for ; Thu, 17 May 2018 11:08:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93F012886D; Thu, 17 May 2018 11:08:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7235428877 for ; Thu, 17 May 2018 11:08:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 67BD86B04C0; Thu, 17 May 2018 07:07:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 608926B04C1; Thu, 17 May 2018 07:07:39 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42D8F6B04C2; Thu, 17 May 2018 07:07:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id D5C9F6B04C0 for ; Thu, 17 May 2018 07:07:38 -0400 (EDT) Received: by mail-wm0-f69.google.com with SMTP id a127-v6so1934057wmh.6 for ; Thu, 17 May 2018 04:07:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=+giTE1eQlugJDfZtQ6NxxCqbIuEeKQzyi78KTjF7Aiw=; b=JKzT+3/mmes8LbptqtmIB0Tvhr826FiHM9pKtJCY1Amdz3tI1DwomyzZoqIhE0vPX3 8VnMtU+a1FxWQy37d0FryThrCUpG9sTMACz4AZSJ4yspRRwkntFuGz1ct8+fliUxYLAj tUe4TlEZD0JABfwOJjRm/7I3lf3jpSlpHA2J0PRpzWkXEhgzAG32E+IMmgHbqglPBh/k vMPBS4cP2f/MHGXsjn5wvUYAspcjWJf8yjep1FSwGfT8atsylvwtOehUw1g2vsjOCNW7 Bky+LqsQpuNfzU4KbKweMKkWf5r3a8vF+flK9uOK49LLDqY48YSayCs4ZfVPYs5S8f+P puaA== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of ldufour@linux.vnet.ibm.com) smtp.mailfrom=ldufour@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: ALKqPweP45VXoNAgf60idCYjF7BI5oi8YCKuu5TiQPBKegnFFIvZZmq5 MRoju5QIfF3/6opT/qPt91o+t2dIK01h4lVVSkigXbtDXNtjSt+Ab8Es5TWhpI6Q8po7WHGB4z6 DVZXqlXkeayhTWOGziItvpz1zfvKBziuBMs6lqZwOX0G46arfZanSIRY9k55saZY= X-Received: by 2002:a50:9ea3:: with SMTP id a32-v6mr6606548edf.78.1526555258385; Thu, 17 May 2018 04:07:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqAuj8AgsB3TlyWWJtpTJmv011rYnvOl6UqrNabsiEIAOiomiuz9uTwbExJX1dfUD2qqn4R X-Received: by 2002:a50:9ea3:: with SMTP id a32-v6mr6606499edf.78.1526555257674; Thu, 17 May 2018 04:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526555257; cv=none; d=google.com; s=arc-20160816; b=FInFTK91qTtHQSHTXE1LpZXl0+Pmii84izu1RmuM+4o1sn7qubO4HKdjIkyLMi6oZA 15eE/rHTrXCrucYCoHFZ3i/zn5pFOyXwcd/DC8pPv3oMG88urD9gOTDQZcVYjr2Gp26u Qtf9WN6ZhkkZkIpnrvwJLDY0J2FXNIN5oSjZI/hY7DzP03IzSpWmATOeNvqpBHfr3fov 4oVhitMqEONpOp4vaqyIqVStS7HUwVP48QHSri/eCHrt+gsUQLUv5NeIeW2efTCYhqir Ge24Bh7nMa1wx9QE3lcHaAWlg8kA9I0QHCt7dxX8WN5awMXVnk5lW5EetWrtTQ20C/8P eO5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=+giTE1eQlugJDfZtQ6NxxCqbIuEeKQzyi78KTjF7Aiw=; b=J107VMl/7JRrBVl15jKqy8yJNgN6AWHNh67R5rsNPddm5weO1SuovFHdXmWi2XQTA5 6yBMCnjlpe7CZ0QS2HKdW7Wh2+TCWyey0OCxaHDZ9cN82V1eMWWWSW/jS5V/ARsJziQ8 1tvQhKakqS0CGDBHuQoIj8v2eQdhjp2snLUAnDjdudWfrdjx4lvhxOEsLxDh3mSNm1Zn zNGcoIZyIRS+1oDFkpiQW4xKdyRWUFidF4km6WlAh2MRb/S2jcwQt+XPurUyLyJNfMgc 1n1Byd8bLOlwEVlYyYsN4qO6O7rFC3G/0IVIAjEnuGJR8BL5S3QGXOCCyeFNB2n9W54N CVqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of ldufour@linux.vnet.ibm.com) smtp.mailfrom=ldufour@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id 2-v6si465673edy.89.2018.05.17.04.07.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 04:07:37 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of ldufour@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of ldufour@linux.vnet.ibm.com) smtp.mailfrom=ldufour@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4HB4gH3017407 for ; Thu, 17 May 2018 07:07:36 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j17hab7jw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 17 May 2018 07:07:35 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 May 2018 12:07:34 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 17 May 2018 12:07:24 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4HB7OxF16777524; Thu, 17 May 2018 11:07:24 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D325A4C058; Thu, 17 May 2018 11:59:12 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 972E84C046; Thu, 17 May 2018 11:59:11 +0100 (BST) Received: from nimbus.lab.toulouse-stg.fr.ibm.com (unknown [9.101.4.33]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 17 May 2018 11:59:11 +0100 (BST) From: Laurent Dufour To: akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , sergey.senozhatsky.work@gmail.com, Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , Minchan Kim , Punit Agrawal , vinayak menon , Yang Shi Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: [PATCH v11 21/26] perf: add a speculative page fault sw event Date: Thu, 17 May 2018 13:06:28 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526555193-7242-1-git-send-email-ldufour@linux.vnet.ibm.com> References: <1526555193-7242-1-git-send-email-ldufour@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18051711-0040-0000-0000-0000045A6DD8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051711-0041-0000-0000-000020FEA556 Message-Id: <1526555193-7242-22-git-send-email-ldufour@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-17_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805170100 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Add a new software event to count succeeded speculative page faults. Acked-by: David Rientjes Signed-off-by: Laurent Dufour --- include/uapi/linux/perf_event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index b8e288a1f740..e2b74c055f51 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -112,6 +112,7 @@ enum perf_sw_ids { PERF_COUNT_SW_EMULATION_FAULTS = 8, PERF_COUNT_SW_DUMMY = 9, PERF_COUNT_SW_BPF_OUTPUT = 10, + PERF_COUNT_SW_SPF = 11, PERF_COUNT_SW_MAX, /* non-ABI */ };