Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3139998imm; Thu, 17 May 2018 04:10:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZojBIIaj/K2tjy4AVvMdAFq8Axb8pdRsIL8rioDFA/IoGGRb5V49kv2IQ73spQPsoxl9NBg X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr4696344plb.99.1526555419977; Thu, 17 May 2018 04:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526555419; cv=none; d=google.com; s=arc-20160816; b=biSSaXhjCTcHSlI1cqHVC9EX/CEaUoFLAKQALOaDEG3F3NNsPJ2oHu/99+zp3oTAnq qmXhU3qPXa8rgK95GTUeVWwAsVKWOn0tzGNrQLMGSuv/DAKNd8ra6zRmQrlZlEiAK8Zz tJFFixiVXnRZV1WhsX8sgeUTSg29SuXzXyrJ7R+dbiaJyXZ7zFKUwy+RqYIdBbHrQGhy c/wCNXMVYwrgvdGwLKzOh1wBDgCFJxRoAzvWtRvc6LxqkKepWDfSyNOaH56Pg5JCUtnF ISVkrKv+GS3hnu+ED+elfZ2JTvb7ZxrQjmfNdKgKV3cBT6zBjUicSekcY1tLEgr+W8aM zD/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=+giTE1eQlugJDfZtQ6NxxCqbIuEeKQzyi78KTjF7Aiw=; b=CpVXM4PGPnh42CeNRxV6YPxY+HPfFpjmTK0h56Xuy71oDtD3Cpo2qpKmAdkHx3S6s9 I6fm82EvPoS6moair1X9Q/eX4Oalx0ZuzFJFpm9804AWpEUnGGTjiYenn3Fth00Qu8k4 7Ym3xn4wIAqc4gHULAHGnle+Q/mFT3AjnB3UrADXp/VHC99Tn4NDXgcgDAQMvA9T+D+B S2KBlh6dKMbp6YIqPsJQA43FDyKFA+PPa7qs2EXCms06uUVaZhqgNI36pNPcOKU227HF 80eY9qO+Lmm+GJfxLJtURD2UaR87d3c9gSZPqjz912oT3Lg7rcRspwiNt1EaUzpTNiNQ YdNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si3912680pgt.625.2018.05.17.04.10.05; Thu, 17 May 2018 04:10:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752546AbeEQLJQ (ORCPT + 99 others); Thu, 17 May 2018 07:09:16 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41474 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752334AbeEQLHh (ORCPT ); Thu, 17 May 2018 07:07:37 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4HB56rK103332 for ; Thu, 17 May 2018 07:07:37 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j17g8u67j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 17 May 2018 07:07:36 -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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ }; -- 2.7.4